bindmarkertap失效,在手机上面无响应,开发工具有响应,几个手机都试了,没响应?
发布于 4 年前 作者 wuyang 8529 次浏览 来自 问答

markertap在手机上面无响应,开发工具有响应,几个手机都试了,没响应

https://developers.weixin.qq.com/s/IWn0izm97hna

上面是代码片段分享链接

<map

        id="myMap"

        style="width: 100%; height: 100%;position: fixed;top: 0;left: 0;"

        latitude="27.2213"

        longitude="111.43888"

        scale="6bindcontroltap="controltapmarkers="{{markers}}bindmarkertap="markertapbindregionchange="regionchangeshow-location

></map>


const app = getApp()

Page({

  data: {

    markers: [{"id":2,"clusterId":2,"title":"测试地","latitude":"27.916539113640834","longitude":"112.54059791564941","width":"30px","height":"40px","rotate":0,"alpha":1,"zIndex":100,"callout":null}]

  },

  onLoad() {   

    console.log('https://mp.weixin.qq.com/debug/wxadoc/dev/devtools/devtools.html')

  },

  controltap:function(){},

    regionchange:function(){},

    markertap:function(e){

      console.log('markertap', e); 

    }

})



1 回复

是真机调试和预览都没有响应

回到顶部