右键点击地图生成经纬度,同时支持百度、天地图、高德三种地图。
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>