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

move formatters and share to a module, and use new GPX library #1945

Merged
merged 6 commits into from
Jul 5, 2024

Conversation

yohanboniface
Copy link
Member

This mainly allows to dynamically load the third party libraries needed for converting from/to geojson, so only the needed ones will be loaded.

In the same process, those libs have changed:

  • tokml => switch to placemarkio fork, more up to date and available as ESM
  • togpx => switch to geojson-to-gpx, more up to date and available as ESM (note: this lib does not export polygons, because they do not make sense in GPX world, while the previous was converting them as lines before)

@yohanboniface yohanboniface force-pushed the formatters branch 4 times, most recently from 056f524 to 43e1c41 Compare July 5, 2024 11:53
@yohanboniface yohanboniface marked this pull request as ready for review July 5, 2024 12:40
This mainly allows to dynamically load the third party libraries.

In the same process, those libs have changed:

- tokml => switch to placemarkio fork, more up to date and available
  as ESM
- togpx => switch to geojson-to-gpx, more up to date and available as
  ESM (note: this lib does not export polygons, because they do not
  make sense in GPX world, while the previous was converting them as
  lines before)
Also add missing .map files.

Maybe a proper solution would be to commit the vendors/ and
remove manually the comments.
We want to be able to await function there.

Specifically, we want to await the data creation when it comes from
the `data` url param, so when we also consume the `feature` url param,
that feature is already on the map so we can open it
@yohanboniface yohanboniface changed the title wip: move formatters to a module move formatters and share to a module, and use new GPX library Jul 5, 2024
@yohanboniface yohanboniface merged commit b68ca85 into master Jul 5, 2024
4 checks passed
@yohanboniface yohanboniface deleted the formatters branch July 5, 2024 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant