<map id="myMap" style="width: 100vw; height: 100vh;" latitude="{{latitude}}" longitude="{{longitude}}"
markers="{{markers}}" scale="{{map_scale}}" bindtap="onMapTap" bindmarkertap="onPointTap" show-location="true">
map>
search_bar和search_list不会触发bindmarkertap。
<view class="search_bar">
<image src="/image/search.png" style="width:50rpx;height:50rpx;padding-right:10px;" />
<input class="search_view" bindblur="closesuggest" bindconfirm="getsuggest" type="text" confirm-type="search"
value="{{backfill}}" placeholder="输入地址定位(如: 人民广场)">input>
view>
<view class="search_list">
<view wx:for="{{suggestion}}" wx:key="index" class="{{suggestion_show}}">
<view hover-class="search_list_item_pressed">
<view class="search_list_item_title" bindtap="backfill" id="{{index}}">{{item.title}}view>
<view class="search_list_item_addr">{{item.addr}}view>
view>
view>
view>
问题在这里,下面是两个button,当地图中的marker和两个按键重叠时候,点击按键同时也会触发bindmarkertap,但是bindtap不会(上述情况只存在IOS系统,安卓没有这个问题)。
这个问题有遇到吗?同样的情况,在后面的picker下面也是一样。
<view class="help-area">
<button class="help-button" bindtap="showHelp" style="padding:0;width:100rpx;" hover-class="help-button-pressed">
<image src="/image/help.png" style="width:80rpx;height:80rpx;"/>
button>
view>
<button class="reset-button" style="padding:0;width:100rpx;" bindtap="moveToCurrentLocation" hover-class="reset-button-pressed">
<image src="/image/gps.png" style="width:80rpx;height:80rpx;" />
<view class="tl-content">
<picker class="begin-datepicker" mode="date" value="{{begin_date}}" start="{{start_date}}" end="{{end_date}}"
bindchange="bindChangeBeginDate">
<p class="date-text">开始 : {{begin_date}}p>
picker>
<picker class="last-datepicker" mode="date" value="{{last_date}}" start="{{start_date}}" end="{{end_date}}"
bindchange="bindChangeEndDate">
<p class="date-text">结束 : {{last_date}}p>
picker>
view>
button>
目前看了看,map上面的bindtap不会触发,所以怀疑是map组件的问题。如何规避???