svelte-maplibre
Advanced tools
Changelog
0.6.0
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:
interactive
prop for Marker
and MarkerLayer
has been renamed to asButton
, to make room for the new
interactive
prop.pickable
prop, but interactive
should be used instead for consistency.
The behavior here is unchanged though.Changelog
0.5.0
821c3bd
Thanks @dabreegster! - Make eventsIfTopMost also work for manageHoverState, and introduce
openIfTopMost for Popups. openIfTopMost
defaults to true, which changes the default behavior for overlapping popups.accb09d
Thanks @mhrgoldberg! - Fix GeoJSON component reactivity to data changes after map styles are updated.Changelog
0.4.3
#65 6e9a532
Thanks @stuartlynn! - Adds a JoinData component to allow data to be joined to vector features in the client
#69 1ced5d7
Thanks @dabreegster! - Add hash to track viewport in the URL
#68 d2459d5
Thanks @dabreegster! - Fix the map bounds property to work when initially set
#72 f403ca0
Thanks @dabreegster! - Fix hover state for vector tiles sources
#73 c42b2cc
Thanks @knd775! - Re-export common types from maplibre-gl
Changelog
0.4.0
manageHoverState
on all Layer types is now false
, which is a breaking change.#60 ffd53aa
Thanks @stuartlynn! - Preserve sources and layers added by the user when changing the base map style
#59 721b0a0
Thanks @stuartlynn! - Add support for vector tile sources
Changelog