dimfeld / svelte-maplibre

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

Fix hover state for features with ID 0 #37

Closed dabreegster closed 1 year ago

dabreegster commented 1 year ago

0 is a valid feature ID, but because it's falsy, it's often a headache. I noticed hover state for such cases gets stuck: hovering on the feature works, but then moving off doesn't change anything. This PR should fix that.

I tested over in https://github.com/dabreegster/geodiffr, but if there's another approach to testing in the built-in app here, let me know

vercel[bot] commented 1 year ago

Someone is attempting to deploy a commit to a Personal Account owned by @dimfeld on Vercel.

@dimfeld first needs to authorize it.

vercel[bot] commented 1 year 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 Jul 3, 2023 10:12pm
dimfeld commented 1 year ago

Thanks!