v1.0.0-next.13
Pre-releaseBreaking Changes
-
#262
547e5e1
Thanks @dimfeld! - Setloaded = true
onstyle.load
instead ofload
.This greatly improves responsiveness of setting up the initial sources and layers.
The MapLibre component also no longer gates rendering its children snippet onloaded
.For most users this will not be a breaking change, since the
Layer
and various source-based components
included with this library will wait for it. If you have a custom component you may need to wait forloaded
yourself using a pattern like this:const { map, loaded } = $derived(getMapContext()) $effect(() => { if(map && loaded) { map.addSource(...); } })
Improvements
-
#246
2db55af
Thanks @dimfeld! - AddcanOpen
property to a Popup which allows per-feature control over whether to show a popup or not -
#262
547e5e1
Thanks @dimfeld! - Add BackgroundLayer component -
#262
547e5e1
Thanks @dimfeld! - Addanchor
property to markers -
#245
c1e8a00
Thanks @dimfeld! - Allow Popups to inherit lngLat from a parent Marker