开发者社区> 问答> 正文

小程序地图controls开发工具可以显示,真机不显示

controls: [
      {
        id: 1,
        iconPath: '/style/img/customer_service.png',
        position: {
            top:100,
            left: 50,
            with:100,
            height:100,
            
        },
        clickable: false
      },
      {
        id: 2,
        iconPath: '/style/img/my_adress.png',
        position: {
            top:200,
            left: 50,
            with:100,
            height:100,
        },
        clickable: false
      },
    ],

<map id="map" style="width: 100%; height: 100%;" longitude="{{longitude}}" latitude="{{latitude}}" 
      onMarkerTap="markertap" 
      show-location  
      controls="{{controls}}" 
      onControlTap="controltap">

    </map>

展开
收起
游客5ntn54kmxiiq2 2019-09-02 18:20:29 1375 0
0 条回答
写回答
取消 提交回答
来源圈子
更多
收录在圈子:
问答排行榜
最热
最新

相关电子书

更多
《云市场-小程序》 立即下载
数字乡村建设方案 立即下载
mPaaS 小程序新品发布 立即下载