1.0.1 • Published 4 years ago

map-coordinate-selection v1.0.1

Weekly downloads
2
License
ISC
Repository
-
Last release
4 years ago

功能

右键点击地图生成经纬度,同时支持百度、天地图、高德三种地图。

安装

npm install map-coordinate-selection -S

使用

import MapView from 'map-coordinate-selection/components/Map.vue'
<div class="content-box">
  <label>地图选点</label>
  <input
    type="text"
    v-model="form.coord"
  />
  <map-view
    :center="mapCenter" // 地图中心点经纬度
      :type="mapType" // 地图类型 BaiDu TianDiTu GaoDe
    @inputCoord="updateCoord"
  ></map-view>
</div>