w-leaflet-vue
v1.0.52
Published
A wrapper for vue2-leaflet.
Downloads
107
Maintainers
Readme
w-leaflet-vue
A wrapper for vue2-leaflet.
Documentation
To view documentation or get support, visit docs.
Example
To view some examples for more understanding, visit examples:
all examples: web [source code]
Installation
Using npm(ES6 module):
Note: w-leaflet-vue is mainly dependent on
leaflet
,vue2-leaflet
,w-gis
andwsemi
.
npm i w-leaflet-vue
In a browser(UMD module):
Note: w-leaflet-vue is mainly dependent on
vue
.
Note: umd file includes with
lodash-es
andwsemi
, by using tree-shaking for dead-code elimination.
[Optional] Add script with nomodule for IE11.
<script nomodule src="https://cdn.jsdelivr.net/npm/@babel/polyfill/dist/polyfill.min.js"></script>
[Necessary] Add script for vue.
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.min.js"></script>
[Necessary] Add script for w-leaflet-vue.
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/w-leaflet-vue.umd.js"></script>