MAP控件的bindcallouttap和bindmarkertap无效
发布于 4 年前 作者 oye 1998 次浏览 来自 问答
  • 当前 Bug 的表现

IOS

<view class=‘maps’>

<map longitude="{{mapdata.longitude}}" latitude="{{mapdata.latitude}}" show-location="{{mapdata.showlocation}}" show-compass="{{mapdata.showcompass}}" markers="{{mapdata.markers}}" class=‘map’ style=‘width:{{mapW}}px;height:{{mapheight}}px’ bindcallouttap=“callouttap” bindmarkertap=“markertap” include-points="{{includpoints}}"></map>

</view>

  • 预期表现

callouttap和callouttap函数可以正常调用

  • BUG

气泡正常弹出, 但是点击后完全没有反应, 不调用对应函数

callouttap:function(e){

    wx.showToast({

    title: ‘callouttap’,

    })

},

markertap:function(e){

    wx.showToast({

    title: ‘markertap’,

    })

}

5 回复

每个标记点需要个id吧

你好,请提供一下出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

我也遇到这个问题

请问你弄好了吗?我也是这个问题

回到顶部