小程序
小游戏
企业微信
微信支付
扫描小程序码分享
地图划线arrowLine 设置false不起效,真机一直有箭头。
1 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
是不是设置了别的line 请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
<view class="map-container plr20">
<map
class="map"
id="map"
latitude="{{location.latitude}}"
longitude="{{location.longitude}}"
markers="{{markers}}"
polyline="{{polyline}}"
scale="{{scale}}"
>
</map>
</view>
polyline: [{
points: [{ "latitude": 40.040129, "longitude": 116.274968 }, { "latitude": 40.038974, "longitude": 116.275214 }, { "latitude": 40.038974, "longitude": 116.275214 }, { "latitude": 40.038565000000006, "longitude": 116.272683 }, { "latitude": 40.03848200000001, "longitude": 116.27209500000001 }, { "latitude": 40.03836100000001, "longitude": 116.27074 }, { "latitude": 40.03832700000001, "longitude": 116.270515 }, { "latitude": 40.03807400000001, "longitude": 116.268038 }, { "latitude": 40.03801400000001, "longitude": 116.26763600000001 }, { "latitude": 40.03801400000001, "longitude": 116.26763600000001 }, { "latitude": 40.03790800000001, "longitude": 116.267508 }, { "latitude": 40.03450300000001, "longitude": 116.270961 }, { "latitude": 40.03419900000001, "longitude": 116.271221 }, { "latitude": 40.03396500000001, "longitude": 116.271401 }, { "latitude": 40.03245000000001, "longitude": 116.272472 }],
color: '#FF5F00',
colorList: ['#000000', '#000000', '#000000', '#000000', '#000000', '#FF5F00'],
width: 6,
arrowLine: false
}],
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
是不是设置了别的line 请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
<view class="map-container plr20">
<map
class="map"
id="map"
latitude="{{location.latitude}}"
longitude="{{location.longitude}}"
markers="{{markers}}"
polyline="{{polyline}}"
scale="{{scale}}"
>
</map>
</view>
polyline: [{
points: [{ "latitude": 40.040129, "longitude": 116.274968 }, { "latitude": 40.038974, "longitude": 116.275214 }, { "latitude": 40.038974, "longitude": 116.275214 }, { "latitude": 40.038565000000006, "longitude": 116.272683 }, { "latitude": 40.03848200000001, "longitude": 116.27209500000001 }, { "latitude": 40.03836100000001, "longitude": 116.27074 }, { "latitude": 40.03832700000001, "longitude": 116.270515 }, { "latitude": 40.03807400000001, "longitude": 116.268038 }, { "latitude": 40.03801400000001, "longitude": 116.26763600000001 }, { "latitude": 40.03801400000001, "longitude": 116.26763600000001 }, { "latitude": 40.03790800000001, "longitude": 116.267508 }, { "latitude": 40.03450300000001, "longitude": 116.270961 }, { "latitude": 40.03419900000001, "longitude": 116.271221 }, { "latitude": 40.03396500000001, "longitude": 116.271401 }, { "latitude": 40.03245000000001, "longitude": 116.272472 }],
color: '#FF5F00',
colorList: ['#000000', '#000000', '#000000', '#000000', '#000000', '#FF5F00'],
width: 6,
arrowLine: false
}],