All Projects → tesselo → vue2-leaflet-vectorgrid

tesselo / vue2-leaflet-vectorgrid

Licence: BSD-3-Clause license
A Leaflet.VectorGrid plugin for the vue2-leaflet package.

Programming Languages

javascript
184084 projects - #8 most used programming language
Vue
7211 projects

Projects that are alternatives of or similar to vue2-leaflet-vectorgrid

vue2-leaflet-rotatedmarker
rotated marker plugin extension for vue2-leaflet package
Stars: ✭ 17 (+0%)
Mutual labels:  leaflet, vue2-leaflet
vue2-dialog
A mobile Vue plugin for VueDialog
Stars: ✭ 21 (+23.53%)
Mutual labels:  vue2
vuejs2-wysiwyg
jQuery Summernote WYSIWYG Editor implementation for REST based single page applications that run on vue.js 2.0.
Stars: ✭ 15 (-11.76%)
Mutual labels:  vue2
kemal-vue-chat
this is experimental repo for Kemal and Vue.js (+ WebSocket)
Stars: ✭ 32 (+88.24%)
Mutual labels:  vue2
vue-lazy-load-img
vue版本的lazy-load-img图片懒加载插件
Stars: ✭ 31 (+82.35%)
Mutual labels:  vue2
qiokian
🙊 live2d anime waifu vuejs component.
Stars: ✭ 34 (+100%)
Mutual labels:  vue2
vue-active-swiper
🌴 A Mobile-oriented、No dependencies、Lightweight Swiper component for Vue
Stars: ✭ 33 (+94.12%)
Mutual labels:  vue2
leaflet-paintpolygon
Leaflet plugin to create polygon with circle as paint
Stars: ✭ 38 (+123.53%)
Mutual labels:  leaflet
vue-number-keyboard
vue-number-keyboard是基于VUE实现的数字键盘插件,当前支持整数、小数数字输入、乱序键盘,demo中给出了常用的验证码、金额数字示例。数字键盘的大小包括字体尺寸支持响应式。
Stars: ✭ 51 (+200%)
Mutual labels:  vue2
vue-mintUI-demo
采用vue2、Mint UI,做的移动端项目
Stars: ✭ 17 (+0%)
Mutual labels:  vue2
vue-observable
IntersectionObserver, MutationObserver and PerformanceObserver in Vue.js
Stars: ✭ 24 (+41.18%)
Mutual labels:  vue2
osm4scala
Scala and Spark library focused on reading OpenStreetMap Pbf files.
Stars: ✭ 62 (+264.71%)
Mutual labels:  pbf
harp-leaflet
Leaflet plugin for harp.gl
Stars: ✭ 16 (-5.88%)
Mutual labels:  leaflet
coronavirus-map-dashboard
🦠 Coronavirus (COVID-19) Map Dashboard using coronavirus-tracker-api
Stars: ✭ 41 (+141.18%)
Mutual labels:  leaflet
toggle
Vue 3 toggle component with labels, custom slots and styling options (+Tailwind CSS support).
Stars: ✭ 75 (+341.18%)
Mutual labels:  vue2
leaflet-area-select
Control to just select an area and provide bbox for it
Stars: ✭ 27 (+58.82%)
Mutual labels:  leaflet
quasar-hackernews
HackerNews clone built with Vue 2.0, vue-router & vuex & Quasar Framework, with server-side rendering
Stars: ✭ 25 (+47.06%)
Mutual labels:  vue2
vue-amazeui
一只基于Amaze UI Touch React.js 的移动端 Web 组件库样式的基础上用Vue2.0.js来重构的移动端 Web 组件库。
Stars: ✭ 40 (+135.29%)
Mutual labels:  vue2
Flue
Yep, another Flux implementation for Vuejs. Docs: https://francescosaveriozuppichini.github.io/Flue/header.html
Stars: ✭ 13 (-23.53%)
Mutual labels:  vue2
ci-ifd-lead
Code Institute | Interactive Frontend Development | 6-week _lead project
Stars: ✭ 16 (-5.88%)
Mutual labels:  leaflet

vue2-leaflet-vectorgrid

This is a VectorGrid plugin extension for the vue2-leaflet package. Currently only the VectorGrid.protobuf layer is implemented.

Install

npm install vue2-leaflet-vectorgrid

Quickstart

For a complete example, have a look at the demo code in the single-file component example.

On <template> add something like this

<l-map :zoom=10 :center="[-34.9205, -57.953646]">
  <l-protobuf url="https://example.com/my/favorite/endpoint/{z}/{y}/{x}.pbf" :options="options"/>
</l-map>

on <script> add

import { LMap } from 'vue2-leaflet';
import LProtobuf from 'vue2-leaflet-vectorgrid'

export default {
  components: {
    LMap,
    LProtobuf
  },
  data () {
    return {
      options: {
      	vectorTileLayerStyles: { ... },
         ...  // More VectorGrid options.
      }
    }
  }
}

Example

There is a simple but complete usage example. First, clone the repo and install its dependencies.

git clone [email protected]:tesselo/vue2-leaflet-vectorgrid.git
cd vue2-leaflet-vectorgrid
npm install

Also install peer dependencies.

npm install vue leaflet vue2-leaflet

To run the example @vue/cli and @vue/cli-service-global are required to be installed globally.

   npm install -g @vue/cli @vue/cli-service-global

Start the dev server using the the vue serve utility

vue serve example/app.vue

Then you should be able to navigate with your browser and see the demo at http://localhost:8080/.

Develop and build

npm install
npm run build

Deploy

Pack locally for install testing.

npm pack

Publish release

npm publish

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].