MapContext.setLocMarkerIcon(Object object)怎么用?
发布于 5 年前 作者 mingguo 13856 次浏览 来自 问答

this.mapCtx = wx.createMapContext('myMap')

    this.mapCtx.moveToLocation();

    this.mapCtx.setLocMarkerIcon({

      iconPath:"https://res.wx.qq.com/wxdoc/dist/assets/img/map.dd86f5e2.jpg",

   complete:function(res){

        console.log('setLocMarkerIcon')

        console.log(res)

      }

    })

用了,图片没有改成功

1 回复

请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

回到顶部