myMap.wxml
1.4 KB
<view class="map-wrap">
<!-- 地图组件 -->
<map id="{{mapId}}" class="my-map" polyline="{{polyline}}" markers="{{markers}}" longitude="{{currentLo}}" latitude="{{currentLa}}" scale="{{scale}}" enable-satellite="{{enableSatellite}}" bindmarkertap="bindmarkertap" data-num="1" include-points="{{inPoints}}" enable-traffic="{{enableTraffic}}" show-location bindtap="mapClick">
</map>
<!-- 地图控件 -->
<text class="icon icon-locate map-cmd-icon" catchtap="locateClick">
<text class="{{isCanClick ? 'hidden' : 'show-class'}}">
<text class="count-down-left">
<text class="count-down-left-ring"></text>
</text>
<text class="count-down-right">
<text class="count-down-right-ring"></text>
</text>
</text>
</text>
<text class="icon icon-refresh map-cmd-icon" catchtap="refreshClick"></text>
<view class="map-type-list">
<view class="icon icon-satel {{enableSatellite ? 'active' : ''}}" catchtap="layerClick" data-num="1"></view>
<view class="icon icon-redgreen {{enableTraffic ? 'active' : ''}}" catchtap="layerClick" data-num="2"></view>
</view>
<view class="map-size-list">
<view class="icon icon-plus" catchtap="layerClick" data-num="3"></view>
<view class="icon icon-minus" catchtap="layerClick" data-num="4"></view>
</view>
<view class="loading {{isLoading ? 'active' : ''}}" id="loading"><view class="weui-loading"></view></view>
</view>