vue3-openlayers
Advanced tools
Changelog
10.0.0 (2024-05-22)
useLayerInMapOrLayerGroup
into useLayer
(3a7835c)useSource
composable (56b386d), closes #354useLayerInMapOrLayerGroup
was renamed to useLayer
imageLayer
references is now wrapped in a Ref
which will make it reactive:
In case the layer changes, the source is updated and applied to the changed layers reference.
This behavior was already default for all layer types:
-const layer = inject<ImageLayer<Static> | null>("imageLayer");
+const layer = inject<Ref<ImageLayer<Static>> | null>("imageLayer");
Changelog
9.0.0 (2024-05-12)
tileGrid
prop (1237fe1)ol-layer-group
, it is added to the group.
2.) If the layer component is inside an ol-overviewmap-control
, it is added to the OverviewMap
3.) If 1) and 2) do not apply, the layer component is added directly to the map