index.wxml代码:
<map id="myMap" layer-style="1" subkey="{
{subkey}}" bindregionchange="mapScale" bindlabeltap="navigatePage" bindmarkertap="navigatePage" bindcallouttap="navigatePage" bindtap="routeTap"
style="width: 100%; height:{
{mapHeight}}px" latitude="{
{latitude}}" longitude="{
{longitude}}" scale='{
{scale}}' markers="{
{markers}}" show-location >
<cover-view slot="callout">
<block wx:for="{
{customMarkers}}" wx:key="index">
<cover-view class="callout" marker-id="{
{item.id}}">
<cover-view class="myt