Skip to content

yuda-lyu/w-leaflet-vue

Repository files navigation

w-leaflet-vue

A wrapper for vue2-leaflet.

language language npm version license gzip file size npm download npm download jsdelivr download

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 and wsemi.

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 and wsemi, 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/vue@2.x/dist/vue.min.js"></script>

[Necessary] Add script for w-leaflet-vue.

<script src="https://cdn.jsdelivr.net/npm/w-leaflet-vue@1.0.52/dist/w-leaflet-vue.umd.js"></script>

About

A wrapper for vue2-leaflet.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published