Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add label to examples #1421

Merged
merged 6 commits into from
Jun 23, 2020
Merged

Add label to examples #1421

merged 6 commits into from
Jun 23, 2020

Conversation

zarov
Copy link
Contributor

@zarov zarov commented Jun 22, 2020

Labels have been added in some examples, to show that they work with multiple format:

  • KML
    Capture d’écran 2020-06-22 à 17 27 01
  • Shapefile
    Capture d’écran 2020-06-10 à 15 03 50
  • VRT + CSV
    Capture d’écran 2020-06-10 à 15 08 30
  • WFS
    Capture d’écran 2020-06-17 à 10 01 12

I also took the opportunity to move from @mapbox/togeojson to @tmcw/togeojson, as it is more up-to-date.

This is a replacement for #1413

@zarov zarov added demo 🎢 Sharing a demo dependencies labels Jun 22, 2020
@zarov zarov added this to the 2.23.0 milestone Jun 22, 2020

if (properties.icon && properties.icon.startsWith('data:')) {
this.icon = { dom: getImageFromDataURL(properties.icon) };
this.icon.dom.onload = () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could factorize with loading pattern?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@zarov zarov force-pushed the add-label-to-examples branch 2 times, most recently from dd7717d to 634729a Compare June 23, 2020 12:51
@zarov zarov merged commit f13c78c into iTowns:master Jun 23, 2020
@zarov zarov deleted the add-label-to-examples branch June 23, 2020 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
demo 🎢 Sharing a demo
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants