<view>
  <!-- 地图组件 -->
  <map
    id="map"
    latitude="{{latitude}}"
    longitude="{{longitude}}"
    scale="{{scale}}"
    ground-overlays="{{groundOverlays}}"
    markers="{{markers}}"
    bindtap="handleMapTap"
    bindcallouttap="onCalloutTap"
    bindmarkertap="onMarkerTap"
    style="width: 100%; height: 80vh;">
  </map>

  <!-- 控制图层显示的开关 -->
  <view class="switch-container">
    <switch checked="{{showOverlay}}" bindchange="toggleOverlay" />
    <text>显示耕地图层</text>
  </view>
</view>