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

Svelte5 migration + complete rewrite #6

Draft
wants to merge 51 commits into
base: master
Choose a base branch
from
Draft

Svelte5 migration + complete rewrite #6

wants to merge 51 commits into from

Conversation

romaindurand
Copy link
Collaborator

@romaindurand romaindurand commented Nov 5, 2024

  • Doesn't require to install leaflet or leaflet.markercluster, most useful types are also exported from the package
  • Support for SSR
  • Reactivity is handled with runes
  • leaflet events are available directly from components with the new oneventname syntax, using the bindable instance is rarely needed
  • All component attributes and options are reactive, except for the one that would require to re-instanciate the leaflet class
  • Should be more reliable since contexts does not rely on components rendering anymore (no more await tick() to wait for parent context to be defined)

@romaindurand romaindurand marked this pull request as draft November 5, 2024 13:24
- typed leaflet event sourceTarget
- handle components destroy
- hide DivIcon & Popup html child from page
- fixed map not firing load event with no location control
- added too many await tick(), needs refactornig
- improved cluster demo page
- added list/marker two-way binding demo page
- Removes all await tick()
- Prevents children from being rendered before initializing component leaflet instance, except for components that only have html as children
- fixes Popup content setup, DivIcon should be a direct children of Marker, not Popup
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