vue-leaflet-antimeridian
v1.0.1
Published
An antimeridian plugin extension for the vue-leaflet package
Downloads
20
Readme
vue-leaflet-antimeridian
An antimeridian plugin extension for the vue-leaflet package
Description
This plugin wraps the Leaflet.Antimeridian component and makes it available for vue2-leaflet. Using this should better handle any lines or polygons which pass over the 180th meridian.
Usage
Import LPolygon or LPolyline from this package and use as drop-in replacements for the default components in vue2-leaflet.
Example
There is a rough example in the example directory. To see this working locally, run:
npm installnpm run example
Caveats
- At the time of writing, Leaflet.Antimeridian hadn't seen any updates since 2017.
- The author of vue-leaflet-antimeridian has no prior experience of using vue or leaflet.
- Vue 2 reached its End of Life in 2023.
Building & Publishing the module
To build the module and publish it to npm registry, ensure the version field in package.json has been updated, and run the following commands:
npm run buildnpm publish
