
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
vue3-openlayers
Advanced tools
Web map Vue components with the power of OpenLayers
Openlayers Useful 3rd party libraries https://openlayers.org/3rd-party/
6 hours of debugging can save you 5 minutes of reading documentation :) please read the doc :)
# install current vue3-openlayers version
npm install vue3-openlayers
or
yarn add vue3-openlayers
vue3-openlayers is components library that brings the powerful OpenLayers API to the Vue3 reactive world. It can display maps with tiled, raster or vector layers loaded from different sources.
MIT (c) Melih AltΔ±ntaΕ
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:
FAQs
OpenLayers Wrapper for Vue3
The npm package vue3-openlayers receives a total of 2,701 weekly downloads. As such, vue3-openlayers popularity was classified as popular.
We found that vue3-openlayers demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.