<view class="address-map">
<map id="map" longitude="{{jobDetail.longitude}}" latitude="{{jobDetail.latitude}}" scale="14" markers="{{markers}}" bindtap="handleMap" show-location style=" 100%; height: 196rpx;">
</map>
</view>
js:
import WxParse from '../../vendor/wxParse/wxParse.js'
data: {
latitude: '',
longitude: '',
35,
height: 45,
markers: [{
latitude: '',
longitude: '',
}],
},
通过点击事件打开地图界面
<view class="address-map"> <map id="map" longitude="{{longitude}}" latitude="{{latitude}}" scale="14" markers="{{markers}}" circles="{{circles}}" show-location style=" 100%; height: 100vh;"> </map> </view>
import WxParse from '../../vendor/wxParse/wxParse.js' Page({ data: { jobDetail: {}, show: 1, isApply: 1, id: 0, jobId: '', latitude: 40.002607, longitude: 116.487847, 100, height: 100, markers: [{ latitude: 40.002607, longitude: 116.487847, }], },
点击地图跳转到