vue3-openlayers
Advanced tools
Changelog
Summary (compared to version 0.5.1
)
<script setup>
syntaxol-layer-group
, ol-source-tile-json
, ol-source-stadia-maps
and ol-vector-image-layer
ref
in templatesPlease be sure to install the following peerDependencies in your project:
"ol": "^7.4.0",
"ol-contextmenu": "^5.2.1",
"ol-ext": "^4.0.8"
general: dropped support for Openlayers 6 and below. Please use Openlayers 7.x.x
general: lot's of property types have been updated to match with the types in Openlayers. This may lead to TypeScript issues that must be fixed. Please have a look at all Changelog notes from the alpha and next releases before.
ol-geolocation: pass-through original events from Openlayers directly and remove legacy events
The following events are not emitted anymore and replaced with the events from Openlayers.
All new events receive a generic ObjectEvent
.
This means, changing only the event name in your templates isn't enough, you must adopt the implementations of the handler functions, so the will receive an ObjectEvent
as first parameter.
positionChanged
-> change:position
speedChanged
-> change:speed
headingChanged
-> change:heading
altitudeChanged
-> change:altitude
altitudeAccuracyChanged
-> change:altitudeAccuracy
accuracyGeometryChanged
-> change:accuracyGeometry
Please refer to the official Openlayers docs for Geolocation for details of the emitted event data format.
Special thanks goes to: