uniapp 地图行车轨迹
官网地图组件:https://uniapp.dcloud.net.cn/component/map.html
官网地图组件控制:https://uniapp.dcloud.net.cn/api/location/map.html#createmapcontext
1、画地图
<map class="positioning-map"
id="largeScreenMap"
:latitude="中心纬度"
:longitude="中心经度"
:scale="5"
:include-points="polyline[0].points"
:markers="标记点"
:polyline="路线"
@markertap="点击标记点时触发"
></map>
// 地图实例
onReady() {
this._mapContext = uni.createMapContext