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

chore: Remove leaflet CDN dependencies #4001

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jason-p-pickering
Copy link
Contributor

These should already be packaged as part of the app build, so no reason to include them separately via a CDN.

@jason-p-pickering jason-p-pickering requested a review from a team as a code owner March 14, 2025 06:55
Copy link

Comment on lines -53 to -54
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.3.3/leaflet.css'>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/leaflet.draw/0.4.2/leaflet.draw.css"/>
Copy link
Contributor

Choose a reason for hiding this comment

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

The map is, as far as I know, the only component that uses leaflet. With these changes, the component appears to be broken. Before removing these CDN dependencies, we need to make sure everything still works, both when capturing coordinates and when capturing a polygon area.
leaflet
Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was a bit of a speculative PR to see if it works, but the better solution would just be to package the dependency along with the app if it is not already?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants