dimfeld / svelte-maplibre

Svelte bindings for the MapLibre mapping library
https://svelte-maplibre.vercel.app
MIT License
283 stars 34 forks source link

Allow setting layers non-interactive #94

Closed dimfeld closed 8 months ago

dimfeld commented 8 months ago

Allow setting layers to be non-interactive. Layers with interactive={false} will not emit mouse events, and will not participate in hit testing when comparing to other layers with eventsIfTopMost.

This is useful, for example, when placing a SymbolLayer on top of a CircleLayer. See the updated "Clusters and Popups" example; previous the popup would disappear when the mouse was over the labels, but not it does not.

This is a breaking change:

changeset-bot[bot] commented 8 months ago

🦋 Changeset detected

Latest commit: 73260606b7b289a4472f715018c48ceff25b3f87

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | --------------- | ----- | | svelte-maplibre | Major |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

vercel[bot] commented 8 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
svelte-maplibre ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 23, 2023 9:07pm