Mini Program Map component markertap and callouttap fail

Business background

after the user opens the Mini Program native map component,
put several tags around the user"s current location marker
when the user clicks on marker, the corresponding event will be triggered

question

on developer tools and mobile phones

  • events cannot be triggered after clicking on these marker
  • also cannot display the icon currently located, that is, setting the show-location property will not take effect

Code

 <map scale="18" longitude="108.159063"
         latitude=" 29.298421" markers="{{markers}}" show-location
         @markertap="checkMarker()">
 </map>

markers = [{
latitude:"29.296064"
longitude:"108.158813"
title:""
}]

effect

clipboard.png

Mar.07,2021
Menu