<map id="map" polygon="{{polygon}}" longitude="{{longitude}}" latitude="{{latitude}}" scale="{{scale}}" show-location="{{showLocation}}" enable-3D="{{enable3D}}" show-compass="{{showCompass}}" enable-overlooking="{{enableOverlooking}}"
enable-building="{{enablebuilding}}" enable-traffic="{{enableTraffic}}" skew="{{skew}}" markers="{{markers}}"
bindregionchange="bindregionchange" bindtap="clickMap"
>
</map>
markers:[
{id:0,latitude:'34.07813376383551',longitude:'108.84553627268303',title:"这里是点位标题",iconPath: "../../assets/images/love.png",width:36, height:36},
{id:1,latitude:'34.07845355118568',longitude:'108.97297261453014',title:"这里是点位标题2",iconPath: "../../assets/images/love2.png",width:26, height:26},
{id:1,latitude:'34.141385451306554',longitude:'108.8905864564781',title:"这里是点位标题2",iconPath: "../../assets/images/love2.png",width:26, height:26}
],
longitude:'108.94878',
latitude: '34.22259',
scale:17,
skew:45,
showLocation:true,
subkey:'',
enable3D:true,
showCompass:true,
enableOverlooking:true,
enablebuilding:true,
enableTraffic:true,
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
//这是js代码:
data:{
markers:[
{id:0,latitude:'34.07813376383551',longitude:'108.84553627268303',title:"这里是点位标题",iconPath: "../../assets/images/love.png",width:36, height:36},
{id:1,latitude:'34.07845355118568',longitude:'108.97297261453014',title:"这里是点位标题2",iconPath: "../../assets/images/love2.png",width:26, height:26},
{id:1,latitude:'34.141385451306554',longitude:'108.8905864564781',title:"这里是点位标题2",iconPath: "../../assets/images/love2.png",width:26, height:26}
],
longitude:'108.94878',
latitude: '34.22259',
scale:17,//缩放级别
//minScale:3,//最小缩放级别 min-scale
//maxScale:20,//最大缩放级别 max-scale
skew:45,//倾斜角度,范围 0 ~ 40 , 关于 z 轴的倾角
showLocation:true,//显示带有方向的当前定位点
//polygons:[],//多边形
subkey:'',//地图能力【个性化地图】使用的key,不支持动态修改
enable3D:true,//
showCompass:true,//显示指南针
enableOverlooking:true,//开启俯视
enablebuilding:true,//是否展示建筑物
enableTraffic:true,//是否开启实时路况
}
//这是wxml代码
<map id="map" polygon="{{polygon}}" longitude="{{longitude}}" latitude="{{latitude}}" scale="{{scale}}" show-location="{{showLocation}}" enable-3D="{{enable3D}}" show-compass="{{showCompass}}" enable-overlooking="{{enableOverlooking}}"
enable-building="{{enablebuilding}}" enable-traffic="{{enableTraffic}}" skew="{{skew}}" markers="{{markers}}"
bindregionchange="bindregionchange" bindtap="clickMap"
>
</map>