<custom chineseName="地图" engName="map"></custom>
<view class="wrap">
    <view class="card-area">
        <map class="map"
            longitude="{{longitude}}"
            latitude="{{latitude}}"
            scale="{{scale}}"
            markers="{{markers}}"
            polyline="{{polyline}}"
            polygons="{{drawPolygon ? polygons : []}}"
            circles="{{circles}}"
            controls="{{controls}}"
            show-location="{{showLocation}}"
            include-points="{{includePoints}}"
            enable-3D="{{enable3d}}"
            show-compass="{{showCompass}}"
            enable-overlooking="{{enableOverlooking}}"
            enable-zoom="{{enableZoom}}"
            enable-scroll="{{enableScroll}}"
            enable-rotate="{{enableRotate}}"
            bindmarkertap="onMarkertap"
            bindcallouttap="onCallouttap"
            bindcontroltap="onControltap"
            bindregionchange="onRegionchange"
            bindtap="onTap" 
            bindupdated="onUpdated"
            bindpoitap="onPoitap">
        </map>
        <!-- 功能不稳定，暂时隐藏 -->
        <!-- <view class="item-scroll block border-bottom" s-if="{{!isWeb}}">
            <text class="switch-text">显示带有方向的当前定位点</text>
            <switch bindchange="showLocation" checked></switch>
        </view>
        <view class="item-scroll block border-bottom" s-if="{{!isWeb}}">
            <text class="switch-text">显示3D楼块</text>
            <switch bindchange="toggle3d"></switch>
        </view>
        <view class="item-scroll block border-bottom" s-if="{{!isWeb}}">
            <text class="switch-text">显示指南针</text>
            <switch bindchange="toggleShowCompass"></switch>
        </view>
        <view class="item-scroll block border-bottom" s-if="{{!isWeb}}">
            <text class="switch-text">开启俯视</text>
            <switch bindchange="toggleOverlooking"></switch>
        </view> -->
        <view class="item-scroll block border-bottom">
            <text class="switch-text">支持缩放</text>
            <switch bindchange="toggleZoom" checked></switch>
        </view>
        <view class="item-scroll block border-bottom">
            <text class="switch-text">支持拖动</text>
            <switch bindchange="toggleScroll" checked></switch>
        </view>
        <view class="item-scroll block border-bottom" s-if="{{canIUseEnableRotate}}">
            <text class="switch-text">支持旋转</text>
            <switch bindchange="toggleRotate" checked></switch>
        </view>
    </view>
    <!-- 功能全集的备注 -->
    <!-- <view class="tip-week">除"显示当前定位点"外，其他功能工具暂不支持</view> -->
    <view class="tip-week">工具暂不支持手势控制</view>
</view>
