vue2-leaflet-axesgrid
v1.1.0
Published
A Leaflet.AxesGrid plugin for the vue2-leaflet package
Downloads
197
Readme
vue2-leaflet-axesgrid
This is a AxesGrid plugin extension for the vue2-leaflet package.
Install
npm install vue2-leaflet-axesgrid
Quickstart
For a complete example, have a look at the demo code in the single-file component example.
On <template> add something like this
<v-map :crs="crs">
<v-axesgrid :options="opts"/>
<v-image-overlay :url="imageUrl" :bounds="bounds"/>
</v-map>
on <script> add
import Vue2Leaflet from 'vue2-leaflet'
import Vue2LeafletAxesGrid from 'vue2-leaflet-axesgrid'
export default {
components: {
'v-map': Vue2Leaflet.Map,
'v-axesgrid': Vue2LeafletAxesGrid
},
data () {
return {
options: {
opt: { ... },
... // More AxesGrid and Map options.
}
}
}
}
Demo
git clone [email protected]:tesselo/vue2-leaflet-axesgrid.git
cd vue2-leaflet-axesgrid
npm install
npm run example
Then you should be able to navigate with your browser and see the demo in http://localhost:4000/
Develop and build
npm install
npm run build
Acknowledgements
Thanks to Aaron Gong and Julián Perelli, the authors of the markercluster plugin and the tracksymbol plugin. Both packages have been used as a basis to build this plugin.