MCPcopy
hub / github.com/ElemeFE/vue-amap

github.com/ElemeFE/vue-amap @v0.1.6 sqlite

repository ↗ · DeepWiki ↗ · release v0.1.6 ↗
39 symbols 59 edges 20 files 1 documented · 3%
README

vue-amap

Build Status npm package NPM downloads JS gzip size license GitHub stars

vue-amap是一套基于Vue 2.0和高德地图的地图组件。

安装

npm install -S vue-amap

文档

https://elemefe.github.io/vue-amap

快速上手

引入vue-amap

// 引入vue-amap
import AMap from 'vue-amap';
Vue.use(AMap);

// 初始化vue-amap
AMap.initAMapApiLoader({
  // 高德的key
  key: 'YOUR_KEY',
  // 插件集合
  plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor']
});

组件

地图

<el-amap vid="amapDemo" :zoom="zoom" :center="center">
</el-amap>

点坐标

<el-amap vid="amapDemo" :zoom="zoom" :center="center">
  <el-amap-marker v-for="marker in markers" :position="marker.position"></el-amap-marker>
</el-amap>

折线

<el-amap vid="amapDemo" :zoom="zoom" :center="center">
  <el-amap-polyline :path="polyline.path"></el-amap-polyline>
</el-amap>

多边形

<el-amap vid="amapDemo" :zoom="zoom" :center="center">
  <el-amap-polygon v-for="polygon in polygons" :path="polygon.path" :events="polygon.events"></el-amap-polygon>
</el-amap>

<el-amap vid="amapDemo" :zoom="zoom" :center="center">
  <el-amap-circle v-for="circle in circles" :center="circle.center" :radius="circle.radius"></el-amap-circle>
</el-amap>

图片覆盖物

<el-amap vid="amapDemo" :zoom="zoom" :center="center">
  <el-amap-groundimage v-for="groundimage in groundimages" :url="groundimage.url"></el-amap-groundimage>
</el-amap>

信息窗体

<el-amap vid="amapDemo" :zoom="zoom" :center="center">
  <el-amap-info-window v-for="window in windows" :position="window.position" :content="window.content" :open="window.open"></el-amap-info-window>
</el-amap>

Search-Box

<el-amap-search-box class="search-box" :search-option="searchOption" :on-search-result="onSearchResult"></el-amap-search-box>
<el-amap vid="amapDemo">
</el-amap>

Core symbols most depended-on inside this repo

toLngLat
called by 3
src/lib/utils/convert-helper.js
addListener
called by 2
src/lib/utils/event-helper.js
toPixel
called by 1
src/lib/utils/convert-helper.js
toBounds
called by 1
src/lib/utils/convert-helper.js
removeListener
called by 1
src/lib/utils/event-helper.js
addListenerOnce
called by 1
src/lib/utils/event-helper.js
clearListeners
called by 1
src/lib/utils/event-helper.js
load
called by 1
src/lib/services/lazy-amap-api-loader.js

Shape

Function 17
Method 16
Class 6

Languages

TypeScript100%

Modules by API surface

src/lib/mixins/register-component.js11 symbols
src/lib/managers/amap-manager.js9 symbols
src/lib/utils/event-helper.js8 symbols
src/lib/services/lazy-amap-api-loader.js5 symbols
src/lib/utils/convert-helper.js3 symbols
src/lib/utils/guid.js1 symbols
src/lib/services/injected-amap-api-instance.js1 symbols
src/lib/mixins/editor-component.js1 symbols

Dependencies from manifests, versioned

autoprefixer6.4.0 · 1×
babel-core6.17.0 · 1×
babel-eslint7.1.1 · 1×
babel-helper-vue-jsx-merge-props2.0.2 · 1×
babel-loader6.2.5 · 1×
babel-plugin-syntax-jsx6.8.0 · 1×
babel-plugin-transform-runtime6.0.0 · 1×
babel-preset-es20156.16.0 · 1×
babel-preset-stage-06.16.0 · 1×
babel-preset-stage-26.0.0 · 1×
babel-register6.0.0 · 1×

For agents

$ claude mcp add vue-amap \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact