https://github.com/sxyhappy/vue2-maptalks
maptalks vue2 实现
https://github.com/sxyhappy/vue2-maptalks
maptalks vuejs2
Last synced: 5 months ago
JSON representation
maptalks vue2 实现
- Host: GitHub
- URL: https://github.com/sxyhappy/vue2-maptalks
- Owner: sxyhappy
- License: mit
- Created: 2021-05-19T10:01:38.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-06T02:33:57.000Z (over 3 years ago)
- Last Synced: 2025-09-19T19:52:09.062Z (9 months ago)
- Topics: maptalks, vuejs2
- Language: Vue
- Homepage: https://sxyhappy.github.io/vue2-maptalks/
- Size: 1.08 MB
- Stars: 11
- Watchers: 1
- Forks: 1
- Open Issues: 17
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# vue2-maptalks
vue2-maptalks 是 [vue](https://vuejs.org/) 和 [maptalks](https://maptalks.org/) 的实现
## Links
[API 文档](https://sxyhappy.github.io/vue2-maptalks/)
## 安装
### npm or yarn
```bash
# npm
npm i vue2-maptalks maptalks -S
# yarn
yarn add vue2-maptalks maptalks
```
## 使用
```js
// main.js
import Vue from 'vue';
import {Vue2Maptalks} from 'vue2-maptalks';
import 'maptalks/dist/maptalks.css';
Vue.use(Vue2Maptalks);
```
```html
info body
export default {
data() {
return {
mapOptions: {
zoom: 13,
center: [-0.113049, 51.498568],
},
}
}
}
```
## 开发
```bash
git clone https://github.com/sxyhappy/vue2-maptalks.git
cd vue2-maptalks
# install dependencies
npm install
# or
yarn
# run dev
npm run dev
```
## LICENSE
[MIT](LICENSE)