Skip to content

v1.0.0-next.13

Pre-release
Pre-release
Compare
Choose a tag to compare
@dimfeld dimfeld released this 20 Mar 19:05
· 2 commits to master since this release

Breaking Changes

  • #262 547e5e1 Thanks @dimfeld! - Set loaded = true on style.load instead of load.

    This greatly improves responsiveness of setting up the initial sources and layers.
    The MapLibre component also no longer gates rendering its children snippet on loaded.

    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 for loaded yourself using a pattern like this:

    const { map, loaded } = $derived(getMapContext())
    
    $effect(() => {
        if(map && loaded) {
            map.addSource(...);
        }
    })

Improvements

Fixes