소스 검색

fix:修复清理轨迹

“HeShaoZe” 5 달 전
부모
커밋
cb718054e2
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      plugins/map_amap_ios/ios/Classes/ViewAndDataExchange/MapAmapViewAndDataExchange.swift

+ 1 - 0
plugins/map_amap_ios/ios/Classes/ViewAndDataExchange/MapAmapViewAndDataExchange.swift

@@ -73,6 +73,7 @@ class MapAmapViewAndDataExchange: NSObject, ObservableObject, MapCapability {
     func handleMapClearMarkers(result: @escaping FlutterResult) {
         DispatchQueue.main.async{
             self.markers = []
+            self.polylines = []
         }
         result(nil)
     }