收藏
回答

小程序中使用map组件,android显示不出来街道城市,但ios可以显示?

小程序中使用map组件,android(魅族手机和红米手机)显示不出来街道城市,但ios可以显示

截图如下:

android:




ios:


代码片段:

<view class="container">

<view class="row">

<text style="font-size:medium;word-break:break-all">设备ID:{{cx_deviceId}}</text>

</view>

<view class="row">

<text style="font-size:x-small;color:gray;word-break:break-all">电量:{{electricity}}</text>

<text style="margin-left:20rpx; margin-right:20prx;"></text>

<text style="font-size:x-small;color:gray">状态:{{connected?"已连接":"已断开"}}</text>

</view>


<map id="map" longitude="{{longitude}}" latitude="{{latitude}}" markers="{{markers}}" scale="14" style="width: 100%; height:860rpx;margin-top:40rpx;">

</map>


<button type="primary" class="button" bindtap="openLock">开锁</button>

</view>



showMap(longitude, latitude) {

this.setData({

longitude: longitude,

latitude: latitude,

markers: [{

id: "0",

latitude: latitude,

longitude: longitude,

iconPath: "https://xcx.quan5fen.com/Public/xcx-hitui/image/imgs-jyh/map-ico.png",

width: 40,

height: 40,

}],

});

},


最后一次编辑于  2019-08-07
回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容
问题标签