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

[#614] Use leaflet-tools #624

Merged
merged 9 commits into from
Jan 22, 2024
Merged

[#614] Use leaflet-tools #624

merged 9 commits into from
Jan 22, 2024

Conversation

Viicos
Copy link
Contributor

@Viicos Viicos commented Dec 29, 2023

Fixes #614

Copy link

codecov bot commented Dec 29, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (20091ae) 73.02% compared to head (0764db1) 73.44%.

❗ Current head 0764db1 differs from pull request most recent head cf2fe87. Consider uploading reports for the commit cf2fe87 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #624      +/-   ##
==========================================
+ Coverage   73.02%   73.44%   +0.42%     
==========================================
  Files         219      218       -1     
  Lines        4475     4467       -8     
  Branches     1186     1186              
==========================================
+ Hits         3268     3281      +13     
+ Misses       1168     1147      -21     
  Partials       39       39              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Viicos
Copy link
Contributor Author

Viicos commented Jan 3, 2024

Hitting a weird test failure. Might be related: Leaflet/Leaflet#6416 (comment)

Copy link
Member

Choose a reason for hiding this comment

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

I was hoping we could get rid of this file entirely and instead use only the exports from @open-formulieren/leaflet-tools

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We could but there are still some constants specific to the sdk: DEFAULT_LAT_LNG, DEFAULT_ZOOM

@sergei-maertens
Copy link
Member

Hitting a weird test failure. Might be related: Leaflet/Leaflet#6416 (comment)

Try updating leaflet to the latest version, this code works in the new form builder 🤔

@Viicos Viicos force-pushed the feature/614-leaflet-tools branch from f78ab04 to ccd827e Compare January 11, 2024 15:43
@Viicos
Copy link
Contributor Author

Viicos commented Jan 11, 2024

Try updating leaflet to the latest version, this code works in the new form builder 🤔

tried with no eval

@Viicos Viicos force-pushed the feature/614-leaflet-tools branch from b2796f4 to 0764db1 Compare January 15, 2024 10:54
@SilviaAmAm SilviaAmAm self-requested a review January 15, 2024 15:16
@Viicos
Copy link
Contributor Author

Viicos commented Jan 15, 2024

Regarding sergei's questions: he asked if it was possible to get rid of the constants module, but the current form builder does not set default values for the center. So did a bit of cleanup but still keeping the module

@sergei-maertens sergei-maertens force-pushed the feature/614-leaflet-tools branch from 0764db1 to 5de6fee Compare January 22, 2024 13:48
The tile layer attribution is included in the TILE_LAYER_RD already.
@sergei-maertens sergei-maertens merged commit 995d4d6 into main Jan 22, 2024
13 checks passed
@sergei-maertens sergei-maertens deleted the feature/614-leaflet-tools branch January 22, 2024 14:08
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.

Use leaflet-tools package
3 participants