vue-mgl

mapbox-gl vue components (map, layers, sources, controls)
1,691 8
Install
npm install vue-mgl
Latest Version:0.4.0
Vue:2
License:MIT
Last Updated:Jan 16, 2020
Links: GitHub  ·  npm
Maintainer: magicdawn

vue-mgl

mapbox-gl vue components (map, layers, sources, controls)

Build Status Coverage Status npm version npm downloads npm license

Install

$ npm i vue-mgl --save

builds

file field desc externals
dist/vue-mgl.esm.js package.module es module build external all dependencies
dist/vue-mgl.common.js package.main commonjs build external all dependencies
dist/vue-mgl-full.umd.js package.umd browser build, for <script src> use external mapbox-gl & vue

API

use global mgl-* component

import VueMgl from 'vue-mgl'
import Vue from 'vue'
Vue.use(VueMgl) // this will add MglMap ... global components

manual import

import { MglMap, MglSource, MglLayer } from 'vue-mgl'

export default {
  // ...
  components: { MglMap, MglSource, MglLayer },
  // ...
}

Changelog

CHANGELOG.md

License

the MIT License http://magicdawn.mit-license.org

Related Packages

vue3-mapbox-gl

一个基于Vue3+Typescript封装的Mapbox地图组件

4,219 3
vue2mapbox-gl

Vue >2 integration of mapbox.

2,231 19
mapbox-gl-vue

A Vue.js component for Mapbox GL js

63,434 265
vue-mapbox-geocoder

Geocoder plugin for VueMapbox

14,554 13
vue-mapbox-ts

Reactive Vue3 Mapbox Framework for Vue.js written in TypeScript

194,679

Version History

Version Released Vue License
0.4.0 ^2.6.10 MIT
0.3.0 ^2.6.10 MIT
0.2.2 ^2.6.10 MIT
0.2.1 ^2.6.10 MIT
0.2.0 ^2.6.10 MIT