基于 Vue 2.x 和google地图的地图组件
npm install vue2-googlemap> 基于 Vue 2.x 和google地图的地图组件
`` bash`
npm install -S vue2-googlemap
` javascript
import Vue from 'vue';
import vueGooglemap from 'vue2-googlemap';
Vue.use(vueGooglemap);
/*
The api key is required.
If you want to ignore the browser's language setting, you can set the language parameter.
Suggest to use the release version. v=3 by default.
*/
vueGooglemap.initGooglemap({
key: 'your GOOGLE_MAPS_API_KEY',
language: 'zh-CN',
v: '3',
})
`
javascript
`
$3
` javascript
`
$3
` javascript
`
$3
` javascript
`
$3
` javascript
`
$3
` javascript
`
$3
` javascript
``This project is covered under the MIT License. Feel free to use it wherever you like.