Просмотр исходного кода

fix:iOS把原来原生地图替换成高德地图。

“HeShaoZe” 6 месяцев назад
Родитель
Сommit
1ca5f4617e
97 измененных файлов с 5526 добавлено и 79 удалено
  1. 1 1
      ios/Podfile
  2. 14 6
      ios/Podfile.lock
  3. 51 69
      ios/Runner.xcodeproj/project.pbxproj
  4. 27 0
      ios/build/XCBuildData/5e8c05ab5d69971cb43581019deff9ce.xcbuilddata/build-request.json
  5. BIN
      ios/build/XCBuildData/5e8c05ab5d69971cb43581019deff9ce.xcbuilddata/description.msgpack
  6. 1 0
      ios/build/XCBuildData/5e8c05ab5d69971cb43581019deff9ce.xcbuilddata/manifest.json
  7. 1 0
      ios/build/XCBuildData/5e8c05ab5d69971cb43581019deff9ce.xcbuilddata/target-graph.txt
  8. BIN
      ios/build/XCBuildData/5e8c05ab5d69971cb43581019deff9ce.xcbuilddata/task-store.msgpack
  9. 33 0
      plugins/map_amap_ios/.gitignore
  10. 30 0
      plugins/map_amap_ios/.metadata
  11. 3 0
      plugins/map_amap_ios/CHANGELOG.md
  12. 1 0
      plugins/map_amap_ios/LICENSE
  13. 15 0
      plugins/map_amap_ios/README.md
  14. 4 0
      plugins/map_amap_ios/analysis_options.yaml
  15. 45 0
      plugins/map_amap_ios/example/.gitignore
  16. 16 0
      plugins/map_amap_ios/example/README.md
  17. 28 0
      plugins/map_amap_ios/example/analysis_options.yaml
  18. 25 0
      plugins/map_amap_ios/example/integration_test/plugin_integration_test.dart
  19. 34 0
      plugins/map_amap_ios/example/ios/.gitignore
  20. 26 0
      plugins/map_amap_ios/example/ios/Flutter/AppFrameworkInfo.plist
  21. 2 0
      plugins/map_amap_ios/example/ios/Flutter/Debug.xcconfig
  22. 2 0
      plugins/map_amap_ios/example/ios/Flutter/Release.xcconfig
  23. 43 0
      plugins/map_amap_ios/example/ios/Podfile
  24. 619 0
      plugins/map_amap_ios/example/ios/Runner.xcodeproj/project.pbxproj
  25. 7 0
      plugins/map_amap_ios/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
  26. 8 0
      plugins/map_amap_ios/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
  27. 8 0
      plugins/map_amap_ios/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
  28. 101 0
      plugins/map_amap_ios/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
  29. 7 0
      plugins/map_amap_ios/example/ios/Runner.xcworkspace/contents.xcworkspacedata
  30. 8 0
      plugins/map_amap_ios/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
  31. 8 0
      plugins/map_amap_ios/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
  32. 13 0
      plugins/map_amap_ios/example/ios/Runner/AppDelegate.swift
  33. 122 0
      plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
  34. BIN
      plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
  35. BIN
      plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
  36. BIN
      plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
  37. BIN
      plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
  38. BIN
      plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
  39. BIN
      plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
  40. BIN
      plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
  41. BIN
      plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
  42. BIN
      plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
  43. BIN
      plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
  44. BIN
      plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
  45. BIN
      plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
  46. BIN
      plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
  47. BIN
      plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
  48. BIN
      plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
  49. 23 0
      plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
  50. BIN
      plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
  51. BIN
      plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
  52. BIN
      plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
  53. 5 0
      plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
  54. 37 0
      plugins/map_amap_ios/example/ios/Runner/Base.lproj/LaunchScreen.storyboard
  55. 26 0
      plugins/map_amap_ios/example/ios/Runner/Base.lproj/Main.storyboard
  56. 49 0
      plugins/map_amap_ios/example/ios/Runner/Info.plist
  57. 1 0
      plugins/map_amap_ios/example/ios/Runner/Runner-Bridging-Header.h
  58. 27 0
      plugins/map_amap_ios/example/ios/RunnerTests/RunnerTests.swift
  59. 63 0
      plugins/map_amap_ios/example/lib/main.dart
  60. 283 0
      plugins/map_amap_ios/example/pubspec.lock
  61. 85 0
      plugins/map_amap_ios/example/pubspec.yaml
  62. 27 0
      plugins/map_amap_ios/example/test/widget_test.dart
  63. 38 0
      plugins/map_amap_ios/ios/.gitignore
  64. 0 0
      plugins/map_amap_ios/ios/Assets/.gitkeep
  65. 94 0
      plugins/map_amap_ios/ios/Classes/ExtensionTool/CLLocationCoordinate2D+HandleTool.swift
  66. 62 0
      plugins/map_amap_ios/ios/Classes/ExtensionTool/Color+Handle.swift
  67. 176 0
      plugins/map_amap_ios/ios/Classes/ExtensionTool/MKMapView+HandleTool.swift
  68. 32 0
      plugins/map_amap_ios/ios/Classes/ExtensionTool/String+HandleTool.swift
  69. 382 0
      plugins/map_amap_ios/ios/Classes/IndividualToolView/MapAmapMarkPictureLoadMananger.swift
  70. 259 0
      plugins/map_amap_ios/ios/Classes/IndividualToolView/MapAmapMarkerBatteryView.swift
  71. 119 0
      plugins/map_amap_ios/ios/Classes/IndividualToolView/MapAmapMarkerNameContentView.swift
  72. 222 0
      plugins/map_amap_ios/ios/Classes/IndividualToolView/MapAmapMarkerNormalView.swift
  73. 79 0
      plugins/map_amap_ios/ios/Classes/IndividualToolView/MapAmapMarkerPictureView.swift
  74. 122 0
      plugins/map_amap_ios/ios/Classes/IndividualToolView/MapAmapMarkerWriterCenterView.swift
  75. 242 0
      plugins/map_amap_ios/ios/Classes/IndividualToolView/MapAmapPopUpWindowView.swift
  76. 15 0
      plugins/map_amap_ios/ios/Classes/MapAmapConfigManager.swift
  77. 133 0
      plugins/map_amap_ios/ios/Classes/MapAmapContentView/MapAmapArrowPolylineRenderer.swift
  78. 80 0
      plugins/map_amap_ios/ios/Classes/MapAmapContentView/MapAmapShowContentMapView.swift
  79. 237 0
      plugins/map_amap_ios/ios/Classes/MapAmapContentView/MapAmapThemeControl.swift
  80. 39 0
      plugins/map_amap_ios/ios/Classes/MapAmapDetailOpetation.swift
  81. 335 0
      plugins/map_amap_ios/ios/Classes/MapAmapGeneralProcessing.swift
  82. 163 0
      plugins/map_amap_ios/ios/Classes/MapAmapGetLocationHandle.swift
  83. 108 0
      plugins/map_amap_ios/ios/Classes/MapAmapIosPlugin.swift
  84. 91 0
      plugins/map_amap_ios/ios/Classes/MapDataCommunicationProtocol.swift
  85. 36 0
      plugins/map_amap_ios/ios/Classes/ModelData/MapAmapDataChannelKeyword.swift
  86. 111 0
      plugins/map_amap_ios/ios/Classes/ModelData/MapAmapTheStyleOfAnnection.swift
  87. 22 0
      plugins/map_amap_ios/ios/Classes/ModelData/MapAmapViewOnlyKeyword.swift
  88. 174 0
      plugins/map_amap_ios/ios/Classes/ViewAndDataExchange/MapAmapViewAndDataExchange.swift
  89. 14 0
      plugins/map_amap_ios/ios/Resources/PrivacyInfo.xcprivacy
  90. 30 0
      plugins/map_amap_ios/ios/map_amap_ios.podspec
  91. 8 0
      plugins/map_amap_ios/lib/map_amap_ios.dart
  92. 17 0
      plugins/map_amap_ios/lib/map_amap_ios_method_channel.dart
  93. 29 0
      plugins/map_amap_ios/lib/map_amap_ios_platform_interface.dart
  94. 69 0
      plugins/map_amap_ios/pubspec.yaml
  95. 27 0
      plugins/map_amap_ios/test/map_amap_ios_method_channel_test.dart
  96. 29 0
      plugins/map_amap_ios/test/map_amap_ios_test.dart
  97. 3 3
      pubspec.lock

+ 1 - 1
ios/Podfile

@@ -28,7 +28,7 @@ require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelpe
 flutter_ios_podfile_setup
 
 target 'Runner' do
-  use_frameworks!
+  use_frameworks!  :linkage => :static  # 强制使用静态链接
 
   flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
   target 'RunnerTests' do

+ 14 - 6
ios/Podfile.lock

@@ -1,4 +1,7 @@
 PODS:
+  - AMap3DMap (10.1.200):
+    - AMapFoundation (>= 1.8.0)
+  - AMapFoundation (1.8.2)
   - app_tracking_transparency (0.0.1):
     - Flutter
   - apple_pay (0.0.1):
@@ -32,7 +35,8 @@ PODS:
     - FlutterMacOS
   - in_app_review (2.0.0):
     - Flutter
-  - map_mapkit_ios (0.0.1):
+  - map_amap_ios (0.0.1):
+    - AMap3DMap (~> 10.1.200)
     - Flutter
   - MMKV (2.2.2):
     - MMKVCore (~> 2.2.2)
@@ -83,7 +87,7 @@ DEPENDENCIES:
   - gravity_engine (from `.symlinks/plugins/gravity_engine/ios`)
   - in_app_purchase_storekit (from `.symlinks/plugins/in_app_purchase_storekit/darwin`)
   - in_app_review (from `.symlinks/plugins/in_app_review/ios`)
-  - map_mapkit_ios (from `.symlinks/plugins/map_mapkit_ios/ios`)
+  - map_amap_ios (from `.symlinks/plugins/map_amap_ios/ios`)
   - mmkv_ios (from `.symlinks/plugins/mmkv_ios/ios`)
   - mobile_use_statistics (from `.symlinks/plugins/mobile_use_statistics/ios`)
   - network_info_plus (from `.symlinks/plugins/network_info_plus/ios`)
@@ -97,6 +101,8 @@ DEPENDENCIES:
 
 SPEC REPOS:
   trunk:
+    - AMap3DMap
+    - AMapFoundation
     - Bugly
     - MMKV
     - MMKVCore
@@ -129,8 +135,8 @@ EXTERNAL SOURCES:
     :path: ".symlinks/plugins/in_app_purchase_storekit/darwin"
   in_app_review:
     :path: ".symlinks/plugins/in_app_review/ios"
-  map_mapkit_ios:
-    :path: ".symlinks/plugins/map_mapkit_ios/ios"
+  map_amap_ios:
+    :path: ".symlinks/plugins/map_amap_ios/ios"
   mmkv_ios:
     :path: ".symlinks/plugins/mmkv_ios/ios"
   mobile_use_statistics:
@@ -153,6 +159,8 @@ EXTERNAL SOURCES:
     :path: ".symlinks/plugins/wechat_kit/ios"
 
 SPEC CHECKSUMS:
+  AMap3DMap: 06a11a83072857d6076c14060b2e1a676182e84d
+  AMapFoundation: 9885c48fc3a78fdfb84a0299a2293e56ea3c9fec
   app_tracking_transparency: 3d84f147f67ca82d3c15355c36b1fa6b66ca7c92
   apple_pay: ac72506ba3433c28436ddbedcbea2454c788ddb3
   battery_plus: b42253f6d2dde71712f8c36fef456d99121c5977
@@ -167,7 +175,7 @@ SPEC CHECKSUMS:
   gravity_engine: 9075091c4adcd0169506f97688ebac7f5454c4ac
   in_app_purchase_storekit: d1a48cb0f8b29dbf5f85f782f5dd79b21b90a5e6
   in_app_review: 5596fe56fab799e8edb3561c03d053363ab13457
-  map_mapkit_ios: ca064ca09018af4608239db3d98b46cb2233e8b9
+  map_amap_ios: 83f8a3ca9376a988e3dd7b17bb85ce35b83adb78
   MMKV: b4802ebd5a7c68fc0c4a5ccb4926fbdfb62d68e0
   mmkv_ios: b1c2c12115c0ff971534015f61aea8de18d8d126
   MMKVCore: a255341a3746955f50da2ad9121b18cb2b346e61
@@ -182,6 +190,6 @@ SPEC CHECKSUMS:
   video_player_avfoundation: 2cef49524dd1f16c5300b9cd6efd9611ce03639b
   wechat_kit: b50b40a52ad88cb9e378a32e300a2d8bdc0e4726
 
-PODFILE CHECKSUM: 0d075c14b5530356f546e6487c30ca69bf63f587
+PODFILE CHECKSUM: e42887bf55eb1b10a4f85715faa4a6e144da59fc
 
 COCOAPODS: 1.16.2

+ 51 - 69
ios/Runner.xcodeproj/project.pbxproj

@@ -10,12 +10,12 @@
 		1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
 		331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; };
 		3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
+		3E7E7B5052D89C3F290FE66D /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 07CB2DBB578048947FF42BC1 /* Pods_Runner.framework */; };
 		74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
-		92B40AF4EDF44D8A7599A77A /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 300715D2202B4EFB7419B4DD /* Pods_Runner.framework */; };
 		97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
 		97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
 		97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
-		B6C93FBF46DAEB66D210430D /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 42FDD72B3D37E1E76FE0BF67 /* Pods_RunnerTests.framework */; };
+		F481CE7CCA472122FAC588B8 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5F263911AB74DE48E9617B63 /* Pods_RunnerTests.framework */; };
 /* End PBXBuildFile section */
 
 /* Begin PBXContainerItemProxy section */
@@ -42,20 +42,21 @@
 /* End PBXCopyFilesBuildPhase section */
 
 /* Begin PBXFileReference section */
+		07CB2DBB578048947FF42BC1 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
 		1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
 		1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
-		300715D2202B4EFB7419B4DD /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
 		331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = "<group>"; };
 		331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
-		3B0F46864C117910E6A10161 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = "<group>"; };
 		3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
-		42FDD72B3D37E1E76FE0BF67 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+		3F0AAAAFA8F4C131FF879AC6 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
 		58C6B4992DDB237C00B7D33B /* Runner.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Runner.entitlements; sourceTree = "<group>"; };
-		6242D04867DBAE678644097C /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
-		6B11C5BE0FA90678D391E64F /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = "<group>"; };
+		5A2B5F04EC37402082DAF0AB /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = "<group>"; };
+		5F263911AB74DE48E9617B63 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+		72E32A87F1430B3E44BC3EF8 /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = "<group>"; };
 		74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
 		74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
 		7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
+		93616C4BF8CBC696180B1F6E /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
 		9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
 		9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
 		97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -63,9 +64,8 @@
 		97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
 		97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
 		97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
-		9E0B512C107FA23A0CD848AA /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
-		BC32EF20481FBA217A34C47D /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
-		C70AD320E839F7550153E92D /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = "<group>"; };
+		F2569BB2A50AE5F7A3B7B428 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = "<group>"; };
+		F31EBAF0B895C93D3ED39514 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
 /* End PBXFileReference section */
 
 /* Begin PBXFrameworksBuildPhase section */
@@ -73,7 +73,7 @@
 			isa = PBXFrameworksBuildPhase;
 			buildActionMask = 2147483647;
 			files = (
-				B6C93FBF46DAEB66D210430D /* Pods_RunnerTests.framework in Frameworks */,
+				F481CE7CCA472122FAC588B8 /* Pods_RunnerTests.framework in Frameworks */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
@@ -81,7 +81,7 @@
 			isa = PBXFrameworksBuildPhase;
 			buildActionMask = 2147483647;
 			files = (
-				92B40AF4EDF44D8A7599A77A /* Pods_Runner.framework in Frameworks */,
+				3E7E7B5052D89C3F290FE66D /* Pods_Runner.framework in Frameworks */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
@@ -91,12 +91,12 @@
 		16DCD684832953174E92ED56 /* Pods */ = {
 			isa = PBXGroup;
 			children = (
-				6242D04867DBAE678644097C /* Pods-Runner.debug.xcconfig */,
-				BC32EF20481FBA217A34C47D /* Pods-Runner.release.xcconfig */,
-				9E0B512C107FA23A0CD848AA /* Pods-Runner.profile.xcconfig */,
-				6B11C5BE0FA90678D391E64F /* Pods-RunnerTests.debug.xcconfig */,
-				3B0F46864C117910E6A10161 /* Pods-RunnerTests.release.xcconfig */,
-				C70AD320E839F7550153E92D /* Pods-RunnerTests.profile.xcconfig */,
+				93616C4BF8CBC696180B1F6E /* Pods-Runner.debug.xcconfig */,
+				F31EBAF0B895C93D3ED39514 /* Pods-Runner.release.xcconfig */,
+				3F0AAAAFA8F4C131FF879AC6 /* Pods-Runner.profile.xcconfig */,
+				72E32A87F1430B3E44BC3EF8 /* Pods-RunnerTests.debug.xcconfig */,
+				F2569BB2A50AE5F7A3B7B428 /* Pods-RunnerTests.release.xcconfig */,
+				5A2B5F04EC37402082DAF0AB /* Pods-RunnerTests.profile.xcconfig */,
 			);
 			path = Pods;
 			sourceTree = "<group>";
@@ -109,6 +109,15 @@
 			path = RunnerTests;
 			sourceTree = "<group>";
 		};
+		8EEDC2B2268243B326517ED6 /* Frameworks */ = {
+			isa = PBXGroup;
+			children = (
+				07CB2DBB578048947FF42BC1 /* Pods_Runner.framework */,
+				5F263911AB74DE48E9617B63 /* Pods_RunnerTests.framework */,
+			);
+			name = Frameworks;
+			sourceTree = "<group>";
+		};
 		9740EEB11CF90186004384FC /* Flutter */ = {
 			isa = PBXGroup;
 			children = (
@@ -128,7 +137,7 @@
 				97C146EF1CF9000F007C117D /* Products */,
 				331C8082294A63A400263BE5 /* RunnerTests */,
 				16DCD684832953174E92ED56 /* Pods */,
-				EB0A25748438F5A5D11C34DD /* Frameworks */,
+				8EEDC2B2268243B326517ED6 /* Frameworks */,
 			);
 			sourceTree = "<group>";
 		};
@@ -157,15 +166,6 @@
 			path = Runner;
 			sourceTree = "<group>";
 		};
-		EB0A25748438F5A5D11C34DD /* Frameworks */ = {
-			isa = PBXGroup;
-			children = (
-				300715D2202B4EFB7419B4DD /* Pods_Runner.framework */,
-				42FDD72B3D37E1E76FE0BF67 /* Pods_RunnerTests.framework */,
-			);
-			name = Frameworks;
-			sourceTree = "<group>";
-		};
 /* End PBXGroup section */
 
 /* Begin PBXNativeTarget section */
@@ -173,7 +173,7 @@
 			isa = PBXNativeTarget;
 			buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
 			buildPhases = (
-				A51FDB33AFA7209CBBD1D566 /* [CP] Check Pods Manifest.lock */,
+				EC94A5B3E096D280FE731F4A /* [CP] Check Pods Manifest.lock */,
 				331C807D294A63A400263BE5 /* Sources */,
 				331C807F294A63A400263BE5 /* Resources */,
 				7ACCDC8B09D672B8F500CBE3 /* Frameworks */,
@@ -192,15 +192,14 @@
 			isa = PBXNativeTarget;
 			buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
 			buildPhases = (
-				89FF2B1B4E742965844CDF60 /* [CP] Check Pods Manifest.lock */,
+				962622172C5C52E848441F32 /* [CP] Check Pods Manifest.lock */,
 				9740EEB61CF901F6004384FC /* Run Script */,
 				97C146EA1CF9000F007C117D /* Sources */,
 				97C146EB1CF9000F007C117D /* Frameworks */,
 				97C146EC1CF9000F007C117D /* Resources */,
 				9705A1C41CF9048500538489 /* Embed Frameworks */,
 				3B06AD1E1E4923F5004D2608 /* Thin Binary */,
-				1E808EF7667A66CFC4B9F80D /* [CP] Embed Pods Frameworks */,
-				AD41E8F8F575131C6B483AC9 /* [CP] Copy Pods Resources */,
+				3E12B8E13B54137B6B4F7603 /* [CP] Copy Pods Resources */,
 			);
 			buildRules = (
 			);
@@ -272,40 +271,40 @@
 /* End PBXResourcesBuildPhase section */
 
 /* Begin PBXShellScriptBuildPhase section */
-		1E808EF7667A66CFC4B9F80D /* [CP] Embed Pods Frameworks */ = {
+		3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
 			isa = PBXShellScriptBuildPhase;
+			alwaysOutOfDate = 1;
 			buildActionMask = 2147483647;
 			files = (
 			);
-			inputFileListPaths = (
-				"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
+			inputPaths = (
+				"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
 			);
-			name = "[CP] Embed Pods Frameworks";
-			outputFileListPaths = (
-				"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
+			name = "Thin Binary";
+			outputPaths = (
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 			shellPath = /bin/sh;
-			shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
-			showEnvVarsInLog = 0;
+			shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
 		};
-		3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
+		3E12B8E13B54137B6B4F7603 /* [CP] Copy Pods Resources */ = {
 			isa = PBXShellScriptBuildPhase;
-			alwaysOutOfDate = 1;
 			buildActionMask = 2147483647;
 			files = (
 			);
-			inputPaths = (
-				"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
+			inputFileListPaths = (
+				"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
 			);
-			name = "Thin Binary";
-			outputPaths = (
+			name = "[CP] Copy Pods Resources";
+			outputFileListPaths = (
+				"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 			shellPath = /bin/sh;
-			shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
+			shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
+			showEnvVarsInLog = 0;
 		};
-		89FF2B1B4E742965844CDF60 /* [CP] Check Pods Manifest.lock */ = {
+		962622172C5C52E848441F32 /* [CP] Check Pods Manifest.lock */ = {
 			isa = PBXShellScriptBuildPhase;
 			buildActionMask = 2147483647;
 			files = (
@@ -342,7 +341,7 @@
 			shellPath = /bin/sh;
 			shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
 		};
-		A51FDB33AFA7209CBBD1D566 /* [CP] Check Pods Manifest.lock */ = {
+		EC94A5B3E096D280FE731F4A /* [CP] Check Pods Manifest.lock */ = {
 			isa = PBXShellScriptBuildPhase;
 			buildActionMask = 2147483647;
 			files = (
@@ -364,23 +363,6 @@
 			shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n    # print error to STDERR\n    echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n    exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
 			showEnvVarsInLog = 0;
 		};
-		AD41E8F8F575131C6B483AC9 /* [CP] Copy Pods Resources */ = {
-			isa = PBXShellScriptBuildPhase;
-			buildActionMask = 2147483647;
-			files = (
-			);
-			inputFileListPaths = (
-				"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
-			);
-			name = "[CP] Copy Pods Resources";
-			outputFileListPaths = (
-				"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
-			);
-			runOnlyForDeploymentPostprocessing = 0;
-			shellPath = /bin/sh;
-			shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
-			showEnvVarsInLog = 0;
-		};
 /* End PBXShellScriptBuildPhase section */
 
 /* Begin PBXSourcesBuildPhase section */
@@ -514,7 +496,7 @@
 		};
 		331C8088294A63A400263BE5 /* Debug */ = {
 			isa = XCBuildConfiguration;
-			baseConfigurationReference = 6B11C5BE0FA90678D391E64F /* Pods-RunnerTests.debug.xcconfig */;
+			baseConfigurationReference = 72E32A87F1430B3E44BC3EF8 /* Pods-RunnerTests.debug.xcconfig */;
 			buildSettings = {
 				BUNDLE_LOADER = "$(TEST_HOST)";
 				CODE_SIGN_STYLE = Automatic;
@@ -532,7 +514,7 @@
 		};
 		331C8089294A63A400263BE5 /* Release */ = {
 			isa = XCBuildConfiguration;
-			baseConfigurationReference = 3B0F46864C117910E6A10161 /* Pods-RunnerTests.release.xcconfig */;
+			baseConfigurationReference = F2569BB2A50AE5F7A3B7B428 /* Pods-RunnerTests.release.xcconfig */;
 			buildSettings = {
 				BUNDLE_LOADER = "$(TEST_HOST)";
 				CODE_SIGN_STYLE = Automatic;
@@ -548,7 +530,7 @@
 		};
 		331C808A294A63A400263BE5 /* Profile */ = {
 			isa = XCBuildConfiguration;
-			baseConfigurationReference = C70AD320E839F7550153E92D /* Pods-RunnerTests.profile.xcconfig */;
+			baseConfigurationReference = 5A2B5F04EC37402082DAF0AB /* Pods-RunnerTests.profile.xcconfig */;
 			buildSettings = {
 				BUNDLE_LOADER = "$(TEST_HOST)";
 				CODE_SIGN_STYLE = Automatic;

+ 27 - 0
ios/build/XCBuildData/5e8c05ab5d69971cb43581019deff9ce.xcbuilddata/build-request.json

@@ -0,0 +1,27 @@
+{
+  "buildCommand" : {
+    "command" : "build",
+    "skipDependencies" : false,
+    "style" : "buildOnly"
+  },
+  "configuredTargets" : [
+
+  ],
+  "continueBuildingAfterErrors" : false,
+  "dependencyScope" : "workspace",
+  "enableIndexBuildArena" : false,
+  "hideShellScriptEnvironment" : false,
+  "parameters" : {
+    "action" : "build",
+    "overrides" : {
+
+    }
+  },
+  "qos" : "utility",
+  "schemeCommand" : "launch",
+  "showNonLoggedProgress" : true,
+  "useDryRun" : false,
+  "useImplicitDependencies" : false,
+  "useLegacyBuildLocations" : false,
+  "useParallelTargets" : true
+}

BIN
ios/build/XCBuildData/5e8c05ab5d69971cb43581019deff9ce.xcbuilddata/description.msgpack


+ 1 - 0
ios/build/XCBuildData/5e8c05ab5d69971cb43581019deff9ce.xcbuilddata/manifest.json

@@ -0,0 +1 @@
+{"client":{"name":"basic","version":0,"file-system":"device-agnostic","perform-ownership-analysis":"no"},"targets":{"":["<all>"]},"commands":{"<all>":{"tool":"phony","inputs":["<WorkspaceHeaderMapVFSFilesWritten>"],"outputs":["<all>"]},"P0:::Gate WorkspaceHeaderMapVFSFilesWritten":{"tool":"phony","inputs":[],"outputs":["<WorkspaceHeaderMapVFSFilesWritten>"]}}}

+ 1 - 0
ios/build/XCBuildData/5e8c05ab5d69971cb43581019deff9ce.xcbuilddata/target-graph.txt

@@ -0,0 +1 @@
+Target dependency graph (0 target)

BIN
ios/build/XCBuildData/5e8c05ab5d69971cb43581019deff9ce.xcbuilddata/task-store.msgpack


+ 33 - 0
plugins/map_amap_ios/.gitignore

@@ -0,0 +1,33 @@
+# Miscellaneous
+*.class
+*.log
+*.pyc
+*.swp
+.DS_Store
+.atom/
+.build/
+.buildlog/
+.history
+.svn/
+.swiftpm/
+migrate_working_dir/
+
+# IntelliJ related
+*.iml
+*.ipr
+*.iws
+.idea/
+
+# The .vscode folder contains launch configuration and tasks you configure in
+# VS Code which you may wish to be included in version control, so this line
+# is commented out by default.
+#.vscode/
+
+# Flutter/Dart/Pub related
+# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
+/pubspec.lock
+**/doc/api/
+.dart_tool/
+.flutter-plugins
+.flutter-plugins-dependencies
+build/

+ 30 - 0
plugins/map_amap_ios/.metadata

@@ -0,0 +1,30 @@
+# This file tracks properties of this Flutter project.
+# Used by Flutter tool to assess capabilities and perform upgrades etc.
+#
+# This file should be version controlled and should not be manually edited.
+
+version:
+  revision: "077b4a4ce10a07b82caa6897f0c626f9c0a3ac90"
+  channel: "stable"
+
+project_type: plugin
+
+# Tracks metadata for the flutter migrate command
+migration:
+  platforms:
+    - platform: root
+      create_revision: 077b4a4ce10a07b82caa6897f0c626f9c0a3ac90
+      base_revision: 077b4a4ce10a07b82caa6897f0c626f9c0a3ac90
+    - platform: ios
+      create_revision: 077b4a4ce10a07b82caa6897f0c626f9c0a3ac90
+      base_revision: 077b4a4ce10a07b82caa6897f0c626f9c0a3ac90
+
+  # User provided section
+
+  # List of Local paths (relative to this file) that should be
+  # ignored by the migrate tool.
+  #
+  # Files that are not part of the templates will be ignored by default.
+  unmanaged_files:
+    - 'lib/main.dart'
+    - 'ios/Runner.xcodeproj/project.pbxproj'

+ 3 - 0
plugins/map_amap_ios/CHANGELOG.md

@@ -0,0 +1,3 @@
+## 0.0.1
+
+* TODO: Describe initial release.

+ 1 - 0
plugins/map_amap_ios/LICENSE

@@ -0,0 +1 @@
+TODO: Add your license here.

+ 15 - 0
plugins/map_amap_ios/README.md

@@ -0,0 +1,15 @@
+# map_amap_ios
+
+A new Flutter plugin project.
+
+## Getting Started
+
+This project is a starting point for a Flutter
+[plug-in package](https://flutter.dev/to/develop-plugins),
+a specialized package that includes platform-specific implementation code for
+Android and/or iOS.
+
+For help getting started with Flutter development, view the
+[online documentation](https://docs.flutter.dev), which offers tutorials,
+samples, guidance on mobile development, and a full API reference.
+

+ 4 - 0
plugins/map_amap_ios/analysis_options.yaml

@@ -0,0 +1,4 @@
+include: package:flutter_lints/flutter.yaml
+
+# Additional information about this file can be found at
+# https://dart.dev/guides/language/analysis-options

+ 45 - 0
plugins/map_amap_ios/example/.gitignore

@@ -0,0 +1,45 @@
+# Miscellaneous
+*.class
+*.log
+*.pyc
+*.swp
+.DS_Store
+.atom/
+.build/
+.buildlog/
+.history
+.svn/
+.swiftpm/
+migrate_working_dir/
+
+# IntelliJ related
+*.iml
+*.ipr
+*.iws
+.idea/
+
+# The .vscode folder contains launch configuration and tasks you configure in
+# VS Code which you may wish to be included in version control, so this line
+# is commented out by default.
+#.vscode/
+
+# Flutter/Dart/Pub related
+**/doc/api/
+**/ios/Flutter/.last_build_id
+.dart_tool/
+.flutter-plugins
+.flutter-plugins-dependencies
+.pub-cache/
+.pub/
+/build/
+
+# Symbolication related
+app.*.symbols
+
+# Obfuscation related
+app.*.map.json
+
+# Android Studio will place build artifacts here
+/android/app/debug
+/android/app/profile
+/android/app/release

+ 16 - 0
plugins/map_amap_ios/example/README.md

@@ -0,0 +1,16 @@
+# map_amap_ios_example
+
+Demonstrates how to use the map_amap_ios plugin.
+
+## Getting Started
+
+This project is a starting point for a Flutter application.
+
+A few resources to get you started if this is your first Flutter project:
+
+- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
+- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
+
+For help getting started with Flutter development, view the
+[online documentation](https://docs.flutter.dev/), which offers tutorials,
+samples, guidance on mobile development, and a full API reference.

+ 28 - 0
plugins/map_amap_ios/example/analysis_options.yaml

@@ -0,0 +1,28 @@
+# This file configures the analyzer, which statically analyzes Dart code to
+# check for errors, warnings, and lints.
+#
+# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
+# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
+# invoked from the command line by running `flutter analyze`.
+
+# The following line activates a set of recommended lints for Flutter apps,
+# packages, and plugins designed to encourage good coding practices.
+include: package:flutter_lints/flutter.yaml
+
+linter:
+  # The lint rules applied to this project can be customized in the
+  # section below to disable rules from the `package:flutter_lints/flutter.yaml`
+  # included above or to enable additional rules. A list of all available lints
+  # and their documentation is published at https://dart.dev/lints.
+  #
+  # Instead of disabling a lint rule for the entire project in the
+  # section below, it can also be suppressed for a single line of code
+  # or a specific dart file by using the `// ignore: name_of_lint` and
+  # `// ignore_for_file: name_of_lint` syntax on the line or in the file
+  # producing the lint.
+  rules:
+    # avoid_print: false  # Uncomment to disable the `avoid_print` rule
+    # prefer_single_quotes: true  # Uncomment to enable the `prefer_single_quotes` rule
+
+# Additional information about this file can be found at
+# https://dart.dev/guides/language/analysis-options

+ 25 - 0
plugins/map_amap_ios/example/integration_test/plugin_integration_test.dart

@@ -0,0 +1,25 @@
+// This is a basic Flutter integration test.
+//
+// Since integration tests run in a full Flutter application, they can interact
+// with the host side of a plugin implementation, unlike Dart unit tests.
+//
+// For more information about Flutter integration tests, please see
+// https://flutter.dev/to/integration-testing
+
+
+import 'package:flutter_test/flutter_test.dart';
+import 'package:integration_test/integration_test.dart';
+
+import 'package:map_amap_ios/map_amap_ios.dart';
+
+void main() {
+  IntegrationTestWidgetsFlutterBinding.ensureInitialized();
+
+  testWidgets('getPlatformVersion test', (WidgetTester tester) async {
+    final MapAmapIos plugin = MapAmapIos();
+    final String? version = await plugin.getPlatformVersion();
+    // The version string depends on the host platform running the test, so
+    // just assert that some non-empty string is returned.
+    expect(version?.isNotEmpty, true);
+  });
+}

+ 34 - 0
plugins/map_amap_ios/example/ios/.gitignore

@@ -0,0 +1,34 @@
+**/dgph
+*.mode1v3
+*.mode2v3
+*.moved-aside
+*.pbxuser
+*.perspectivev3
+**/*sync/
+.sconsign.dblite
+.tags*
+**/.vagrant/
+**/DerivedData/
+Icon?
+**/Pods/
+**/.symlinks/
+profile
+xcuserdata
+**/.generated/
+Flutter/App.framework
+Flutter/Flutter.framework
+Flutter/Flutter.podspec
+Flutter/Generated.xcconfig
+Flutter/ephemeral/
+Flutter/app.flx
+Flutter/app.zip
+Flutter/flutter_assets/
+Flutter/flutter_export_environment.sh
+ServiceDefinitions.json
+Runner/GeneratedPluginRegistrant.*
+
+# Exceptions to above rules.
+!default.mode1v3
+!default.mode2v3
+!default.pbxuser
+!default.perspectivev3

+ 26 - 0
plugins/map_amap_ios/example/ios/Flutter/AppFrameworkInfo.plist

@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+  <key>CFBundleDevelopmentRegion</key>
+  <string>en</string>
+  <key>CFBundleExecutable</key>
+  <string>App</string>
+  <key>CFBundleIdentifier</key>
+  <string>io.flutter.flutter.app</string>
+  <key>CFBundleInfoDictionaryVersion</key>
+  <string>6.0</string>
+  <key>CFBundleName</key>
+  <string>App</string>
+  <key>CFBundlePackageType</key>
+  <string>FMWK</string>
+  <key>CFBundleShortVersionString</key>
+  <string>1.0</string>
+  <key>CFBundleSignature</key>
+  <string>????</string>
+  <key>CFBundleVersion</key>
+  <string>1.0</string>
+  <key>MinimumOSVersion</key>
+  <string>12.0</string>
+</dict>
+</plist>

+ 2 - 0
plugins/map_amap_ios/example/ios/Flutter/Debug.xcconfig

@@ -0,0 +1,2 @@
+#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
+#include "Generated.xcconfig"

+ 2 - 0
plugins/map_amap_ios/example/ios/Flutter/Release.xcconfig

@@ -0,0 +1,2 @@
+#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
+#include "Generated.xcconfig"

+ 43 - 0
plugins/map_amap_ios/example/ios/Podfile

@@ -0,0 +1,43 @@
+# Uncomment this line to define a global platform for your project
+# platform :ios, '12.0'
+
+# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
+ENV['COCOAPODS_DISABLE_STATS'] = 'true'
+
+project 'Runner', {
+  'Debug' => :debug,
+  'Profile' => :release,
+  'Release' => :release,
+}
+
+def flutter_root
+  generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
+  unless File.exist?(generated_xcode_build_settings_path)
+    raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
+  end
+
+  File.foreach(generated_xcode_build_settings_path) do |line|
+    matches = line.match(/FLUTTER_ROOT\=(.*)/)
+    return matches[1].strip if matches
+  end
+  raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
+end
+
+require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
+
+flutter_ios_podfile_setup
+
+target 'Runner' do
+  use_frameworks!
+
+  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
+  target 'RunnerTests' do
+    inherit! :search_paths
+  end
+end
+
+post_install do |installer|
+  installer.pods_project.targets.each do |target|
+    flutter_additional_ios_build_settings(target)
+  end
+end

+ 619 - 0
plugins/map_amap_ios/example/ios/Runner.xcodeproj/project.pbxproj

@@ -0,0 +1,619 @@
+// !$*UTF8*$!
+{
+	archiveVersion = 1;
+	classes = {
+	};
+	objectVersion = 54;
+	objects = {
+
+/* Begin PBXBuildFile section */
+		1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
+		331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; };
+		3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
+		74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
+		97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
+		97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
+		97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXContainerItemProxy section */
+		331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = {
+			isa = PBXContainerItemProxy;
+			containerPortal = 97C146E61CF9000F007C117D /* Project object */;
+			proxyType = 1;
+			remoteGlobalIDString = 97C146ED1CF9000F007C117D;
+			remoteInfo = Runner;
+		};
+/* End PBXContainerItemProxy section */
+
+/* Begin PBXCopyFilesBuildPhase section */
+		9705A1C41CF9048500538489 /* Embed Frameworks */ = {
+			isa = PBXCopyFilesBuildPhase;
+			buildActionMask = 2147483647;
+			dstPath = "";
+			dstSubfolderSpec = 10;
+			files = (
+			);
+			name = "Embed Frameworks";
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+/* End PBXCopyFilesBuildPhase section */
+
+/* Begin PBXFileReference section */
+		1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
+		1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
+		331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = "<group>"; };
+		331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
+		3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
+		74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
+		74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
+		7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
+		9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
+		9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
+		97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
+		97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
+		97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
+		97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
+		97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+		97C146EB1CF9000F007C117D /* Frameworks */ = {
+			isa = PBXFrameworksBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+		331C8082294A63A400263BE5 /* RunnerTests */ = {
+			isa = PBXGroup;
+			children = (
+				331C807B294A618700263BE5 /* RunnerTests.swift */,
+			);
+			path = RunnerTests;
+			sourceTree = "<group>";
+		};
+		9740EEB11CF90186004384FC /* Flutter */ = {
+			isa = PBXGroup;
+			children = (
+				3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
+				9740EEB21CF90195004384FC /* Debug.xcconfig */,
+				7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
+				9740EEB31CF90195004384FC /* Generated.xcconfig */,
+			);
+			name = Flutter;
+			sourceTree = "<group>";
+		};
+		97C146E51CF9000F007C117D = {
+			isa = PBXGroup;
+			children = (
+				9740EEB11CF90186004384FC /* Flutter */,
+				97C146F01CF9000F007C117D /* Runner */,
+				97C146EF1CF9000F007C117D /* Products */,
+				331C8082294A63A400263BE5 /* RunnerTests */,
+			);
+			sourceTree = "<group>";
+		};
+		97C146EF1CF9000F007C117D /* Products */ = {
+			isa = PBXGroup;
+			children = (
+				97C146EE1CF9000F007C117D /* Runner.app */,
+				331C8081294A63A400263BE5 /* RunnerTests.xctest */,
+			);
+			name = Products;
+			sourceTree = "<group>";
+		};
+		97C146F01CF9000F007C117D /* Runner */ = {
+			isa = PBXGroup;
+			children = (
+				97C146FA1CF9000F007C117D /* Main.storyboard */,
+				97C146FD1CF9000F007C117D /* Assets.xcassets */,
+				97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
+				97C147021CF9000F007C117D /* Info.plist */,
+				1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
+				1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
+				74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
+				74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
+			);
+			path = Runner;
+			sourceTree = "<group>";
+		};
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+		331C8080294A63A400263BE5 /* RunnerTests */ = {
+			isa = PBXNativeTarget;
+			buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
+			buildPhases = (
+				331C807D294A63A400263BE5 /* Sources */,
+				331C807F294A63A400263BE5 /* Resources */,
+			);
+			buildRules = (
+			);
+			dependencies = (
+				331C8086294A63A400263BE5 /* PBXTargetDependency */,
+			);
+			name = RunnerTests;
+			productName = RunnerTests;
+			productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */;
+			productType = "com.apple.product-type.bundle.unit-test";
+		};
+		97C146ED1CF9000F007C117D /* Runner */ = {
+			isa = PBXNativeTarget;
+			buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
+			buildPhases = (
+				9740EEB61CF901F6004384FC /* Run Script */,
+				97C146EA1CF9000F007C117D /* Sources */,
+				97C146EB1CF9000F007C117D /* Frameworks */,
+				97C146EC1CF9000F007C117D /* Resources */,
+				9705A1C41CF9048500538489 /* Embed Frameworks */,
+				3B06AD1E1E4923F5004D2608 /* Thin Binary */,
+			);
+			buildRules = (
+			);
+			dependencies = (
+			);
+			name = Runner;
+			productName = Runner;
+			productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
+			productType = "com.apple.product-type.application";
+		};
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+		97C146E61CF9000F007C117D /* Project object */ = {
+			isa = PBXProject;
+			attributes = {
+				BuildIndependentTargetsInParallel = YES;
+				LastUpgradeCheck = 1510;
+				ORGANIZATIONNAME = "";
+				TargetAttributes = {
+					331C8080294A63A400263BE5 = {
+						CreatedOnToolsVersion = 14.0;
+						TestTargetID = 97C146ED1CF9000F007C117D;
+					};
+					97C146ED1CF9000F007C117D = {
+						CreatedOnToolsVersion = 7.3.1;
+						LastSwiftMigration = 1100;
+					};
+				};
+			};
+			buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
+			compatibilityVersion = "Xcode 9.3";
+			developmentRegion = en;
+			hasScannedForEncodings = 0;
+			knownRegions = (
+				en,
+				Base,
+			);
+			mainGroup = 97C146E51CF9000F007C117D;
+			productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
+			projectDirPath = "";
+			projectRoot = "";
+			targets = (
+				97C146ED1CF9000F007C117D /* Runner */,
+				331C8080294A63A400263BE5 /* RunnerTests */,
+			);
+		};
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+		331C807F294A63A400263BE5 /* Resources */ = {
+			isa = PBXResourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+		97C146EC1CF9000F007C117D /* Resources */ = {
+			isa = PBXResourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
+				3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
+				97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
+				97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXShellScriptBuildPhase section */
+		3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
+			isa = PBXShellScriptBuildPhase;
+			alwaysOutOfDate = 1;
+			buildActionMask = 2147483647;
+			files = (
+			);
+			inputPaths = (
+				"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
+			);
+			name = "Thin Binary";
+			outputPaths = (
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+			shellPath = /bin/sh;
+			shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
+		};
+		9740EEB61CF901F6004384FC /* Run Script */ = {
+			isa = PBXShellScriptBuildPhase;
+			alwaysOutOfDate = 1;
+			buildActionMask = 2147483647;
+			files = (
+			);
+			inputPaths = (
+			);
+			name = "Run Script";
+			outputPaths = (
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+			shellPath = /bin/sh;
+			shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
+		};
+/* End PBXShellScriptBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+		331C807D294A63A400263BE5 /* Sources */ = {
+			isa = PBXSourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+		97C146EA1CF9000F007C117D /* Sources */ = {
+			isa = PBXSourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
+				1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXTargetDependency section */
+		331C8086294A63A400263BE5 /* PBXTargetDependency */ = {
+			isa = PBXTargetDependency;
+			target = 97C146ED1CF9000F007C117D /* Runner */;
+			targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */;
+		};
+/* End PBXTargetDependency section */
+
+/* Begin PBXVariantGroup section */
+		97C146FA1CF9000F007C117D /* Main.storyboard */ = {
+			isa = PBXVariantGroup;
+			children = (
+				97C146FB1CF9000F007C117D /* Base */,
+			);
+			name = Main.storyboard;
+			sourceTree = "<group>";
+		};
+		97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
+			isa = PBXVariantGroup;
+			children = (
+				97C147001CF9000F007C117D /* Base */,
+			);
+			name = LaunchScreen.storyboard;
+			sourceTree = "<group>";
+		};
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+		249021D3217E4FDB00AE95B9 /* Profile */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ALWAYS_SEARCH_USER_PATHS = NO;
+				ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
+				CLANG_ANALYZER_NONNULL = YES;
+				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+				CLANG_CXX_LIBRARY = "libc++";
+				CLANG_ENABLE_MODULES = YES;
+				CLANG_ENABLE_OBJC_ARC = YES;
+				CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+				CLANG_WARN_BOOL_CONVERSION = YES;
+				CLANG_WARN_COMMA = YES;
+				CLANG_WARN_CONSTANT_CONVERSION = YES;
+				CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+				CLANG_WARN_EMPTY_BODY = YES;
+				CLANG_WARN_ENUM_CONVERSION = YES;
+				CLANG_WARN_INFINITE_RECURSION = YES;
+				CLANG_WARN_INT_CONVERSION = YES;
+				CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+				CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+				CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+				CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+				CLANG_WARN_STRICT_PROTOTYPES = YES;
+				CLANG_WARN_SUSPICIOUS_MOVE = YES;
+				CLANG_WARN_UNREACHABLE_CODE = YES;
+				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+				COPY_PHASE_STRIP = NO;
+				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+				ENABLE_NS_ASSERTIONS = NO;
+				ENABLE_STRICT_OBJC_MSGSEND = YES;
+				ENABLE_USER_SCRIPT_SANDBOXING = NO;
+				GCC_C_LANGUAGE_STANDARD = gnu99;
+				GCC_NO_COMMON_BLOCKS = YES;
+				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+				GCC_WARN_UNDECLARED_SELECTOR = YES;
+				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+				GCC_WARN_UNUSED_FUNCTION = YES;
+				GCC_WARN_UNUSED_VARIABLE = YES;
+				IPHONEOS_DEPLOYMENT_TARGET = 12.0;
+				MTL_ENABLE_DEBUG_INFO = NO;
+				SDKROOT = iphoneos;
+				SUPPORTED_PLATFORMS = iphoneos;
+				TARGETED_DEVICE_FAMILY = "1,2";
+				VALIDATE_PRODUCT = YES;
+			};
+			name = Profile;
+		};
+		249021D4217E4FDB00AE95B9 /* Profile */ = {
+			isa = XCBuildConfiguration;
+			baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+			buildSettings = {
+				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+				CLANG_ENABLE_MODULES = YES;
+				CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+				DEVELOPMENT_TEAM = JYA454HZ72;
+				ENABLE_BITCODE = NO;
+				INFOPLIST_FILE = Runner/Info.plist;
+				LD_RUNPATH_SEARCH_PATHS = (
+					"$(inherited)",
+					"@executable_path/Frameworks",
+				);
+				PRODUCT_BUNDLE_IDENTIFIER = com.example.mapAmapIosExample;
+				PRODUCT_NAME = "$(TARGET_NAME)";
+				SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+				SWIFT_VERSION = 5.0;
+				VERSIONING_SYSTEM = "apple-generic";
+			};
+			name = Profile;
+		};
+		331C8088294A63A400263BE5 /* Debug */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				BUNDLE_LOADER = "$(TEST_HOST)";
+				CODE_SIGN_STYLE = Automatic;
+				CURRENT_PROJECT_VERSION = 1;
+				GENERATE_INFOPLIST_FILE = YES;
+				MARKETING_VERSION = 1.0;
+				PRODUCT_BUNDLE_IDENTIFIER = com.example.mapAmapIosExample.RunnerTests;
+				PRODUCT_NAME = "$(TARGET_NAME)";
+				SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
+				SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+				SWIFT_VERSION = 5.0;
+				TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
+			};
+			name = Debug;
+		};
+		331C8089294A63A400263BE5 /* Release */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				BUNDLE_LOADER = "$(TEST_HOST)";
+				CODE_SIGN_STYLE = Automatic;
+				CURRENT_PROJECT_VERSION = 1;
+				GENERATE_INFOPLIST_FILE = YES;
+				MARKETING_VERSION = 1.0;
+				PRODUCT_BUNDLE_IDENTIFIER = com.example.mapAmapIosExample.RunnerTests;
+				PRODUCT_NAME = "$(TARGET_NAME)";
+				SWIFT_VERSION = 5.0;
+				TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
+			};
+			name = Release;
+		};
+		331C808A294A63A400263BE5 /* Profile */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				BUNDLE_LOADER = "$(TEST_HOST)";
+				CODE_SIGN_STYLE = Automatic;
+				CURRENT_PROJECT_VERSION = 1;
+				GENERATE_INFOPLIST_FILE = YES;
+				MARKETING_VERSION = 1.0;
+				PRODUCT_BUNDLE_IDENTIFIER = com.example.mapAmapIosExample.RunnerTests;
+				PRODUCT_NAME = "$(TARGET_NAME)";
+				SWIFT_VERSION = 5.0;
+				TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
+			};
+			name = Profile;
+		};
+		97C147031CF9000F007C117D /* Debug */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ALWAYS_SEARCH_USER_PATHS = NO;
+				ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
+				CLANG_ANALYZER_NONNULL = YES;
+				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+				CLANG_CXX_LIBRARY = "libc++";
+				CLANG_ENABLE_MODULES = YES;
+				CLANG_ENABLE_OBJC_ARC = YES;
+				CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+				CLANG_WARN_BOOL_CONVERSION = YES;
+				CLANG_WARN_COMMA = YES;
+				CLANG_WARN_CONSTANT_CONVERSION = YES;
+				CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+				CLANG_WARN_EMPTY_BODY = YES;
+				CLANG_WARN_ENUM_CONVERSION = YES;
+				CLANG_WARN_INFINITE_RECURSION = YES;
+				CLANG_WARN_INT_CONVERSION = YES;
+				CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+				CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+				CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+				CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+				CLANG_WARN_STRICT_PROTOTYPES = YES;
+				CLANG_WARN_SUSPICIOUS_MOVE = YES;
+				CLANG_WARN_UNREACHABLE_CODE = YES;
+				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+				COPY_PHASE_STRIP = NO;
+				DEBUG_INFORMATION_FORMAT = dwarf;
+				ENABLE_STRICT_OBJC_MSGSEND = YES;
+				ENABLE_TESTABILITY = YES;
+				ENABLE_USER_SCRIPT_SANDBOXING = NO;
+				GCC_C_LANGUAGE_STANDARD = gnu99;
+				GCC_DYNAMIC_NO_PIC = NO;
+				GCC_NO_COMMON_BLOCKS = YES;
+				GCC_OPTIMIZATION_LEVEL = 0;
+				GCC_PREPROCESSOR_DEFINITIONS = (
+					"DEBUG=1",
+					"$(inherited)",
+				);
+				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+				GCC_WARN_UNDECLARED_SELECTOR = YES;
+				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+				GCC_WARN_UNUSED_FUNCTION = YES;
+				GCC_WARN_UNUSED_VARIABLE = YES;
+				IPHONEOS_DEPLOYMENT_TARGET = 12.0;
+				MTL_ENABLE_DEBUG_INFO = YES;
+				ONLY_ACTIVE_ARCH = YES;
+				SDKROOT = iphoneos;
+				TARGETED_DEVICE_FAMILY = "1,2";
+			};
+			name = Debug;
+		};
+		97C147041CF9000F007C117D /* Release */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ALWAYS_SEARCH_USER_PATHS = NO;
+				ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
+				CLANG_ANALYZER_NONNULL = YES;
+				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+				CLANG_CXX_LIBRARY = "libc++";
+				CLANG_ENABLE_MODULES = YES;
+				CLANG_ENABLE_OBJC_ARC = YES;
+				CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+				CLANG_WARN_BOOL_CONVERSION = YES;
+				CLANG_WARN_COMMA = YES;
+				CLANG_WARN_CONSTANT_CONVERSION = YES;
+				CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+				CLANG_WARN_EMPTY_BODY = YES;
+				CLANG_WARN_ENUM_CONVERSION = YES;
+				CLANG_WARN_INFINITE_RECURSION = YES;
+				CLANG_WARN_INT_CONVERSION = YES;
+				CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+				CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+				CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+				CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+				CLANG_WARN_STRICT_PROTOTYPES = YES;
+				CLANG_WARN_SUSPICIOUS_MOVE = YES;
+				CLANG_WARN_UNREACHABLE_CODE = YES;
+				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+				COPY_PHASE_STRIP = NO;
+				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+				ENABLE_NS_ASSERTIONS = NO;
+				ENABLE_STRICT_OBJC_MSGSEND = YES;
+				ENABLE_USER_SCRIPT_SANDBOXING = NO;
+				GCC_C_LANGUAGE_STANDARD = gnu99;
+				GCC_NO_COMMON_BLOCKS = YES;
+				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+				GCC_WARN_UNDECLARED_SELECTOR = YES;
+				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+				GCC_WARN_UNUSED_FUNCTION = YES;
+				GCC_WARN_UNUSED_VARIABLE = YES;
+				IPHONEOS_DEPLOYMENT_TARGET = 12.0;
+				MTL_ENABLE_DEBUG_INFO = NO;
+				SDKROOT = iphoneos;
+				SUPPORTED_PLATFORMS = iphoneos;
+				SWIFT_COMPILATION_MODE = wholemodule;
+				SWIFT_OPTIMIZATION_LEVEL = "-O";
+				TARGETED_DEVICE_FAMILY = "1,2";
+				VALIDATE_PRODUCT = YES;
+			};
+			name = Release;
+		};
+		97C147061CF9000F007C117D /* Debug */ = {
+			isa = XCBuildConfiguration;
+			baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
+			buildSettings = {
+				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+				CLANG_ENABLE_MODULES = YES;
+				CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+				DEVELOPMENT_TEAM = JYA454HZ72;
+				ENABLE_BITCODE = NO;
+				INFOPLIST_FILE = Runner/Info.plist;
+				LD_RUNPATH_SEARCH_PATHS = (
+					"$(inherited)",
+					"@executable_path/Frameworks",
+				);
+				PRODUCT_BUNDLE_IDENTIFIER = com.example.mapAmapIosExample;
+				PRODUCT_NAME = "$(TARGET_NAME)";
+				SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+				SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+				SWIFT_VERSION = 5.0;
+				VERSIONING_SYSTEM = "apple-generic";
+			};
+			name = Debug;
+		};
+		97C147071CF9000F007C117D /* Release */ = {
+			isa = XCBuildConfiguration;
+			baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+			buildSettings = {
+				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+				CLANG_ENABLE_MODULES = YES;
+				CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+				DEVELOPMENT_TEAM = JYA454HZ72;
+				ENABLE_BITCODE = NO;
+				INFOPLIST_FILE = Runner/Info.plist;
+				LD_RUNPATH_SEARCH_PATHS = (
+					"$(inherited)",
+					"@executable_path/Frameworks",
+				);
+				PRODUCT_BUNDLE_IDENTIFIER = com.example.mapAmapIosExample;
+				PRODUCT_NAME = "$(TARGET_NAME)";
+				SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+				SWIFT_VERSION = 5.0;
+				VERSIONING_SYSTEM = "apple-generic";
+			};
+			name = Release;
+		};
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+		331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = {
+			isa = XCConfigurationList;
+			buildConfigurations = (
+				331C8088294A63A400263BE5 /* Debug */,
+				331C8089294A63A400263BE5 /* Release */,
+				331C808A294A63A400263BE5 /* Profile */,
+			);
+			defaultConfigurationIsVisible = 0;
+			defaultConfigurationName = Release;
+		};
+		97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
+			isa = XCConfigurationList;
+			buildConfigurations = (
+				97C147031CF9000F007C117D /* Debug */,
+				97C147041CF9000F007C117D /* Release */,
+				249021D3217E4FDB00AE95B9 /* Profile */,
+			);
+			defaultConfigurationIsVisible = 0;
+			defaultConfigurationName = Release;
+		};
+		97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
+			isa = XCConfigurationList;
+			buildConfigurations = (
+				97C147061CF9000F007C117D /* Debug */,
+				97C147071CF9000F007C117D /* Release */,
+				249021D4217E4FDB00AE95B9 /* Profile */,
+			);
+			defaultConfigurationIsVisible = 0;
+			defaultConfigurationName = Release;
+		};
+/* End XCConfigurationList section */
+	};
+	rootObject = 97C146E61CF9000F007C117D /* Project object */;
+}

+ 7 - 0
plugins/map_amap_ios/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Workspace
+   version = "1.0">
+   <FileRef
+      location = "self:">
+   </FileRef>
+</Workspace>

+ 8 - 0
plugins/map_amap_ios/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>IDEDidComputeMac32BitWarning</key>
+	<true/>
+</dict>
+</plist>

+ 8 - 0
plugins/map_amap_ios/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>PreviewsEnabled</key>
+	<false/>
+</dict>
+</plist>

+ 101 - 0
plugins/map_amap_ios/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Scheme
+   LastUpgradeVersion = "1510"
+   version = "1.3">
+   <BuildAction
+      parallelizeBuildables = "YES"
+      buildImplicitDependencies = "YES">
+      <BuildActionEntries>
+         <BuildActionEntry
+            buildForTesting = "YES"
+            buildForRunning = "YES"
+            buildForProfiling = "YES"
+            buildForArchiving = "YES"
+            buildForAnalyzing = "YES">
+            <BuildableReference
+               BuildableIdentifier = "primary"
+               BlueprintIdentifier = "97C146ED1CF9000F007C117D"
+               BuildableName = "Runner.app"
+               BlueprintName = "Runner"
+               ReferencedContainer = "container:Runner.xcodeproj">
+            </BuildableReference>
+         </BuildActionEntry>
+      </BuildActionEntries>
+   </BuildAction>
+   <TestAction
+      buildConfiguration = "Debug"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+      customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
+      shouldUseLaunchSchemeArgsEnv = "YES">
+      <MacroExpansion>
+         <BuildableReference
+            BuildableIdentifier = "primary"
+            BlueprintIdentifier = "97C146ED1CF9000F007C117D"
+            BuildableName = "Runner.app"
+            BlueprintName = "Runner"
+            ReferencedContainer = "container:Runner.xcodeproj">
+         </BuildableReference>
+      </MacroExpansion>
+      <Testables>
+         <TestableReference
+            skipped = "NO"
+            parallelizable = "YES">
+            <BuildableReference
+               BuildableIdentifier = "primary"
+               BlueprintIdentifier = "331C8080294A63A400263BE5"
+               BuildableName = "RunnerTests.xctest"
+               BlueprintName = "RunnerTests"
+               ReferencedContainer = "container:Runner.xcodeproj">
+            </BuildableReference>
+         </TestableReference>
+      </Testables>
+   </TestAction>
+   <LaunchAction
+      buildConfiguration = "Debug"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+      customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
+      launchStyle = "0"
+      useCustomWorkingDirectory = "NO"
+      ignoresPersistentStateOnLaunch = "NO"
+      debugDocumentVersioning = "YES"
+      debugServiceExtension = "internal"
+      enableGPUValidationMode = "1"
+      allowLocationSimulation = "YES">
+      <BuildableProductRunnable
+         runnableDebuggingMode = "0">
+         <BuildableReference
+            BuildableIdentifier = "primary"
+            BlueprintIdentifier = "97C146ED1CF9000F007C117D"
+            BuildableName = "Runner.app"
+            BlueprintName = "Runner"
+            ReferencedContainer = "container:Runner.xcodeproj">
+         </BuildableReference>
+      </BuildableProductRunnable>
+   </LaunchAction>
+   <ProfileAction
+      buildConfiguration = "Profile"
+      shouldUseLaunchSchemeArgsEnv = "YES"
+      savedToolIdentifier = ""
+      useCustomWorkingDirectory = "NO"
+      debugDocumentVersioning = "YES">
+      <BuildableProductRunnable
+         runnableDebuggingMode = "0">
+         <BuildableReference
+            BuildableIdentifier = "primary"
+            BlueprintIdentifier = "97C146ED1CF9000F007C117D"
+            BuildableName = "Runner.app"
+            BlueprintName = "Runner"
+            ReferencedContainer = "container:Runner.xcodeproj">
+         </BuildableReference>
+      </BuildableProductRunnable>
+   </ProfileAction>
+   <AnalyzeAction
+      buildConfiguration = "Debug">
+   </AnalyzeAction>
+   <ArchiveAction
+      buildConfiguration = "Release"
+      revealArchiveInOrganizer = "YES">
+   </ArchiveAction>
+</Scheme>

+ 7 - 0
plugins/map_amap_ios/example/ios/Runner.xcworkspace/contents.xcworkspacedata

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Workspace
+   version = "1.0">
+   <FileRef
+      location = "group:Runner.xcodeproj">
+   </FileRef>
+</Workspace>

+ 8 - 0
plugins/map_amap_ios/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>IDEDidComputeMac32BitWarning</key>
+	<true/>
+</dict>
+</plist>

+ 8 - 0
plugins/map_amap_ios/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>PreviewsEnabled</key>
+	<false/>
+</dict>
+</plist>

+ 13 - 0
plugins/map_amap_ios/example/ios/Runner/AppDelegate.swift

@@ -0,0 +1,13 @@
+import Flutter
+import UIKit
+
+@main
+@objc class AppDelegate: FlutterAppDelegate {
+  override func application(
+    _ application: UIApplication,
+    didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
+  ) -> Bool {
+    GeneratedPluginRegistrant.register(with: self)
+    return super.application(application, didFinishLaunchingWithOptions: launchOptions)
+  }
+}

+ 122 - 0
plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json

@@ -0,0 +1,122 @@
+{
+  "images" : [
+    {
+      "size" : "20x20",
+      "idiom" : "iphone",
+      "filename" : "Icon-App-20x20@2x.png",
+      "scale" : "2x"
+    },
+    {
+      "size" : "20x20",
+      "idiom" : "iphone",
+      "filename" : "Icon-App-20x20@3x.png",
+      "scale" : "3x"
+    },
+    {
+      "size" : "29x29",
+      "idiom" : "iphone",
+      "filename" : "Icon-App-29x29@1x.png",
+      "scale" : "1x"
+    },
+    {
+      "size" : "29x29",
+      "idiom" : "iphone",
+      "filename" : "Icon-App-29x29@2x.png",
+      "scale" : "2x"
+    },
+    {
+      "size" : "29x29",
+      "idiom" : "iphone",
+      "filename" : "Icon-App-29x29@3x.png",
+      "scale" : "3x"
+    },
+    {
+      "size" : "40x40",
+      "idiom" : "iphone",
+      "filename" : "Icon-App-40x40@2x.png",
+      "scale" : "2x"
+    },
+    {
+      "size" : "40x40",
+      "idiom" : "iphone",
+      "filename" : "Icon-App-40x40@3x.png",
+      "scale" : "3x"
+    },
+    {
+      "size" : "60x60",
+      "idiom" : "iphone",
+      "filename" : "Icon-App-60x60@2x.png",
+      "scale" : "2x"
+    },
+    {
+      "size" : "60x60",
+      "idiom" : "iphone",
+      "filename" : "Icon-App-60x60@3x.png",
+      "scale" : "3x"
+    },
+    {
+      "size" : "20x20",
+      "idiom" : "ipad",
+      "filename" : "Icon-App-20x20@1x.png",
+      "scale" : "1x"
+    },
+    {
+      "size" : "20x20",
+      "idiom" : "ipad",
+      "filename" : "Icon-App-20x20@2x.png",
+      "scale" : "2x"
+    },
+    {
+      "size" : "29x29",
+      "idiom" : "ipad",
+      "filename" : "Icon-App-29x29@1x.png",
+      "scale" : "1x"
+    },
+    {
+      "size" : "29x29",
+      "idiom" : "ipad",
+      "filename" : "Icon-App-29x29@2x.png",
+      "scale" : "2x"
+    },
+    {
+      "size" : "40x40",
+      "idiom" : "ipad",
+      "filename" : "Icon-App-40x40@1x.png",
+      "scale" : "1x"
+    },
+    {
+      "size" : "40x40",
+      "idiom" : "ipad",
+      "filename" : "Icon-App-40x40@2x.png",
+      "scale" : "2x"
+    },
+    {
+      "size" : "76x76",
+      "idiom" : "ipad",
+      "filename" : "Icon-App-76x76@1x.png",
+      "scale" : "1x"
+    },
+    {
+      "size" : "76x76",
+      "idiom" : "ipad",
+      "filename" : "Icon-App-76x76@2x.png",
+      "scale" : "2x"
+    },
+    {
+      "size" : "83.5x83.5",
+      "idiom" : "ipad",
+      "filename" : "Icon-App-83.5x83.5@2x.png",
+      "scale" : "2x"
+    },
+    {
+      "size" : "1024x1024",
+      "idiom" : "ios-marketing",
+      "filename" : "Icon-App-1024x1024@1x.png",
+      "scale" : "1x"
+    }
+  ],
+  "info" : {
+    "version" : 1,
+    "author" : "xcode"
+  }
+}

BIN
plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png


BIN
plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png


BIN
plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png


BIN
plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png


BIN
plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png


BIN
plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png


BIN
plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png


BIN
plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png


BIN
plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png


BIN
plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png


BIN
plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png


BIN
plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png


BIN
plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png


BIN
plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png


BIN
plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png


+ 23 - 0
plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json

@@ -0,0 +1,23 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "filename" : "LaunchImage.png",
+      "scale" : "1x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "LaunchImage@2x.png",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "LaunchImage@3x.png",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "version" : 1,
+    "author" : "xcode"
+  }
+}

BIN
plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png


BIN
plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png


BIN
plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png


+ 5 - 0
plugins/map_amap_ios/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md

@@ -0,0 +1,5 @@
+# Launch Screen Assets
+
+You can customize the launch screen with your own desired assets by replacing the image files in this directory.
+
+You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.

+ 37 - 0
plugins/map_amap_ios/example/ios/Runner/Base.lproj/LaunchScreen.storyboard

@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12121" systemVersion="16G29" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
+    <dependencies>
+        <deployment identifier="iOS"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12089"/>
+    </dependencies>
+    <scenes>
+        <!--View Controller-->
+        <scene sceneID="EHf-IW-A2E">
+            <objects>
+                <viewController id="01J-lp-oVM" sceneMemberID="viewController">
+                    <layoutGuides>
+                        <viewControllerLayoutGuide type="top" id="Ydg-fD-yQy"/>
+                        <viewControllerLayoutGuide type="bottom" id="xbc-2k-c8Z"/>
+                    </layoutGuides>
+                    <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
+                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+                        <subviews>
+                            <imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" image="LaunchImage" translatesAutoresizingMaskIntoConstraints="NO" id="YRO-k0-Ey4">
+                            </imageView>
+                        </subviews>
+                        <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                        <constraints>
+                            <constraint firstItem="YRO-k0-Ey4" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="1a2-6s-vTC"/>
+                            <constraint firstItem="YRO-k0-Ey4" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" id="4X2-HB-R7a"/>
+                        </constraints>
+                    </view>
+                </viewController>
+                <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
+            </objects>
+            <point key="canvasLocation" x="53" y="375"/>
+        </scene>
+    </scenes>
+    <resources>
+        <image name="LaunchImage" width="168" height="185"/>
+    </resources>
+</document>

+ 26 - 0
plugins/map_amap_ios/example/ios/Runner/Base.lproj/Main.storyboard

@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
+    <dependencies>
+        <deployment identifier="iOS"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
+    </dependencies>
+    <scenes>
+        <!--Flutter View Controller-->
+        <scene sceneID="tne-QT-ifu">
+            <objects>
+                <viewController id="BYZ-38-t0r" customClass="FlutterViewController" sceneMemberID="viewController">
+                    <layoutGuides>
+                        <viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
+                        <viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
+                    </layoutGuides>
+                    <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
+                        <rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
+                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+                        <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
+                    </view>
+                </viewController>
+                <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
+            </objects>
+        </scene>
+    </scenes>
+</document>

+ 49 - 0
plugins/map_amap_ios/example/ios/Runner/Info.plist

@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>CFBundleDevelopmentRegion</key>
+	<string>$(DEVELOPMENT_LANGUAGE)</string>
+	<key>CFBundleDisplayName</key>
+	<string>Map Amap Ios</string>
+	<key>CFBundleExecutable</key>
+	<string>$(EXECUTABLE_NAME)</string>
+	<key>CFBundleIdentifier</key>
+	<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
+	<key>CFBundleInfoDictionaryVersion</key>
+	<string>6.0</string>
+	<key>CFBundleName</key>
+	<string>map_amap_ios_example</string>
+	<key>CFBundlePackageType</key>
+	<string>APPL</string>
+	<key>CFBundleShortVersionString</key>
+	<string>$(FLUTTER_BUILD_NAME)</string>
+	<key>CFBundleSignature</key>
+	<string>????</string>
+	<key>CFBundleVersion</key>
+	<string>$(FLUTTER_BUILD_NUMBER)</string>
+	<key>LSRequiresIPhoneOS</key>
+	<true/>
+	<key>UILaunchStoryboardName</key>
+	<string>LaunchScreen</string>
+	<key>UIMainStoryboardFile</key>
+	<string>Main</string>
+	<key>UISupportedInterfaceOrientations</key>
+	<array>
+		<string>UIInterfaceOrientationPortrait</string>
+		<string>UIInterfaceOrientationLandscapeLeft</string>
+		<string>UIInterfaceOrientationLandscapeRight</string>
+	</array>
+	<key>UISupportedInterfaceOrientations~ipad</key>
+	<array>
+		<string>UIInterfaceOrientationPortrait</string>
+		<string>UIInterfaceOrientationPortraitUpsideDown</string>
+		<string>UIInterfaceOrientationLandscapeLeft</string>
+		<string>UIInterfaceOrientationLandscapeRight</string>
+	</array>
+	<key>CADisableMinimumFrameDurationOnPhone</key>
+	<true/>
+	<key>UIApplicationSupportsIndirectInputEvents</key>
+	<true/>
+</dict>
+</plist>

+ 1 - 0
plugins/map_amap_ios/example/ios/Runner/Runner-Bridging-Header.h

@@ -0,0 +1 @@
+#import "GeneratedPluginRegistrant.h"

+ 27 - 0
plugins/map_amap_ios/example/ios/RunnerTests/RunnerTests.swift

@@ -0,0 +1,27 @@
+import Flutter
+import UIKit
+import XCTest
+
+
+@testable import map_amap_ios
+
+// This demonstrates a simple unit test of the Swift portion of this plugin's implementation.
+//
+// See https://developer.apple.com/documentation/xctest for more information about using XCTest.
+
+class RunnerTests: XCTestCase {
+
+  func testGetPlatformVersion() {
+    let plugin = MapAmapIosPlugin()
+
+    let call = FlutterMethodCall(methodName: "getPlatformVersion", arguments: [])
+
+    let resultExpectation = expectation(description: "result block must be called.")
+    plugin.handle(call) { result in
+      XCTAssertEqual(result as! String, "iOS " + UIDevice.current.systemVersion)
+      resultExpectation.fulfill()
+    }
+    waitForExpectations(timeout: 1)
+  }
+
+}

+ 63 - 0
plugins/map_amap_ios/example/lib/main.dart

@@ -0,0 +1,63 @@
+import 'package:flutter/material.dart';
+import 'dart:async';
+
+import 'package:flutter/services.dart';
+import 'package:map_amap_ios/map_amap_ios.dart';
+
+void main() {
+  runApp(const MyApp());
+}
+
+class MyApp extends StatefulWidget {
+  const MyApp({super.key});
+
+  @override
+  State<MyApp> createState() => _MyAppState();
+}
+
+class _MyAppState extends State<MyApp> {
+  String _platformVersion = 'Unknown';
+  final _mapAmapIosPlugin = MapAmapIos();
+
+  @override
+  void initState() {
+    super.initState();
+    initPlatformState();
+  }
+
+  // Platform messages are asynchronous, so we initialize in an async method.
+  Future<void> initPlatformState() async {
+    String platformVersion;
+    // Platform messages may fail, so we use a try/catch PlatformException.
+    // We also handle the message potentially returning null.
+    try {
+      platformVersion =
+          await _mapAmapIosPlugin.getPlatformVersion() ?? 'Unknown platform version';
+    } on PlatformException {
+      platformVersion = 'Failed to get platform version.';
+    }
+
+    // If the widget was removed from the tree while the asynchronous platform
+    // message was in flight, we want to discard the reply rather than calling
+    // setState to update our non-existent appearance.
+    if (!mounted) return;
+
+    setState(() {
+      _platformVersion = platformVersion;
+    });
+  }
+
+  @override
+  Widget build(BuildContext context) {
+    return MaterialApp(
+      home: Scaffold(
+        appBar: AppBar(
+          title: const Text('Plugin example app'),
+        ),
+        body: Center(
+          child: Text('Running on: $_platformVersion\n'),
+        ),
+      ),
+    );
+  }
+}

+ 283 - 0
plugins/map_amap_ios/example/pubspec.lock

@@ -0,0 +1,283 @@
+# Generated by pub
+# See https://dart.dev/tools/pub/glossary#lockfile
+packages:
+  async:
+    dependency: transitive
+    description:
+      name: async
+      sha256: "758e6d74e971c3e5aceb4110bfd6698efc7f501675bcfe0c775459a8140750eb"
+      url: "https://pub.dev"
+    source: hosted
+    version: "2.13.0"
+  boolean_selector:
+    dependency: transitive
+    description:
+      name: boolean_selector
+      sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea"
+      url: "https://pub.dev"
+    source: hosted
+    version: "2.1.2"
+  characters:
+    dependency: transitive
+    description:
+      name: characters
+      sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803
+      url: "https://pub.dev"
+    source: hosted
+    version: "1.4.0"
+  clock:
+    dependency: transitive
+    description:
+      name: clock
+      sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b
+      url: "https://pub.dev"
+    source: hosted
+    version: "1.1.2"
+  collection:
+    dependency: transitive
+    description:
+      name: collection
+      sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76"
+      url: "https://pub.dev"
+    source: hosted
+    version: "1.19.1"
+  cupertino_icons:
+    dependency: "direct main"
+    description:
+      name: cupertino_icons
+      sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6
+      url: "https://pub.dev"
+    source: hosted
+    version: "1.0.8"
+  fake_async:
+    dependency: transitive
+    description:
+      name: fake_async
+      sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44"
+      url: "https://pub.dev"
+    source: hosted
+    version: "1.3.3"
+  file:
+    dependency: transitive
+    description:
+      name: file
+      sha256: a3b4f84adafef897088c160faf7dfffb7696046cb13ae90b508c2cbc95d3b8d4
+      url: "https://pub.dev"
+    source: hosted
+    version: "7.0.1"
+  flutter:
+    dependency: "direct main"
+    description: flutter
+    source: sdk
+    version: "0.0.0"
+  flutter_driver:
+    dependency: transitive
+    description: flutter
+    source: sdk
+    version: "0.0.0"
+  flutter_lints:
+    dependency: "direct dev"
+    description:
+      name: flutter_lints
+      sha256: "5398f14efa795ffb7a33e9b6a08798b26a180edac4ad7db3f231e40f82ce11e1"
+      url: "https://pub.dev"
+    source: hosted
+    version: "5.0.0"
+  flutter_test:
+    dependency: "direct dev"
+    description: flutter
+    source: sdk
+    version: "0.0.0"
+  fuchsia_remote_debug_protocol:
+    dependency: transitive
+    description: flutter
+    source: sdk
+    version: "0.0.0"
+  integration_test:
+    dependency: "direct dev"
+    description: flutter
+    source: sdk
+    version: "0.0.0"
+  leak_tracker:
+    dependency: transitive
+    description:
+      name: leak_tracker
+      sha256: "6bb818ecbdffe216e81182c2f0714a2e62b593f4a4f13098713ff1685dfb6ab0"
+      url: "https://pub.dev"
+    source: hosted
+    version: "10.0.9"
+  leak_tracker_flutter_testing:
+    dependency: transitive
+    description:
+      name: leak_tracker_flutter_testing
+      sha256: f8b613e7e6a13ec79cfdc0e97638fddb3ab848452eff057653abd3edba760573
+      url: "https://pub.dev"
+    source: hosted
+    version: "3.0.9"
+  leak_tracker_testing:
+    dependency: transitive
+    description:
+      name: leak_tracker_testing
+      sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3"
+      url: "https://pub.dev"
+    source: hosted
+    version: "3.0.1"
+  lints:
+    dependency: transitive
+    description:
+      name: lints
+      sha256: c35bb79562d980e9a453fc715854e1ed39e24e7d0297a880ef54e17f9874a9d7
+      url: "https://pub.dev"
+    source: hosted
+    version: "5.1.1"
+  map_amap_ios:
+    dependency: "direct main"
+    description:
+      path: ".."
+      relative: true
+    source: path
+    version: "0.0.1"
+  matcher:
+    dependency: transitive
+    description:
+      name: matcher
+      sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2
+      url: "https://pub.dev"
+    source: hosted
+    version: "0.12.17"
+  material_color_utilities:
+    dependency: transitive
+    description:
+      name: material_color_utilities
+      sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec
+      url: "https://pub.dev"
+    source: hosted
+    version: "0.11.1"
+  meta:
+    dependency: transitive
+    description:
+      name: meta
+      sha256: e3641ec5d63ebf0d9b41bd43201a66e3fc79a65db5f61fc181f04cd27aab950c
+      url: "https://pub.dev"
+    source: hosted
+    version: "1.16.0"
+  path:
+    dependency: transitive
+    description:
+      name: path
+      sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5"
+      url: "https://pub.dev"
+    source: hosted
+    version: "1.9.1"
+  platform:
+    dependency: transitive
+    description:
+      name: platform
+      sha256: "5d6b1b0036a5f331ebc77c850ebc8506cbc1e9416c27e59b439f917a902a4984"
+      url: "https://pub.dev"
+    source: hosted
+    version: "3.1.6"
+  plugin_platform_interface:
+    dependency: transitive
+    description:
+      name: plugin_platform_interface
+      sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02"
+      url: "https://pub.dev"
+    source: hosted
+    version: "2.1.8"
+  process:
+    dependency: transitive
+    description:
+      name: process
+      sha256: "107d8be718f120bbba9dcd1e95e3bd325b1b4a4f07db64154635ba03f2567a0d"
+      url: "https://pub.dev"
+    source: hosted
+    version: "5.0.3"
+  sky_engine:
+    dependency: transitive
+    description: flutter
+    source: sdk
+    version: "0.0.0"
+  source_span:
+    dependency: transitive
+    description:
+      name: source_span
+      sha256: "254ee5351d6cb365c859e20ee823c3bb479bf4a293c22d17a9f1bf144ce86f7c"
+      url: "https://pub.dev"
+    source: hosted
+    version: "1.10.1"
+  stack_trace:
+    dependency: transitive
+    description:
+      name: stack_trace
+      sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1"
+      url: "https://pub.dev"
+    source: hosted
+    version: "1.12.1"
+  stream_channel:
+    dependency: transitive
+    description:
+      name: stream_channel
+      sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d"
+      url: "https://pub.dev"
+    source: hosted
+    version: "2.1.4"
+  string_scanner:
+    dependency: transitive
+    description:
+      name: string_scanner
+      sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43"
+      url: "https://pub.dev"
+    source: hosted
+    version: "1.4.1"
+  sync_http:
+    dependency: transitive
+    description:
+      name: sync_http
+      sha256: "7f0cd72eca000d2e026bcd6f990b81d0ca06022ef4e32fb257b30d3d1014a961"
+      url: "https://pub.dev"
+    source: hosted
+    version: "0.3.1"
+  term_glyph:
+    dependency: transitive
+    description:
+      name: term_glyph
+      sha256: "7f554798625ea768a7518313e58f83891c7f5024f88e46e7182a4558850a4b8e"
+      url: "https://pub.dev"
+    source: hosted
+    version: "1.2.2"
+  test_api:
+    dependency: transitive
+    description:
+      name: test_api
+      sha256: fb31f383e2ee25fbbfe06b40fe21e1e458d14080e3c67e7ba0acfde4df4e0bbd
+      url: "https://pub.dev"
+    source: hosted
+    version: "0.7.4"
+  vector_math:
+    dependency: transitive
+    description:
+      name: vector_math
+      sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
+      url: "https://pub.dev"
+    source: hosted
+    version: "2.1.4"
+  vm_service:
+    dependency: transitive
+    description:
+      name: vm_service
+      sha256: ddfa8d30d89985b96407efce8acbdd124701f96741f2d981ca860662f1c0dc02
+      url: "https://pub.dev"
+    source: hosted
+    version: "15.0.0"
+  webdriver:
+    dependency: transitive
+    description:
+      name: webdriver
+      sha256: "2f3a14ca026957870cfd9c635b83507e0e51d8091568e90129fbf805aba7cade"
+      url: "https://pub.dev"
+    source: hosted
+    version: "3.1.0"
+sdks:
+  dart: ">=3.8.1 <4.0.0"
+  flutter: ">=3.18.0-18.0.pre.54"

+ 85 - 0
plugins/map_amap_ios/example/pubspec.yaml

@@ -0,0 +1,85 @@
+name: map_amap_ios_example
+description: "Demonstrates how to use the map_amap_ios plugin."
+# The following line prevents the package from being accidentally published to
+# pub.dev using `flutter pub publish`. This is preferred for private packages.
+publish_to: 'none' # Remove this line if you wish to publish to pub.dev
+
+environment:
+  sdk: ^3.8.1
+
+# Dependencies specify other packages that your package needs in order to work.
+# To automatically upgrade your package dependencies to the latest versions
+# consider running `flutter pub upgrade --major-versions`. Alternatively,
+# dependencies can be manually updated by changing the version numbers below to
+# the latest version available on pub.dev. To see which dependencies have newer
+# versions available, run `flutter pub outdated`.
+dependencies:
+  flutter:
+    sdk: flutter
+
+  map_amap_ios:
+    # When depending on this package from a real application you should use:
+    #   map_amap_ios: ^x.y.z
+    # See https://dart.dev/tools/pub/dependencies#version-constraints
+    # The example app is bundled with the plugin so we use a path dependency on
+    # the parent directory to use the current plugin's version.
+    path: ../
+
+  # The following adds the Cupertino Icons font to your application.
+  # Use with the CupertinoIcons class for iOS style icons.
+  cupertino_icons: ^1.0.8
+
+dev_dependencies:
+  integration_test:
+    sdk: flutter
+  flutter_test:
+    sdk: flutter
+
+  # The "flutter_lints" package below contains a set of recommended lints to
+  # encourage good coding practices. The lint set provided by the package is
+  # activated in the `analysis_options.yaml` file located at the root of your
+  # package. See that file for information about deactivating specific lint
+  # rules and activating additional ones.
+  flutter_lints: ^5.0.0
+
+# For information on the generic Dart part of this file, see the
+# following page: https://dart.dev/tools/pub/pubspec
+
+# The following section is specific to Flutter packages.
+flutter:
+
+  # The following line ensures that the Material Icons font is
+  # included with your application, so that you can use the icons in
+  # the material Icons class.
+  uses-material-design: true
+
+  # To add assets to your application, add an assets section, like this:
+  # assets:
+  #   - images/a_dot_burr.jpeg
+  #   - images/a_dot_ham.jpeg
+
+  # An image asset can refer to one or more resolution-specific "variants", see
+  # https://flutter.dev/to/resolution-aware-images
+
+  # For details regarding adding assets from package dependencies, see
+  # https://flutter.dev/to/asset-from-package
+
+  # To add custom fonts to your application, add a fonts section here,
+  # in this "flutter" section. Each entry in this list should have a
+  # "family" key with the font family name, and a "fonts" key with a
+  # list giving the asset and other descriptors for the font. For
+  # example:
+  # fonts:
+  #   - family: Schyler
+  #     fonts:
+  #       - asset: fonts/Schyler-Regular.ttf
+  #       - asset: fonts/Schyler-Italic.ttf
+  #         style: italic
+  #   - family: Trajan Pro
+  #     fonts:
+  #       - asset: fonts/TrajanPro.ttf
+  #       - asset: fonts/TrajanPro_Bold.ttf
+  #         weight: 700
+  #
+  # For details regarding fonts from package dependencies,
+  # see https://flutter.dev/to/font-from-package

+ 27 - 0
plugins/map_amap_ios/example/test/widget_test.dart

@@ -0,0 +1,27 @@
+// This is a basic Flutter widget test.
+//
+// To perform an interaction with a widget in your test, use the WidgetTester
+// utility in the flutter_test package. For example, you can send tap and scroll
+// gestures. You can also use WidgetTester to find child widgets in the widget
+// tree, read text, and verify that the values of widget properties are correct.
+
+import 'package:flutter/material.dart';
+import 'package:flutter_test/flutter_test.dart';
+
+import 'package:map_amap_ios_example/main.dart';
+
+void main() {
+  testWidgets('Verify Platform version', (WidgetTester tester) async {
+    // Build our app and trigger a frame.
+    await tester.pumpWidget(const MyApp());
+
+    // Verify that platform version is retrieved.
+    expect(
+      find.byWidgetPredicate(
+        (Widget widget) => widget is Text &&
+                           widget.data!.startsWith('Running on:'),
+      ),
+      findsOneWidget,
+    );
+  });
+}

+ 38 - 0
plugins/map_amap_ios/ios/.gitignore

@@ -0,0 +1,38 @@
+.idea/
+.vagrant/
+.sconsign.dblite
+.svn/
+
+.DS_Store
+*.swp
+profile
+
+DerivedData/
+build/
+GeneratedPluginRegistrant.h
+GeneratedPluginRegistrant.m
+
+.generated/
+
+*.pbxuser
+*.mode1v3
+*.mode2v3
+*.perspectivev3
+
+!default.pbxuser
+!default.mode1v3
+!default.mode2v3
+!default.perspectivev3
+
+xcuserdata
+
+*.moved-aside
+
+*.pyc
+*sync/
+Icon?
+.tags*
+
+/Flutter/Generated.xcconfig
+/Flutter/ephemeral/
+/Flutter/flutter_export_environment.sh

+ 0 - 0
plugins/map_amap_ios/ios/Assets/.gitkeep


+ 94 - 0
plugins/map_amap_ios/ios/Classes/ExtensionTool/CLLocationCoordinate2D+HandleTool.swift

@@ -0,0 +1,94 @@
+//
+//  CLLocationCoordinate2D+HandleTool.swift
+//  map_amap_ios
+//
+//  Created by 诺诺诺的言 on 2025/7/22.
+//
+
+import Foundation
+import CoreLocation
+
+extension CLLocationCoordinate2D {
+    /// 地球坐标 WGC-84 转为为火星坐标 GCJ-02(限中国境内)
+    /// - CLLocationManager 获取的是地球坐标,但地图上显示的需要火星坐标
+    /// - 通过 CLLocationManager 获取到中国境内地理坐标,若需要在地图上显示,则需要转换为火星坐标
+    var wgc84ToGCJ02: CLLocationCoordinate2D {
+        let earthRadius = 6378245.0
+        let gcj_ee = 0.00669342162296594323
+
+        var adjustedLatitude = transformedLatitude
+        var adjustedLongitude = transformedLongitude
+
+        let radLat = latitude / 180.0 * .pi
+        let magic: Double = {
+            let temp = sin(radLat)
+            let result = 1 - gcj_ee * temp * temp
+            return result
+        }()
+        let sqrtMagic = sqrt(magic)
+
+        adjustedLatitude = (adjustedLatitude * 180.0) / ((earthRadius * (1.0 - gcj_ee)) / (magic * sqrtMagic) * .pi)
+        adjustedLongitude = (adjustedLongitude * 180.0) / (earthRadius / sqrtMagic * cos(radLat) * .pi)
+
+        let result = CLLocationCoordinate2D(
+            latitude: latitude + adjustedLatitude,
+            longitude: longitude + adjustedLongitude
+        )
+
+        return result
+    }
+
+    var gcj02ToWGS84: CLLocationCoordinate2D {
+        let a = 6378245.0
+        let ee = 0.00669342162296594323
+        let gcjLat = latitude
+        let gcjLon = longitude
+        var dLat = transformLat(x: gcjLon - 105.0, y: gcjLat - 35.0)
+        var dLon = transformLon(x: gcjLon - 105.0, y: gcjLat - 35.0)
+        let radLat = gcjLat / 180.0 * Double.pi
+        var magic = sin(radLat)
+        magic = 1 - ee * magic * magic
+        let sqrtMagic = sqrt(magic)
+        dLat = (dLat * 180.0) / ((a * (1 - ee)) / (magic * sqrtMagic) * Double.pi)
+        dLon = (dLon * 180.0) / (a / sqrtMagic * cos(radLat) * Double.pi)
+        let mgLat = gcjLat + dLat
+        let mgLon = gcjLon + dLon
+        return CLLocationCoordinate2D(latitude: gcjLat * 2 - mgLat, longitude: gcjLon * 2 - mgLon)
+    }
+    
+    private var transformedLatitude: Double {
+        let x = longitude - 105.0
+        let y = latitude - 35.0
+        var result = -100.0 + 2.0 * x + 3.0 * y + 0.2 * y * y + 0.1 * x * y + 0.2 * sqrt(abs(x))
+        result += (20.0 * sin(6.0 * x * .pi) + 20.0 * sin(2.0 * x * .pi)) * 2.0 / 3.0
+        result += (20.0 * sin(y * .pi) + 40.0 * sin(y / 3.0 * .pi)) * 2.0 / 3.0
+        result += (160.0 * sin(y / 12.0 * .pi) + 320.0 * sin(y * .pi / 30.0)) * 2.0 / 3.0
+        return result
+    }
+
+    private var transformedLongitude: Double {
+        let x = longitude - 105.0
+        let y = latitude - 35.0
+        var result = 300.0 + x + 2.0 * y + 0.1 * x * x + 0.1 * x * y + 0.1 * sqrt(abs(x))
+        result += (20.0 * sin(6.0 * x * .pi) + 20.0 * sin(2.0 * x * .pi)) * 2.0 / 3.0
+        result += (20.0 * sin(x * .pi) + 40.0 * sin(x / 3.0 * .pi)) * 2.0 / 3.0
+        result += (150.0 * sin(x / 12.0 * .pi) + 300.0 * sin(x / 30.0 * .pi)) * 2.0 / 3.0
+        return result
+    }
+
+    func transformLat(x: Double, y: Double) -> Double {
+        var ret = -100.0 + 2.0 * x + 3.0 * y + 0.2 * y * y + 0.1 * x * y + 0.2 * sqrt(abs(x))
+        ret += (20.0 * sin(6.0 * x * Double.pi) + 20.0 * sin(2.0 * x * Double.pi)) * 2.0 / 3.0
+        ret += (20.0 * sin(y * Double.pi) + 40.0 * sin(y / 3.0 * Double.pi)) * 2.0 / 3.0
+        ret += (160.0 * sin(y / 12.0 * Double.pi) + 320 * sin(y * Double.pi / 30.0)) * 2.0 / 3.0
+        return ret
+    }
+
+    func transformLon(x: Double, y: Double) -> Double {
+        var ret = 300.0 + x + 2.0 * y + 0.1 * x * x + 0.1 * x * y + 0.1 * sqrt(abs(x))
+        ret += (20.0 * sin(6.0 * x * Double.pi) + 20.0 * sin(2.0 * x * Double.pi)) * 2.0 / 3.0
+        ret += (20.0 * sin(x * Double.pi) + 40.0 * sin(x / 3.0 * Double.pi)) * 2.0 / 3.0
+        ret += (150.0 * sin(x / 12.0 * Double.pi) + 300.0 * sin(x / 30.0 * Double.pi)) * 2.0 / 3.0
+        return ret
+    }
+}

+ 62 - 0
plugins/map_amap_ios/ios/Classes/ExtensionTool/Color+Handle.swift

@@ -0,0 +1,62 @@
+//
+//  Color+Handle.swift
+//  map_amap_ios
+//
+//  Created by 诺诺诺的言 on 2025/7/22.
+//
+
+import Foundation
+
+extension UIColor {
+    /// 从十六进制字符串初始化颜色(支持 #RGB、#RGBA、#RRGGBB、#RRGGBBAA 格式)
+    /// - Parameter hex: 十六进制颜色字符串,例如 "#15CBA1"、"FF0088"、"#F0F"
+    convenience init?(hex: String) {
+        // 1. 预处理:移除空格、换行,并转为大写(避免大小写问题)
+        let cleanedHex = hex.trimmingCharacters(in: .whitespacesAndNewlines).uppercased()
+        // 2. 处理带 # 的情况
+        let hexString = cleanedHex.hasPrefix("#") ? String(cleanedHex.dropFirst()) : cleanedHex
+        let length = hexString.count
+        
+        // 3. 验证格式是否合法(支持 3、4、6、8 位)
+        guard [3, 4, 6, 8].contains(length) else {
+            print("无效的十六进制颜色格式:\(hex)")
+            return nil
+        }
+        
+        // 4. 扫描十六进制数值
+        let scanner = Scanner(string: hexString)
+        var rgbValue: UInt64 = 0
+        guard scanner.scanHexInt64(&rgbValue) else {
+            print("无法扫描十六进制值:\(hex)")
+            return nil
+        }
+        
+        // 5. 根据长度解析 RGB 和透明度
+        switch length {
+        case 3: // #RGB -> 扩展为 #RRGGBB(如 #F0F -> #FF00FF)
+            let r = CGFloat((rgbValue & 0xF00) >> 8) / 15.0
+            let g = CGFloat((rgbValue & 0x0F0) >> 4) / 15.0
+            let b = CGFloat(rgbValue & 0x00F) / 15.0
+            self.init(red: r, green: g, blue: b, alpha: 1.0)
+        case 4: // #RGBA -> 扩展为 #RRGGBBAA
+            let r = CGFloat((rgbValue & 0xF000) >> 12) / 15.0
+            let g = CGFloat((rgbValue & 0x0F00) >> 8) / 15.0
+            let b = CGFloat((rgbValue & 0x00F0) >> 4) / 15.0
+            let a = CGFloat(rgbValue & 0x000F) / 15.0
+            self.init(red: r, green: g, blue: b, alpha: a)
+        case 6: // #RRGGBB(如 #15CBA1)
+            let r = CGFloat((rgbValue & 0xFF0000) >> 16) / 255.0
+            let g = CGFloat((rgbValue & 0x00FF00) >> 8) / 255.0
+            let b = CGFloat(rgbValue & 0x0000FF) / 255.0
+            self.init(red: r, green: g, blue: b, alpha: 1.0)
+        case 8: // #RRGGBBAA
+            let a = CGFloat((rgbValue & 0xFF000000) >> 24) / 255.0
+            let r = CGFloat((rgbValue & 0x00FF0000) >> 16) / 255.0
+            let g = CGFloat((rgbValue & 0x0000FF00) >> 8) / 255.0
+            let b = CGFloat(rgbValue & 0x000000FF) / 255.0
+            self.init(red: r, green: g, blue: b, alpha: a)
+        default:
+            return nil
+        }
+    }
+}

+ 176 - 0
plugins/map_amap_ios/ios/Classes/ExtensionTool/MKMapView+HandleTool.swift

@@ -0,0 +1,176 @@
+//
+//  MKMapView+HandleTool.swift
+//  map_amap_ios
+//
+//  Created by 诺诺诺的言 on 2025/7/22.
+//
+
+import Foundation
+import MapKit
+
+extension MKMapView {
+    // 按比例 按padding适应annotation
+    public func fitsAllPoints(
+        points: [MKMapPoint],
+        padding: UIEdgeInsets,
+        aspectRatio: Double? = nil,
+        animated: Bool = true
+    ) {
+        var zoomRect: MKMapRect = .null
+        for point in points {
+            let pointRect = MKMapRect(x: point.x, y: point.y, width: 0, height: 0)
+            if zoomRect.isNull {
+                zoomRect = pointRect
+            } else {
+                zoomRect = zoomRect.union(pointRect)
+            }
+        }
+
+        // Calculate the desired size based on the aspect ratio
+        let aspectRatio = aspectRatio ?? 1.0
+        let width = zoomRect.size.width
+        let height = zoomRect.size.height
+        let desiredWidth = max(width, height * aspectRatio)
+        let desiredHeight = max(height, width / aspectRatio)
+
+        // Calculate the center of the annotations
+        let center = MKMapPoint(x: zoomRect.midX, y: zoomRect.midY)
+
+        // Create a new MKMapRect with the desired aspect ratio and centered on the annotations
+        let newMapRect = MKMapRect(
+            x: center.x - desiredWidth / 2,
+            y: center.y - desiredHeight / 2,
+            width: desiredWidth,
+            height: desiredHeight
+        )
+        setVisibleMapRect(newMapRect, edgePadding: padding, animated: animated)
+    }
+
+    func calculateMapRect(points: [MKMapPoint], padding: UIEdgeInsets = .zero) -> MKMapRect {
+        var zoomRect: MKMapRect = .null
+        for point in points {
+            let pointRect = MKMapRect(x: point.x, y: point.y, width: 0, height: 0)
+            if zoomRect.isNull {
+                zoomRect = pointRect
+            } else {
+                zoomRect = zoomRect.union(pointRect)
+            }
+        }
+        return mapRectThatFits(zoomRect, edgePadding: padding)
+    }
+
+    func takeSnapShot(option: MKMapSnapshotter.Options, completion: @escaping (MKMapSnapshotter.Snapshot?) -> Void) {
+        let shotter = MKMapSnapshotter(options: option)
+        shotter.start(with: .global()) { shot, _ in
+            completion(shot)
+        }
+    }
+    
+    ///移动至多个点的位置,并提供设置padding距离
+    func moveToSuitableLocation(points: [CLLocationCoordinate2D], padding: ATMapPadding? = nil) {
+        // 检查是否有足够的点
+        guard points.count > 0 else {
+            print("Error: No points provided to calculate suitable location")
+            return
+        }
+        
+        // 1. 计算所有点的边界
+        var minLat = points[0].latitude
+        var maxLat = points[0].latitude
+        var minLng = points[0].longitude
+        var maxLng = points[0].longitude
+        
+        for point in points {
+            minLat = min(minLat, point.latitude)
+            maxLat = max(maxLat, point.latitude)
+            minLng = min(minLng, point.longitude)
+            maxLng = max(maxLng, point.longitude)
+        }
+        
+        // 2. 创建包含所有点的区域
+        let centerLat = (minLat + maxLat) / 2
+        let centerLng = (minLng + maxLng) / 2
+        let center = CLLocationCoordinate2D(latitude: centerLat, longitude: centerLng)
+        
+        // 计算区域跨度,添加一些额外空间
+        let spanLat = (maxLat - minLat) * 1.1  // 增加10%的边距
+        let spanLng = (maxLng - minLng) * 1.1
+        
+        // 确保跨度不为0且不过大
+        let safeSpanLat = max(min(spanLat, 100.0), 0.001)  // 设置合理的最大跨度
+        let safeSpanLng = max(min(spanLng, 100.0), 0.001)
+        
+        // 创建初始区域
+        let span = MKCoordinateSpan(latitudeDelta: safeSpanLat, longitudeDelta: safeSpanLng)
+        print("初始区域: center=\(center), span=\(span)")
+        
+        // 3. 创建区域并应用padding
+        var region = MKCoordinateRegion(center: center, span: span)
+        
+        // 应用padding(如果有)
+        if let padding = padding {
+            // 检查地图视图尺寸是否有效
+            let mapViewWidth = max(self.bounds.width, 1.0)  // 确保宽度至少为1
+            let mapViewHeight = max(self.bounds.height, 1.0)  // 确保高度至少为1
+            
+            // 基于地图视图尺寸和padding计算经纬度调整量
+            let latPadding = span.latitudeDelta * (padding.top + padding.bottom) / mapViewHeight
+            let lngPadding = span.longitudeDelta * (padding.left + padding.right) / mapViewWidth
+            
+            // 调整区域跨度以应用padding,并确保不会导致无穷大
+            region.span.latitudeDelta = min(region.span.latitudeDelta + latPadding, 180.0)
+            region.span.longitudeDelta = min(region.span.longitudeDelta + lngPadding, 360.0)
+            
+            print("应用padding后的区域: span=\(region.span)")
+        }
+        
+        // 4. 验证最终区域是否有效
+        if !isValidRegion(region) {
+            //print("无效区域,使用默认区域")
+            region = defaultRegion()
+        }
+        
+        print("最终使用的区域: \(region)")
+        
+        // 设置地图区域
+        self.setRegion(self.regionThatFits(region), animated: true)
+    }
+
+    // 辅助方法:检查区域是否有效
+    private func isValidRegion(_ region: MKCoordinateRegion) -> Bool {
+        let center = region.center
+        let span = region.span
+        
+        return !center.latitude.isNaN && !center.longitude.isNaN &&
+               !span.latitudeDelta.isNaN && !span.longitudeDelta.isNaN &&
+               !span.latitudeDelta.isInfinite && !span.longitudeDelta.isInfinite &&
+               isValidCoordinate(center) &&
+               span.latitudeDelta > 0 && span.latitudeDelta <= 180 &&
+               span.longitudeDelta > 0 && span.longitudeDelta <= 360
+    }
+
+    // 辅助方法:提供默认有效区域
+    private func defaultRegion() -> MKCoordinateRegion {
+        return MKCoordinateRegion(
+            center: CLLocationCoordinate2D(latitude: 37.7749, longitude: -122.4194),
+            span: MKCoordinateSpan(latitudeDelta: 0.1, longitudeDelta: 0.1)
+        )
+    }
+
+    // 辅助方法:检查坐标是否有效
+    private func isValidCoordinate(_ coordinate: CLLocationCoordinate2D) -> Bool {
+        return coordinate.latitude >= -90 && coordinate.latitude <= 90 &&
+               coordinate.longitude >= -180 && coordinate.longitude <= 180
+    }
+    
+    ///是否隐藏地图图标
+    func mapLogoVisible(isHiddenLogo : Bool) {
+        for subview in self.subviews {
+            if let logo = subview as? UIImageView,
+               logo.bounds.size.width <= 100,
+               logo.bounds.size.height <= 20 {
+                logo.isHidden = isHiddenLogo
+            }
+        }
+    }
+}

+ 32 - 0
plugins/map_amap_ios/ios/Classes/ExtensionTool/String+HandleTool.swift

@@ -0,0 +1,32 @@
+//
+//  String+HandleTool.swift
+//  map_amap_ios
+//
+//  Created by 诺诺诺的言 on 2025/7/22.
+//
+
+import Foundation
+
+extension String {
+    func width(withConstrainedHeight height: CGFloat, font: UIFont) -> CGFloat {
+        let constraintRect = CGSize(width: .greatestFiniteMagnitude, height: height)
+        let boundingBox = self.boundingRect(
+            with: constraintRect,
+            options: [.usesLineFragmentOrigin, .usesFontLeading],
+            attributes: [NSAttributedString.Key.font: font],
+            context: nil
+        )
+        return ceil(boundingBox.width)
+    }
+    
+    func height(withConstrainedWidth width: CGFloat, font: UIFont) -> CGFloat {
+        let constraintRect = CGSize(width: width, height: .greatestFiniteMagnitude)
+        let boundingBox = self.boundingRect(
+            with: constraintRect,
+            options: [.usesLineFragmentOrigin, .usesFontLeading],
+            attributes: [NSAttributedString.Key.font: font],
+            context: nil
+        )
+        return ceil(boundingBox.height)
+    }
+}

+ 382 - 0
plugins/map_amap_ios/ios/Classes/IndividualToolView/MapAmapMarkPictureLoadMananger.swift

@@ -0,0 +1,382 @@
+//
+//  MapAmapMarkPictureLoadMananger.swift
+//  map_amap_ios
+//
+//  Created by 诺诺诺的言 on 2025/7/22.
+//
+
+import Foundation
+import UIKit
+
+// 图片加载进度回调
+typealias ImageLoadingProgress = (Double) -> Void
+// 图片加载完成回调
+typealias ImageCompletion = (UIImage?, Error?) -> Void
+
+/// 头像样式
+enum AvatarStyle {
+    case circle          // 圆形
+    case rounded(radius: CGFloat)  // 圆角矩形
+}
+
+/// 图片加载工具类(含缓存功能,支持头像专用圆角处理)
+class MapAmapMarkPictureLoadMananger {
+    // 单例模式
+    static let shared = MapAmapMarkPictureLoadMananger()
+    
+    // 内存缓存(LRU策略)
+    private let memoryCache = NSCache<NSString, UIImage>()
+    // 磁盘缓存路径
+    private let diskCachePath: String
+    // 最大内存缓存大小(默认100MB)
+    private let maxMemoryCacheSize: Int64 = 100 * 1024 * 1024
+    // 最大磁盘缓存大小(默认200MB)
+    private let maxDiskCacheSize: Int64 = 200 * 1024 * 1024
+    
+    // 初始化
+    private init() {
+        // 创建磁盘缓存目录
+        let documentsPath = NSSearchPathForDirectoriesInDomains(.cachesDirectory, .userDomainMask, true)[0]
+        diskCachePath = "\(documentsPath)/ImageCache"
+        
+        // 配置内存缓存
+        memoryCache.countLimit = 100 // 最多缓存100张图片
+        memoryCache.totalCostLimit = Int(maxMemoryCacheSize)
+        
+        // 清理过期的磁盘缓存
+        cleanExpiredDiskCache()
+    }
+    
+    /// 加载头像图片(带缓存)
+    func loadAvatar(
+        from url: URL,
+        placeholder: UIImage? = nil,
+        style: AvatarStyle = .circle,
+        progress: ImageLoadingProgress? = nil,
+        completion: @escaping ImageCompletion
+    ) -> UIImage? {
+        // 生成缓存键(包含样式信息)
+        let cacheKey = generateAvatarCacheKey(url: url, style: style)
+        
+        // 先检查内存缓存
+        if let cachedImage = memoryCache.object(forKey: cacheKey) {
+            return cachedImage
+        }
+        
+        // 检查磁盘缓存
+        if let cachedImage = loadAvatarFromDiskCache(url: url, style: style) {
+            memoryCache.setObject(cachedImage, forKey: cacheKey)
+            return cachedImage
+        }
+        
+        // 显示占位图
+        completion(placeholder, nil)
+        return placeholder
+    }
+    
+    /// 异步加载头像图片(带进度监听)
+    func loadAvatarAsync(
+        from url: URL,
+        placeholder: UIImage? = nil,
+        style: AvatarStyle = .circle,
+        progress: ImageLoadingProgress? = nil,
+        completion: @escaping ImageCompletion
+    ) {
+        // 生成缓存键(包含样式信息)
+        let cacheKey = generateAvatarCacheKey(url: url, style: style)
+        
+        // 先检查内存缓存
+        if let cachedImage = memoryCache.object(forKey: cacheKey) {
+            DispatchQueue.main.async {
+                completion(cachedImage, nil)
+            }
+            return
+        }
+        
+        // 检查磁盘缓存
+        if let cachedImage = loadAvatarFromDiskCache(url: url, style: style) {
+            memoryCache.setObject(cachedImage, forKey: cacheKey)
+            DispatchQueue.main.async {
+                completion(cachedImage, nil)
+            }
+            return
+        }
+        
+        // 显示占位图
+        DispatchQueue.main.async {
+            completion(placeholder, nil)
+        }
+        
+        // 从网络加载图片
+        let task = URLSession.shared.dataTask(with: url) { [weak self] data, response, error in
+            guard let self = self,
+                  let data = data,
+                  error == nil,
+                  let response = response as? HTTPURLResponse,
+                  response.statusCode == 200,
+                  let image = UIImage(data: data) else {
+                DispatchQueue.main.async {
+                    completion(nil, error)
+                }
+                return
+            }
+            
+            // 应用头像样式处理
+            let processedImage = self.processAvatar(image: image, style: style)
+            
+            // 保存到缓存
+            self.saveAvatarToCache(image: processedImage, url: url, style: style)
+            
+            DispatchQueue.main.async {
+                completion(processedImage, nil)
+            }
+        }
+        
+        task.resume()
+    }
+    
+    /// 生成头像缓存键
+    private func generateAvatarCacheKey(url: URL, style: AvatarStyle) -> NSString {
+        let styleKey: String
+        switch style {
+        case .circle:
+            styleKey = "circle"
+        case .rounded(let radius):
+            styleKey = "rounded_\(radius)"
+        }
+        return "\(url.absoluteString)_\(styleKey)" as NSString
+    }
+    
+    /// 从磁盘缓存加载头像
+    private func loadAvatarFromDiskCache(url: URL, style: AvatarStyle) -> UIImage? {
+        let fileName = generateAvatarFileName(url: url, style: style)
+        let filePath = "\(diskCachePath)/\(fileName)"
+        
+        if let data = try? Data(contentsOf: URL(fileURLWithPath: filePath)) {
+            return UIImage(data: data)
+        }
+        
+        return nil
+    }
+    
+    /// 生成头像文件名
+    private func generateAvatarFileName(url: URL, style: AvatarStyle) -> String {
+        let baseFileName = url.lastPathComponent
+        let styleKey: String
+        
+        switch style {
+        case .circle:
+            styleKey = "avatar_circle"
+        case .rounded(let radius):
+            styleKey = "avatar_rounded_\(radius)"
+        }
+        
+        return "\(styleKey)_\(baseFileName)"
+    }
+    
+    /// 保存头像到缓存
+    private func saveAvatarToCache(image: UIImage, url: URL, style: AvatarStyle) {
+        // 保存到内存缓存
+        let cacheKey = generateAvatarCacheKey(url: url, style: style)
+        memoryCache.setObject(image, forKey: cacheKey)
+        
+        // 保存到磁盘缓存
+        DispatchQueue.global(qos: .background).async { [weak self] in
+            guard let self = self else { return }
+            
+            // 创建缓存目录(如果不存在)
+            if !FileManager.default.fileExists(atPath: self.diskCachePath) {
+                do {
+                    try FileManager.default.createDirectory(atPath: self.diskCachePath, withIntermediateDirectories: true)
+                } catch {
+                    return
+                }
+            }
+            
+            let fileName = self.generateAvatarFileName(url: url, style: style)
+            let filePath = "\(self.diskCachePath)/\(fileName)"
+            
+            // 压缩图片(JPEG格式,质量0.8)
+            if let data = image.jpegData(compressionQuality: 0.8) {
+                do {
+                    try data.write(to: URL(fileURLWithPath: filePath), options: .atomic)
+                    self.updateDiskCacheSize()
+                } catch {
+                    //print("保存头像到磁盘失败: \(error)")
+                }
+            }
+        }
+    }
+    
+    /// 处理头像样式
+    private func processAvatar(image: UIImage, style: AvatarStyle) -> UIImage {
+        // 优化:如果是圆形且图片已经是正方形,直接使用CoreImage滤镜
+        if case .circle = style, image.size.width == image.size.height {
+            return applyCircularFilter(image: image)
+        }
+        
+        // 否则使用传统绘图方式
+        return applyAvatarStyle(image: image, style: style)
+    }
+    
+    /// 应用圆形滤镜(性能优化)
+    private func applyCircularFilter(image: UIImage) -> UIImage {
+        guard let cgImage = image.cgImage,
+              let filter = CIFilter(name: "CICropToCircle") else {
+            return image
+        }
+        
+        let ciImage = CIImage(cgImage: cgImage)
+        filter.setValue(ciImage, forKey: kCIInputImageKey)
+        
+        if let outputImage = filter.outputImage,
+           let outputCGImage = CIContext().createCGImage(outputImage, from: outputImage.extent) {
+            return UIImage(cgImage: outputCGImage, scale: image.scale, orientation: image.imageOrientation)
+        }
+        
+        return image
+    }
+    
+    /// 应用头像样式(传统绘图方式)
+    private func applyAvatarStyle(image: UIImage, style: AvatarStyle) -> UIImage {
+        let size = image.size
+        let rect = CGRect(origin: .zero, size: size)
+        let cornerRadius: CGFloat
+        
+        switch style {
+        case .circle:
+            cornerRadius = min(size.width, size.height) / 2
+        case .rounded(let radius):
+            cornerRadius = radius
+        }
+        
+        UIGraphicsBeginImageContextWithOptions(size, false, image.scale)
+        defer { UIGraphicsEndImageContext() }
+        
+        let path = UIBezierPath(roundedRect: rect, cornerRadius: cornerRadius)
+        path.addClip()
+        
+        image.draw(in: rect)
+        
+        if let outputImage = UIGraphicsGetImageFromCurrentImageContext() {
+            return outputImage
+        }
+        
+        return image
+    }
+    
+    /// 更新磁盘缓存大小
+    private func updateDiskCacheSize() {
+        // 保持原有逻辑不变...
+        do {
+            let fileManager = FileManager.default
+            let cacheFiles = try fileManager.contentsOfDirectory(atPath: diskCachePath)
+            
+            var totalSize: Int64 = 0
+            for file in cacheFiles {
+                let filePath = "\(diskCachePath)/\(file)"
+                if let attributes = try? fileManager.attributesOfItem(atPath: filePath),
+                   let size = attributes[.size] as? Int64 {
+                    totalSize += size
+                }
+            }
+            
+            // 如果超过最大缓存大小,清理旧文件
+            if totalSize > maxDiskCacheSize {
+                cleanOldestDiskCacheFiles(untilSize: totalSize - maxDiskCacheSize)
+            }
+        } catch {
+            //print("更新磁盘缓存大小失败: \(error)")
+        }
+    }
+    
+    /// 清理最旧的磁盘缓存文件
+    private func cleanOldestDiskCacheFiles(untilSize: Int64) {
+        // 保持原有逻辑不变...
+        guard untilSize > 0 else { return }
+        
+        do {
+            let fileManager = FileManager.default
+            var files: [(path: String, date: Date)] = []
+            
+            // 获取所有缓存文件及其修改日期
+            for file in try fileManager.contentsOfDirectory(atPath: diskCachePath) {
+                let filePath = "\(diskCachePath)/\(file)"
+                if let attributes = try? fileManager.attributesOfItem(atPath: filePath),
+                   let date = attributes[.modificationDate] as? Date,
+                   let size = attributes[.size] as? Int64,
+                   size > 0 {
+                    files.append((path: filePath, date: date))
+                }
+            }
+            
+            // 按修改日期排序(最旧的在前)
+            files.sort { $0.date < $1.date }
+            
+            // 删除最旧的文件,直到达到目标大小
+            var removedSize: Int64 = 0
+            for file in files {
+                if removedSize >= untilSize { break }
+                
+                do {
+                    let attributes = try fileManager.attributesOfItem(atPath: file.path)
+                    if let size = attributes[.size] as? Int64 {
+                        try fileManager.removeItem(atPath: file.path)
+                        removedSize += size
+                    }
+                } catch {
+                    //print("删除缓存文件失败: \(error)")
+                }
+            }
+        } catch {
+            //print("清理磁盘缓存失败: \(error)")
+        }
+    }
+    
+    /// 清理过期的磁盘缓存
+    private func cleanExpiredDiskCache() {
+        // 保持原有逻辑不变...
+        // 这里可以添加清理逻辑,例如删除超过30天的缓存
+        let oneMonthAgo = Date().addingTimeInterval(-30 * 24 * 60 * 60)
+        
+        do {
+            let fileManager = FileManager.default
+            for file in try fileManager.contentsOfDirectory(atPath: diskCachePath) {
+                let filePath = "\(diskCachePath)/\(file)"
+                if let attributes = try? fileManager.attributesOfItem(atPath: filePath),
+                   let date = attributes[.modificationDate] as? Date,
+                   date < oneMonthAgo {
+                    try fileManager.removeItem(atPath: filePath)
+                }
+            }
+        } catch {
+            //print("清理过期缓存失败: \(error)")
+        }
+    }
+    
+    /// 清除所有缓存
+    func clearAllCache(completion: (() -> Void)? = nil) {
+        // 保持原有逻辑不变...
+        // 清除内存缓存
+        memoryCache.removeAllObjects()
+        
+        // 清除磁盘缓存
+        DispatchQueue.global(qos: .background).async { [weak self] in
+            guard let self = self else { return }
+            
+            do {
+                if FileManager.default.fileExists(atPath: self.diskCachePath) {
+                    try FileManager.default.removeItem(atPath: self.diskCachePath)
+                    // 重新创建空目录
+                    try FileManager.default.createDirectory(atPath: self.diskCachePath, withIntermediateDirectories: true)
+                }
+            } catch {
+                //print("清除磁盘缓存失败: \(error)")
+            }
+            
+            DispatchQueue.main.async {
+                completion?()
+            }
+        }
+    }
+}

+ 259 - 0
plugins/map_amap_ios/ios/Classes/IndividualToolView/MapAmapMarkerBatteryView.swift

@@ -0,0 +1,259 @@
+//
+//  MapAmapMarkerBatteryView.swift
+//  map_amap_ios
+//
+//  Created by 诺诺诺的言 on 2025/7/22.
+//
+
+import Foundation
+import UIKit
+
+class MapAmapMarkerBatteryView: UIView {
+    // 电池百分比 (0-100)
+    var percentage: Int = 100 {
+        didSet {
+            percentage = min(100, max(0, percentage))
+            setNeedsDisplay()
+        }
+    }
+    
+    // 电池颜色
+    var batteryColor: UIColor = {
+        if #available(iOS 13.0, *) {
+            return .systemGreen
+        } else {
+            return UIColor(red: 0.20, green: 0.78, blue: 0.35, alpha: 1.00)
+        }
+    }() {
+        didSet {
+            setNeedsDisplay()
+        }
+    }
+    
+    // 低电量颜色 (默认低于20%显示红色)
+    var lowBatteryColor: UIColor = {
+        if #available(iOS 13.0, *) {
+            return .systemRed
+        } else {
+            return UIColor(red: 1.00, green: 0.23, blue: 0.19, alpha: 1.00)
+        }
+    }()
+    var lowBatteryThreshold: Int = 20
+    
+    // 边框颜色
+    var borderColor: UIColor = {
+        if #available(iOS 13.0, *) {
+            return .label
+        } else {
+            return .black
+        }
+    }() {
+        didSet {
+            setNeedsDisplay()
+        }
+    }
+    
+    // 边框宽度
+    var borderWidth: CGFloat = 1.0 {
+        didSet {
+            setNeedsDisplay()
+        }
+    }
+    
+    // 内容与边框的间距
+    var contentPadding: CGFloat = 1.0 {
+        didSet {
+            setNeedsDisplay()
+        }
+    }
+    
+    // 电池头与电池身体的间距
+    var headSpacing: CGFloat = 1.0 {
+        didSet {
+            setNeedsDisplay()
+        }
+    }
+    
+    // 是否显示百分比文本
+    var showPercentageText: Bool = true {
+        didSet {
+            setNeedsDisplay()
+        }
+    }
+    
+    // 文本颜色
+    var textColor: UIColor = {
+        if #available(iOS 13.0, *) {
+            return .label
+        } else {
+            return .black
+        }
+    }() {
+        didSet {
+            setNeedsDisplay()
+        }
+    }
+    
+    // 文本字体
+    var textFont: UIFont = UIFont.systemFont(ofSize: 10) {
+        didSet {
+            setNeedsDisplay()
+        }
+    }
+    
+    // 文本与电池的间距
+    var textSpacing: CGFloat = 2 {
+        didSet {
+            setNeedsDisplay()
+        }
+    }
+    
+    // 边距设置
+    var horizontalPadding: CGFloat = 6 {
+        didSet {
+            setNeedsDisplay()
+        }
+    }
+    
+    var verticalPadding: CGFloat = 4 {
+        didSet {
+            setNeedsDisplay()
+        }
+    }
+    
+    // 电池尺寸
+    var batteryWidth: CGFloat = 10 {
+        didSet {
+            setNeedsDisplay()
+        }
+    }
+    
+    var batteryHeight: CGFloat = 7 {
+        didSet {
+            setNeedsDisplay()
+        }
+    }
+    
+    private let batteryCornerRadius: CGFloat = 1.0
+    private let batteryKnobWidth: CGFloat = 2.0
+    private let batteryKnobHeight: CGFloat = 3.0
+    private let batteryKnobCornerRadius: CGFloat = 0
+    
+    override init(frame: CGRect) {
+        super.init(frame: frame)
+        backgroundColor = .clear
+    }
+    
+    required init?(coder: NSCoder) {
+        super.init(coder: coder)
+        backgroundColor = .clear
+    }
+    
+    override func draw(_ rect: CGRect) {
+        super.draw(rect)
+        
+        // 先计算文本尺寸(如果需要显示文本)
+        var textSize = CGSize.zero
+        if showPercentageText {
+            let text = "\(percentage)%"
+            let textAttributes: [NSAttributedString.Key: Any] = [
+                .font: textFont,
+                .foregroundColor: textColor
+            ]
+            textSize = text.size(withAttributes: textAttributes)
+        }
+        
+        // 计算总内容宽度
+        let totalContentWidth = batteryWidth + batteryKnobWidth + headSpacing + (showPercentageText ? (textSpacing + textSize.width) : 0)
+        
+        // 计算起始X坐标(居中)
+        let startX = (rect.width - totalContentWidth) / 2
+        
+        // 电池主体区域
+        let batteryBodyRect = CGRect(
+            x: startX,
+            y: (rect.height - batteryHeight) / 2,
+            width: batteryWidth,
+            height: batteryHeight
+        )
+        
+        // 电池头区域
+        let batteryKnobRect = CGRect(
+            x: batteryBodyRect.maxX + headSpacing,
+            y: batteryBodyRect.midY - batteryKnobHeight / 2,
+            width: batteryKnobWidth,
+            height: batteryKnobHeight
+        )
+        
+        // 绘制电池主体
+        let batteryPath = UIBezierPath(
+            roundedRect: batteryBodyRect,
+            cornerRadius: batteryCornerRadius
+        )
+        batteryPath.lineWidth = borderWidth
+        
+        // 根据电量选择颜色
+        let fillColor = percentage <= lowBatteryThreshold ? lowBatteryColor : batteryColor
+        fillColor.setStroke()
+        batteryPath.stroke()
+        
+
+        // 绘制电池头
+        let knobPath = UIBezierPath(
+            roundedRect: batteryKnobRect,
+            cornerRadius: batteryKnobCornerRadius
+        )
+        fillColor.setFill()
+        knobPath.fill()
+        
+        // 计算电量填充区域(考虑内容间距)
+        let fillWidth = (batteryWidth - borderWidth - contentPadding * 2) * CGFloat(percentage) / 100
+        let fillRect = CGRect(
+            x: batteryBodyRect.origin.x + borderWidth / 2 + contentPadding,
+            y: batteryBodyRect.origin.y + borderWidth / 2 + contentPadding,
+            width: fillWidth,
+            height: batteryHeight - borderWidth - contentPadding * 2
+        )
+        
+
+        fillColor.setFill()
+        UIBezierPath(rect: fillRect).fill()
+        
+        // 绘制百分比文本(在电池右侧)
+        if showPercentageText {
+            let text = "\(percentage)%"
+            let textAttributes: [NSAttributedString.Key: Any] = [
+                .font: textFont,
+                .foregroundColor: fillColor
+            ]
+            
+            let textRect = CGRect(
+                x: batteryKnobRect.maxX + textSpacing,
+                y: rect.midY - textSize.height / 2,
+                width: textSize.width,
+                height: textSize.height
+            )
+            
+            text.draw(in: textRect, withAttributes: textAttributes)
+        }
+    }
+
+    override var intrinsicContentSize: CGSize {
+        var textWidth: CGFloat = 0
+        if showPercentageText {
+            textWidth = "100%".size(withAttributes: [.font: textFont]).width + textSpacing
+        }
+        
+        let totalWidth = batteryWidth + batteryKnobWidth + headSpacing + textWidth
+        let totalHeight = max(batteryHeight, batteryKnobHeight)
+        
+        let sumHeight = totalHeight + verticalPadding * 2
+        self.layer.cornerRadius = sumHeight / 2.0
+        self.layer.masksToBounds = true
+        print("totalheigdfdfji---\(totalHeight + verticalPadding * 2)");
+        return CGSize(
+            width: totalWidth + horizontalPadding * 2,
+            height: totalHeight + verticalPadding * 2
+        )
+    }
+}

+ 119 - 0
plugins/map_amap_ios/ios/Classes/IndividualToolView/MapAmapMarkerNameContentView.swift

@@ -0,0 +1,119 @@
+//
+//  MapAmapMarkerNameContentView.swift
+//  map_amap_ios
+//
+//  Created by 诺诺诺的言 on 2025/7/22.
+//
+
+import Foundation
+
+class MapAnnotationMarkerTextView: UIView {
+    // 常量定义
+    private static let bubbleHeight: CGFloat = 24
+    private static let triangleHeight: CGFloat = 6
+    private static let minWidth: CGFloat = 60
+    
+    static var height: CGFloat {
+        return bubbleHeight + triangleHeight
+    }
+
+    let text: String
+    private var labelView: UILabel!
+    private var backgroundView: UIView!
+    private var triangleLayer: CAShapeLayer!
+
+    init(text: String) {
+        self.text = text
+        super.init(frame: .zero)
+        setupViews()
+    }
+
+    required init?(coder: NSCoder) {
+        fatalError("init(coder:) has not been implemented")
+    }
+    
+    private func setupViews() {
+        createSubviews()
+        setupConstraints()
+    }
+    
+    private func createSubviews() {
+        // 创建胶囊形状背景视图
+        backgroundView = UIView()
+        backgroundView.backgroundColor = .white
+        backgroundView.layer.cornerRadius = 12  // 较大的圆角,实现胶囊形状
+        backgroundView.layer.masksToBounds = false
+        backgroundView.layer.shadowColor = UIColor.black.cgColor
+        backgroundView.layer.shadowOpacity = 0.2
+        backgroundView.layer.shadowOffset = CGSize(width: 0, height: 1)
+        backgroundView.layer.shadowRadius = 2
+        addSubview(backgroundView)
+        
+        // 创建标签视图(单行文本)
+        labelView = UILabel()
+        labelView.text = text
+        labelView.font = UIFont.systemFont(ofSize: 12, weight: .regular)
+        labelView.textColor = .black
+        labelView.backgroundColor = .clear
+        labelView.textAlignment = .center
+        labelView.lineBreakMode = .byTruncatingTail
+        labelView.numberOfLines = 1  // 限制为单行
+        backgroundView.addSubview(labelView)
+        
+        // 创建气泡三角形
+        triangleLayer = CAShapeLayer()
+        triangleLayer.fillColor = UIColor.white.cgColor
+        
+        let trianglePath = UIBezierPath()
+        trianglePath.move(to: CGPoint(x: 0, y: 0))    // 左点
+        trianglePath.addLine(to: CGPoint(x: 5, y: 6)) // 底点
+        trianglePath.addLine(to: CGPoint(x: 10, y: 0)) // 右点
+        trianglePath.close()
+        
+        triangleLayer.path = trianglePath.cgPath
+        layer.addSublayer(triangleLayer)
+    }
+    
+    private func setupConstraints() {
+        // 启用AutoLayout
+        translatesAutoresizingMaskIntoConstraints = false
+        backgroundView.translatesAutoresizingMaskIntoConstraints = false
+        labelView.translatesAutoresizingMaskIntoConstraints = false
+        
+        // 背景视图约束
+        NSLayoutConstraint.activate([
+            backgroundView.topAnchor.constraint(equalTo: topAnchor),
+            backgroundView.leadingAnchor.constraint(equalTo: leadingAnchor),
+            backgroundView.trailingAnchor.constraint(equalTo: trailingAnchor),
+            backgroundView.heightAnchor.constraint(equalToConstant: Self.bubbleHeight)
+        ])
+        
+        // 标签约束
+        NSLayoutConstraint.activate([
+            labelView.topAnchor.constraint(equalTo: backgroundView.topAnchor),
+            labelView.leadingAnchor.constraint(equalTo: backgroundView.leadingAnchor, constant: 8),
+            labelView.trailingAnchor.constraint(equalTo: backgroundView.trailingAnchor, constant: -8),
+            labelView.bottomAnchor.constraint(equalTo: backgroundView.bottomAnchor)
+        ])
+        
+        // 设置整个视图的高度(包含三角形)和最小宽度
+        NSLayoutConstraint.activate([
+            heightAnchor.constraint(equalToConstant: Self.height),
+            widthAnchor.constraint(greaterThanOrEqualToConstant: Self.minWidth)
+        ])
+        
+        layoutIfNeeded()
+        updateTrianglePosition()
+    }
+    
+    override func layoutSubviews() {
+        super.layoutSubviews()
+        updateTrianglePosition()
+    }
+    
+    private func updateTrianglePosition() {
+        // 更新三角形位置到底部中心
+        let width = bounds.width
+        triangleLayer.frame = CGRect(x: (width - 10) / 2, y: Self.bubbleHeight, width: 10, height: Self.triangleHeight)
+    }
+}

+ 222 - 0
plugins/map_amap_ios/ios/Classes/IndividualToolView/MapAmapMarkerNormalView.swift

@@ -0,0 +1,222 @@
+//
+//  MapAmapMarkerNormalView.swift
+//  map_amap_ios
+//
+//  Created by 诺诺诺的言 on 2025/7/22.
+//
+
+import Foundation
+import MapKit
+
+class MapAnnotationView: MKAnnotationView {
+    
+    static let identifier: String = "MapAnnotationView"
+
+    var marker: ATMapMarker? {
+        didSet {
+            updateView()
+        }
+    }
+    var markerImageView: MapAmapMarkerPictureView?
+    var textView: MapAnnotationMarkerTextView?
+    var batteryView : MapAmapMarkerBatteryView?
+    
+    // spacing between text and image
+    let spacing: CGFloat = 6
+    
+    var annotationSelected: Bool {
+        return (marker?.isSelected ?? false) || self.isSelected
+    }
+    
+    override init(annotation: MKAnnotation?, reuseIdentifier: String?) {
+        super.init(annotation: annotation, reuseIdentifier: reuseIdentifier)
+        self.marker = annotation as? ATMapMarker
+        self.isEnabled = marker?.markerType.supportSelected ?? false
+        self.isHidden = false
+    }
+
+    required init?(coder aDecoder: NSCoder) {
+        fatalError("init(coder:) has not been implemented")
+    }
+    
+    // MARK: - 视图更新与重用
+    
+    override func prepareForReuse() {
+        super.prepareForReuse()
+        // 清除当前所有子视图
+        for subview in subviews {
+            subview.removeFromSuperview()
+        }
+        markerImageView = nil
+        textView = nil
+    }
+    
+    private func updateView() {
+        // 确保在更新视图前移除所有子视图
+        for subview in subviews {
+            subview.removeFromSuperview()
+        }
+        
+        guard let marker = marker else { return }
+        
+        // 创建并添加图像视图
+        markerImageView = MapAmapMarkerPictureView(markerType: marker.markerType)
+        if let url = marker.customAvatarUrl, !url.isEmpty {
+            markerImageView?.loadNetworkImage(imageUrl: url)
+        }
+        if let markerImageView = markerImageView {
+            markerImageView.isSelected = annotationSelected
+            addSubview(markerImageView)
+        }
+        
+        ///取出判断有没有用户的电池电量
+        let tags = marker.tags
+        if let electricValue = tags?["electric"],
+           let batteryPercentage = Int(electricValue),
+           batteryPercentage > 0 {
+            batteryView = MapAmapMarkerBatteryView()
+            batteryView?.backgroundColor = UIColor(hex:"#FFFFFF")
+            batteryView?.frame = CGRect(x: 0, y: 0, width: 53, height: 20)
+            batteryView?.borderWidth = 1.0
+            batteryView?.contentPadding = 0.5
+            batteryView?.headSpacing = 1.0
+            batteryView?.batteryColor = UIColor(hex: "#4476FF") ?? UIColor.blue
+            batteryView?.lowBatteryColor = UIColor(hex: "#FF5249") ?? UIColor.red
+            batteryView?.lowBatteryThreshold = 30
+            batteryView?.showPercentageText = true
+            batteryView?.textFont = UIFont.boldSystemFont(ofSize: 10)
+            batteryView?.textColor = UIColor(hex: "#666666") ?? UIColor.black
+            batteryView?.layer.cornerRadius = 10
+            batteryView?.layer.masksToBounds = true
+            addSubview(batteryView ?? MapAmapMarkerBatteryView())
+            batteryView?.percentage = batteryPercentage
+        } else {
+            // 如果有标题,添加文本视图
+            if let markerName = marker.markerName, !markerName.isEmpty {
+                textView = MapAnnotationMarkerTextView(text: markerName)
+                if let textView = textView {
+                    addSubview(textView)
+                }
+            }
+        }
+        
+        // 设置AutoLayout
+        setupConstraints()
+    }
+    
+    // MARK: - 布局
+    
+    private func setupConstraints() {
+        // 禁用自动约束转换
+        translatesAutoresizingMaskIntoConstraints = false
+        
+        guard let markerImageView = markerImageView else { return }
+        markerImageView.translatesAutoresizingMaskIntoConstraints = false
+        
+        var markerSize = marker?.markerType.size ?? CGSize(width: 30, height: 30)
+        if let url = marker?.customAvatarUrl, !url.isEmpty {
+            markerSize = CGSize(width: 52, height: 52)
+            markerImageView.layer.cornerRadius = 52 / 2
+            markerImageView.layer.masksToBounds = true // 确保超出部分被裁剪
+        }
+        
+        // 设置图像视图约束 - 居中显示在标记视图中
+        NSLayoutConstraint.activate([
+            markerImageView.centerXAnchor.constraint(equalTo: centerXAnchor),
+            markerImageView.centerYAnchor.constraint(equalTo: centerYAnchor),
+            markerImageView.widthAnchor.constraint(equalToConstant: markerSize.width),
+            markerImageView.heightAnchor.constraint(equalToConstant: markerSize.height)
+        ])
+        
+        // 设置文本视图约束 - 位于图像上方,居中对齐
+        if let textView = textView {
+            textView.translatesAutoresizingMaskIntoConstraints = false
+            NSLayoutConstraint.activate([
+                textView.centerXAnchor.constraint(equalTo: centerXAnchor),
+                textView.bottomAnchor.constraint(equalTo: markerImageView.topAnchor, constant: -spacing)
+            ])
+        }
+        
+        ///电池电量
+        if let batteryView = batteryView {
+            batteryView.translatesAutoresizingMaskIntoConstraints = false
+            NSLayoutConstraint.activate([
+                batteryView.centerXAnchor.constraint(equalTo: centerXAnchor),
+                batteryView.bottomAnchor.constraint(equalTo: markerImageView.topAnchor, constant: -spacing)
+            ])
+        }
+
+        // 设置标记视图整体尺寸
+        var textHeight = textView?.intrinsicContentSize.height ?? 0
+        var totalHeight = textView != nil ?
+            markerSize.height + textHeight + spacing :
+            markerSize.height
+        
+        if let batteryView = batteryView  {
+            textHeight = batteryView.intrinsicContentSize.height
+            totalHeight = markerSize.height + textHeight + spacing
+        }
+        
+        // 宽度至少和markerImageView一样宽,高度根据是否有文本决定
+        NSLayoutConstraint.activate([
+            widthAnchor.constraint(greaterThanOrEqualTo: markerImageView.widthAnchor),
+            heightAnchor.constraint(equalToConstant: totalHeight)
+        ])
+        
+        // 更新偏移量
+        updateCenterOffset()
+    }
+    
+    // MARK: - 更新视图
+    
+    override func layoutSubviews() {
+        super.layoutSubviews()
+        updateCenterOffset()
+    }
+    
+    private func updateCenterOffset() {
+        let markerSize = marker?.markerType.size ?? CGSize(width: 30, height: 30)
+        
+        if let textView = textView {
+            let textHeight = textView.frame.height
+            let totalHeight = markerSize.height + textHeight + spacing
+            
+            // 有文本时,调整偏移让图片底部对准坐标点
+            centerOffset = CGPoint(x: 0, y: -(totalHeight - markerSize.height)/2)
+        }  else if let batteryView = batteryView {
+            let textHeight = batteryView.frame.height
+            let totalHeight = markerSize.height + textHeight + spacing
+            // 有文本时,调整偏移让图片底部对准坐标点
+            centerOffset = CGPoint(x: 0, y: -(totalHeight - markerSize.height)/2)
+        }  else {
+            // 没有文本时,仅需要将图片底部对准坐标点
+            centerOffset = CGPoint(x: 0, y: -markerSize.height/2)
+        }
+    }
+    
+    override func prepareForDisplay() {
+        super.prepareForDisplay()
+        // 确保视图已经设置好
+        if markerImageView == nil {
+            updateView()
+        }
+        // 更新选中状态
+        guard let marker = marker,
+              let url = marker.customAvatarUrl,
+              !url.isEmpty else {
+            markerImageView?.isSelected = annotationSelected
+            return
+        }
+    }
+
+    override func setSelected(_ selected: Bool, animated: Bool) {
+        super.setSelected(selected, animated: animated)
+        marker?.isSelected = selected
+        guard let marker = marker,
+              let url = marker.customAvatarUrl,
+              !url.isEmpty else {
+            markerImageView?.isSelected = annotationSelected
+            return
+        }
+    }
+}

+ 79 - 0
plugins/map_amap_ios/ios/Classes/IndividualToolView/MapAmapMarkerPictureView.swift

@@ -0,0 +1,79 @@
+//
+//  MapAmapMarkerPictureView.swift
+//  map_amap_ios
+//
+//  Created by 诺诺诺的言 on 2025/7/22.
+//
+
+import Foundation
+
+class MapAmapMarkerPictureView: UIView {
+    let markerType: any MapMarkerSupportType
+    var isSelected: Bool = false {
+        didSet {
+            if oldValue != isSelected {
+                updateImage()
+            }
+        }
+    }
+
+    private let imageView = UIImageView()
+
+    init(markerType: any MapMarkerSupportType) {
+        self.markerType = markerType
+        super.init(frame: .zero)
+        setupImageView()
+    }
+
+    required init?(coder: NSCoder) {
+        fatalError("init(coder:) has not been implemented")
+    }
+
+    private func setupImageView() {
+        imageView.contentMode = .scaleAspectFit
+        imageView.translatesAutoresizingMaskIntoConstraints = false
+        addSubview(imageView)
+        
+        NSLayoutConstraint.activate([
+            imageView.topAnchor.constraint(equalTo: topAnchor),
+            imageView.bottomAnchor.constraint(equalTo: bottomAnchor),
+            imageView.leadingAnchor.constraint(equalTo: leadingAnchor),
+            imageView.trailingAnchor.constraint(equalTo: trailingAnchor)
+        ])
+        
+        updateImage()
+    }
+    
+    private func updateImage() {
+        imageView.image = uiImage
+    }
+
+    private var uiImage: UIImage? {
+        let imageName = markerType.imageName(selected: isSelected)
+        
+        if let image = UIImage(named: imageName) {
+            return image
+        }
+        
+        // 尝试从插件资源束加载
+        let bundleURL = Bundle(for: MapAnnotationView.self).url(forResource: "map_mapkit_ios_resources", withExtension: "bundle")
+        if let bundleURL = bundleURL, let resourceBundle = Bundle(url: bundleURL) {
+            return UIImage(named: imageName, in: resourceBundle, compatibleWith: nil)
+        }
+        
+        return nil
+    }
+    
+    ///加载网络图片
+    public func loadNetworkImage(imageUrl : String) {
+        // 异步加载图片
+        MapAmapMarkPictureLoadMananger.shared.loadAvatarAsync(
+            from: URL(string: imageUrl)!,
+            style: .circle
+        ) { image, error in
+            if let image = image {
+                self.imageView.image = image
+            }
+        }
+    }
+}

+ 122 - 0
plugins/map_amap_ios/ios/Classes/IndividualToolView/MapAmapMarkerWriterCenterView.swift

@@ -0,0 +1,122 @@
+//
+//  MapAmapMarkerWriterCenterView.swift
+//  map_amap_ios
+//
+//  Created by 诺诺诺的言 on 2025/7/22.
+//
+
+import Foundation
+import MapKit
+
+class MapAnnotationAnchorPointView: MKAnnotationView {
+    
+    static let identifier: String = "MapAnnotationAnchorPointView"
+
+    var marker: ATMapMarker? {
+        didSet {
+            updateView()
+        }
+    }
+
+    var centerContentView: UIView?
+    
+
+    override init(annotation: MKAnnotation?, reuseIdentifier: String?) {
+        super.init(annotation: annotation, reuseIdentifier: reuseIdentifier)
+        self.backgroundColor = UIColor.purple
+        self.marker = annotation as? ATMapMarker
+//        self.isEnabled = marker?.markerType.supportSelected ?? false
+//        self.isHidden = false
+    }
+
+    required init?(coder aDecoder: NSCoder) {
+        fatalError("init(coder:) has not been implemented")
+    }
+    
+    // MARK: - 视图更新与重用
+    
+    override func prepareForReuse() {
+        super.prepareForReuse()
+        // 清除当前所有子视图
+        for subview in subviews {
+            subview.removeFromSuperview()
+        }
+    }
+    
+    private func updateView() {
+        // 确保在更新视图前移除所有子视图
+        for subview in subviews {
+            subview.removeFromSuperview()
+        }
+        
+        
+        guard marker != nil else { return }
+        
+        let supContentView = UIView();
+        supContentView.frame = CGRect(x: 0, y: 0, width: 30, height: 30)
+        supContentView.backgroundColor = UIColor.clear
+        addSubview(supContentView)
+        
+        if (marker?.markerType.isTracePassing ?? false) {
+            let whiteView = UIView(frame: CGRect(x: 0, y: 0, width: 18, height: 18))
+            whiteView.center = supContentView.center;
+            whiteView.backgroundColor = UIColor.white
+            whiteView.layer.cornerRadius = 9
+            whiteView.layer.masksToBounds = true
+            supContentView.addSubview(whiteView)
+            //supContentView.addSubview(whiteView)
+            
+            centerContentView = UIView();
+            centerContentView?.frame = CGRect(x: 2, y: 2, width: 14, height: 14)
+            centerContentView?.backgroundColor = UIColor(hex: "#15CBA1") //UIColor(hex: "#15CBA1")
+            centerContentView?.layer.cornerRadius = 7
+            centerContentView?.layer.masksToBounds = true // 裁剪超出圆角部分的内容
+            whiteView.addSubview(centerContentView ?? UIView())
+        } else {
+            let errorImage = UIImageView(frame: supContentView.bounds)
+            errorImage.contentMode = .scaleAspectFit
+            errorImage.image = readImageContentFrom(imageName: "com.shishi.dingwei_location_error.png")
+            //errorImage.translatesAutoresizingMaskIntoConstraints = false
+            supContentView.addSubview(errorImage)
+        }
+        
+        supContentView.translatesAutoresizingMaskIntoConstraints = false
+        NSLayoutConstraint.activate([
+            supContentView.centerXAnchor.constraint(equalTo: centerXAnchor),
+            supContentView.centerYAnchor.constraint(equalTo: centerYAnchor),
+            supContentView.widthAnchor.constraint(equalToConstant: 30),
+            supContentView.heightAnchor.constraint(equalToConstant: 30)
+        ])
+    }
+    
+    
+    private func readImageContentFrom(imageName : String) -> UIImage {
+        if let image = UIImage(named: imageName) {
+            return image
+        }
+        
+        // 尝试从插件资源束加载
+        let bundleURL = Bundle(for: MapAnnotationView.self).url(forResource: "map_mapkit_ios_resources", withExtension: "bundle")
+        if let bundleURL = bundleURL, let resourceBundle = Bundle(url: bundleURL) {
+            return UIImage(named: imageName, in: resourceBundle, compatibleWith: nil) ?? UIImage()
+        }
+        
+        return  UIImage()
+    }
+    
+    
+    // MARK: - 更新视图
+    
+    override func layoutSubviews() {
+        super.layoutSubviews()
+        print("layoutSubviewssfsfsdf----");
+        updateCenterOffset()
+    }
+    
+    private func updateCenterOffset() {
+        let markerSize = CGSize(width: 30, height: 30)
+        // 没有文本时,仅需要将图片底部对准坐标点
+        centerOffset = CGPoint(x: 0, y: -markerSize.height/2)
+    }
+    
+}

+ 242 - 0
plugins/map_amap_ios/ios/Classes/IndividualToolView/MapAmapPopUpWindowView.swift

@@ -0,0 +1,242 @@
+//
+//  MapAmapPopUpWindowView.swift
+//  map_amap_ios
+//
+//  Created by 诺诺诺的言 on 2025/7/22.
+//
+
+import Foundation
+import MapKit
+
+
+class MapAmapPopUpWindowView : MKAnnotationView {
+    
+    static let identifier: String = "MapAnotationBubbleView"
+
+    var marker: ATMapMarker? {
+        didSet {
+            updateView()
+        }
+    }
+    
+    private var allContentView : UIView!
+    private var markerContentView : UIView!
+    private var bgImageView : UIImageView!
+    
+    private var titleLabelView: UILabel!
+    private var bottomView : UIView!
+    private var triangleLayer: CAShapeLayer!
+    
+    private var bubbleHeight: CGFloat = 24
+    private var triangleHeight: CGFloat = 6
+    
+    // spacing between text and image
+    let spacing: CGFloat = 6
+    
+    var annotationSelected: Bool {
+        return (marker?.isSelected ?? false) || self.isSelected
+    }
+    
+    override init(annotation: MKAnnotation?, reuseIdentifier: String?) {
+        super.init(annotation: annotation, reuseIdentifier: reuseIdentifier)
+        self.marker = annotation as? ATMapMarker
+        self.isEnabled = marker?.markerType.supportSelected ?? false
+        self.isHidden = false
+    }
+
+    required init?(coder aDecoder: NSCoder) {
+        fatalError("init(coder:) has not been implemented")
+    }
+    
+    // MARK: - 视图更新与重用
+    
+    override func prepareForReuse() {
+        super.prepareForReuse()
+        // 清除当前所有子视图
+        for subview in subviews {
+            subview.removeFromSuperview()
+        }
+        markerContentView = nil
+        markerContentView = nil
+    }
+    
+    private func updateView() {
+        // 确保在更新视图前移除所有子视图
+        for subview in subviews {
+            subview.removeFromSuperview()
+        }
+        
+        guard let marker = marker else { return }
+        
+        let tags = marker.tags
+        let mainTiel : String =  tags?["title"] ?? "";
+        let mainDesc : String = tags?["desc"] ?? "";
+        
+        let markerContentViewW = 170
+        
+        markerContentView = UIView()
+        markerContentView.backgroundColor = UIColor(hex: "#FFFFFF")
+        markerContentView.layer.cornerRadius = 12
+        markerContentView.layer.masksToBounds = true
+        markerContentView.layer.shadowColor = UIColor(red: 0, green: 0, blue: 0, alpha: 0.08).cgColor
+        markerContentView.layer.shadowOpacity = 1
+        markerContentView.layer.shadowRadius = 4
+        markerContentView.layer.shadowOffset = CGSize(width: 0, height: 4)
+        addSubview(markerContentView)
+        
+        
+        titleLabelView = UILabel()
+        titleLabelView.translatesAutoresizingMaskIntoConstraints = false // 关键
+        titleLabelView.text = mainTiel
+        titleLabelView.font = UIFont.systemFont(ofSize: 10, weight: .bold)
+        titleLabelView.textColor = UIColor(hex: "#333333")
+        titleLabelView.backgroundColor = .clear
+        titleLabelView.textAlignment = .left
+        titleLabelView.numberOfLines = 0
+        markerContentView.addSubview(titleLabelView)
+        
+        bottomView = UIView()
+        bottomView.translatesAutoresizingMaskIntoConstraints = false // 关键
+        markerContentView.addSubview(bottomView)
+    
+        let mapIconView = UIImageView(frame: CGRect(x: 0, y: 0, width: 12, height: 12))
+        mapIconView.image = readImageContentFrom(imageName: "com.shishi.dingwei_map_pin.png")
+        mapIconView.contentMode = .scaleAspectFit
+        bottomView.addSubview(mapIconView)
+            
+        
+        let mapLableW = markerContentViewW - 16 - 14
+        let mapLable = UILabel(frame: CGRect(x: 14, y: 0, width: mapLableW, height: 14))
+        mapLable.text = mainDesc
+        mapLable.font = UIFont.systemFont(ofSize: 10, weight: .regular)
+        mapLable.textColor = UIColor(hex: "#666666")
+        mapLable.backgroundColor = .clear
+        mapLable.textAlignment = .left
+        mapLable.lineBreakMode = .byTruncatingTail
+        mapLable.numberOfLines = 1  // 限制为单行
+        bottomView.addSubview(mapLable)
+        
+        
+        // 创建气泡三角形
+        triangleLayer = CAShapeLayer()
+        triangleLayer.fillColor = UIColor.white.cgColor
+        
+        let trianglePath = UIBezierPath()
+        trianglePath.move(to: CGPoint(x: 0, y: 0))    // 左点
+        trianglePath.addLine(to: CGPoint(x: 5, y: 6)) // 底点
+        trianglePath.addLine(to: CGPoint(x: 10, y: 0)) // 右点
+        trianglePath.close()
+        
+        triangleLayer.path = trianglePath.cgPath
+        layer.addSublayer(triangleLayer)
+        
+        // 设置AutoLayout
+        setupConstraints()
+    }
+    
+    // MARK: - 布局
+    
+    private func setupConstraints() {
+        // 禁用自动约束转换
+        translatesAutoresizingMaskIntoConstraints = false
+        
+        
+        guard let marker = marker else { return }
+        
+        let tags = marker.tags
+        let mainTiel : String = tags?["title"] ?? "";
+        
+        let markerContentViewW : CGFloat = 170
+        let mainTitleH : CGFloat = mainTiel.height(withConstrainedWidth: CGFloat(markerContentViewW - 16), font: UIFont.systemFont(ofSize: 10, weight: .bold))
+        let markerContentViewH : CGFloat = CGFloat(mainTitleH) + 8 + 14 + 5 + 8
+        bubbleHeight = markerContentViewH;
+        //let markerSize = CGSize(width: markerContentViewW, height: markerContentViewH)
+                
+        
+        // 设置图像视图约束 - 居中显示在标记视图中
+        guard let markerContentView = markerContentView else { return }
+        markerContentView.translatesAutoresizingMaskIntoConstraints = false
+        NSLayoutConstraint.activate([
+            markerContentView.centerXAnchor.constraint(equalTo: centerXAnchor),
+            markerContentView.centerYAnchor.constraint(equalTo: centerYAnchor),
+            markerContentView.widthAnchor.constraint(equalToConstant: markerContentViewW),
+            markerContentView.heightAnchor.constraint(equalToConstant: markerContentViewH)
+        ])
+        
+        // 标题(动态高度)
+        NSLayoutConstraint.activate([
+            titleLabelView.topAnchor.constraint(equalTo: markerContentView.topAnchor, constant: 8),
+            titleLabelView.leadingAnchor.constraint(equalTo: markerContentView.leadingAnchor, constant: 8),
+            titleLabelView.trailingAnchor.constraint(equalTo: markerContentView.trailingAnchor, constant: -8),
+            titleLabelView.heightAnchor.constraint(equalToConstant: mainTitleH)
+            // 移除固定高度约束,让标题根据内容自动调整
+        ])
+
+        // 底部区域(动态高度)
+        NSLayoutConstraint.activate([
+            bottomView.topAnchor.constraint(equalTo: titleLabelView.bottomAnchor, constant: 5),
+            bottomView.leadingAnchor.constraint(equalTo: markerContentView.leadingAnchor, constant: 8),
+            bottomView.trailingAnchor.constraint(equalTo: markerContentView.trailingAnchor, constant: -8),
+            bottomView.bottomAnchor.constraint(equalTo: markerContentView.bottomAnchor, constant: -8)
+            // 移除固定高度约束,让底部视图根据内容自动调整
+        ])
+        
+        // 设置整个视图的高度(包含三角形)和最小宽度
+        NSLayoutConstraint.activate([
+            heightAnchor.constraint(equalToConstant: bubbleHeight + 6),
+            widthAnchor.constraint(greaterThanOrEqualToConstant: markerContentViewW)
+        ])
+        
+        layoutIfNeeded()
+        updateTrianglePosition()
+    
+        // 更新偏移量
+        //updateCenterOffset()
+    }
+    
+    private func readImageContentFrom(imageName : String) -> UIImage {
+        if let image = UIImage(named: imageName) {
+            return image
+        }
+        
+        // 尝试从插件资源束加载
+        let bundleURL = Bundle(for: MapAnnotationView.self).url(forResource: "map_mapkit_ios_resources", withExtension: "bundle")
+        if let bundleURL = bundleURL, let resourceBundle = Bundle(url: bundleURL) {
+            return UIImage(named: imageName, in: resourceBundle, compatibleWith: nil) ?? UIImage()
+        }
+        
+        return  UIImage()
+    }
+    
+    
+    // MARK: - 更新视图
+    
+    private func updateCenterOffset() {
+        let markerSize = CGSize(width: bubbleHeight + 6, height: 30)
+        
+        // 没有文本时,仅需要将图片底部对准坐标点
+        centerOffset = CGPoint(x: 0, y: -markerSize.height/2)
+    }
+    
+    override func prepareForDisplay() {
+        super.prepareForDisplay()
+        // 确保视图已经设置好
+    }
+
+    override func setSelected(_ selected: Bool, animated: Bool) {
+        super.setSelected(selected, animated: animated)
+    }
+    
+    
+    override func layoutSubviews() {
+        super.layoutSubviews()
+        updateTrianglePosition()
+        updateCenterOffset()
+    }
+    
+    private func updateTrianglePosition() {
+        // 更新三角形位置到底部中心
+        let width = bounds.width
+        triangleLayer.frame = CGRect(x: (width - 10) / 2, y: bubbleHeight + 3, width: 10, height: triangleHeight)
+    }
+}

+ 15 - 0
plugins/map_amap_ios/ios/Classes/MapAmapConfigManager.swift

@@ -0,0 +1,15 @@
+//
+//  MapAmapConfigManager.swift
+//  map_amap_ios
+//
+//  Created by 诺诺诺的言 on 2025/7/22.
+//
+
+import Foundation
+import AMapFoundationKit
+
+@objc public class MapAmapConfigManager: NSObject {
+    @objc public static func setupMapKey(_ key: String) {
+        AMapServices.shared()?.apiKey = key
+    }
+}

+ 133 - 0
plugins/map_amap_ios/ios/Classes/MapAmapContentView/MapAmapArrowPolylineRenderer.swift

@@ -0,0 +1,133 @@
+//
+//  MapAmapArrowPolylineRenderer.swift
+//  map_amap_ios
+//
+//  Created by 诺诺诺的言 on 2025/7/22.
+//
+
+import Foundation
+import MapKit
+
+class MapAmapArrowPolylineRenderer: MKPolylineRenderer {
+    // 箭头属性
+    var arrowColor: UIColor = .red
+    var arrowSize: CGFloat = 8
+    var arrowSpacing: CGFloat = 30
+    
+    // 边框属性
+    var borderWidth: CGFloat = 0 {
+        didSet {
+            invalidatePath()
+        }
+    }
+    
+    var borderColor: UIColor = .clear {
+        didSet {
+            invalidatePath()
+        }
+    }
+    
+    override func draw(_ mapRect: MKMapRect, zoomScale: MKZoomScale, in context: CGContext) {
+         // 1. 绘制边框(如果启用)
+         if borderWidth > 0 {
+             context.saveGState()
+             
+             // 设置边框样式
+             context.setLineWidth(lineWidth + borderWidth * 2)
+             context.setStrokeColor(borderColor.cgColor)
+             context.setLineCap(lineCap)
+             context.setLineJoin(lineJoin)
+             
+             // 创建路径并描边
+             let path = createPath(for: polyline, in: mapRect, zoomScale: zoomScale)
+             context.addPath(path)
+             context.strokePath()
+             
+             context.restoreGState()
+         }
+         
+         // 2. 绘制主线条
+         super.draw(mapRect, zoomScale: zoomScale, in: context)
+         
+         // 3. 绘制箭头
+         drawArrows(mapRect: mapRect, zoomScale: zoomScale, in: context)
+     }
+    
+    
+    private func createPath(for polyline: MKPolyline, in mapRect: MKMapRect, zoomScale: MKZoomScale) -> CGPath {
+        let path = CGMutablePath()
+        let points = polyline.points()
+        
+        // 添加第一个点
+        let firstPoint = self.point(for: points[0])
+        path.move(to: firstPoint)
+        
+        // 添加剩余点
+        for i in 1..<polyline.pointCount {
+            let point = self.point(for: points[i])
+            path.addLine(to: point)
+        }
+        
+        return path
+    }
+    
+    private func drawArrows(mapRect: MKMapRect, zoomScale: MKZoomScale, in context: CGContext) {
+        guard polyline.pointCount >= 2 else { return }
+        
+        let scaledArrowSize = arrowSize / zoomScale
+        let scaledArrowSpacing = arrowSpacing / zoomScale
+        
+        var distance: CGFloat = 0
+        let points = polyline.points()
+        
+        for i in 0..<polyline.pointCount-1 {
+            let startPoint = point(for: points[i])
+            let endPoint = point(for: points[i+1])
+            
+            let dx = endPoint.x - startPoint.x
+            let dy = endPoint.y - startPoint.y
+            let segmentLength = hypot(dx, dy)
+            
+            guard segmentLength > 2 / zoomScale else { continue }
+            
+            let arrowCount = Int(floor((distance + segmentLength) / scaledArrowSpacing))
+            
+            for j in 0..<arrowCount {
+                let position = CGFloat(j) * scaledArrowSpacing - distance
+                let ratio = position / segmentLength
+                
+                guard ratio >= 0 && ratio <= 1 else { continue }
+                
+                let arrowPoint = CGPoint(
+                    x: startPoint.x + dx * ratio,
+                    y: startPoint.y + dy * ratio
+                )
+                
+                let angle = atan2(dy, dx)
+                drawSingleArrow(at: arrowPoint, angle: angle, size: scaledArrowSize, in: context)
+            }
+            
+            distance = (distance + segmentLength).truncatingRemainder(dividingBy: scaledArrowSpacing)
+        }
+    }
+    
+    private func drawSingleArrow(at point: CGPoint, angle: CGFloat, size: CGFloat, in context: CGContext) {
+        context.saveGState()
+        context.translateBy(x: point.x, y: point.y)
+        context.rotate(by: angle)
+        
+        let arrowPath = UIBezierPath()
+        arrowPath.move(to: CGPoint(x: 3.2, y: 0))
+        arrowPath.addLine(to: CGPoint(x: 0, y: 2.6))
+        arrowPath.addLine(to: CGPoint(x: -3.2, y: 2.6))
+        arrowPath.addLine(to: CGPoint(x: 0, y: 0))
+        arrowPath.addLine(to: CGPoint(x: -3.2, y: -2.6))
+        arrowPath.addLine(to: CGPoint(x: 0, y: -2.6))
+        arrowPath.close()
+        
+        context.setFillColor(arrowColor.cgColor)
+        context.addPath(arrowPath.cgPath)
+        context.fillPath()
+        context.restoreGState()
+    }
+}

+ 80 - 0
plugins/map_amap_ios/ios/Classes/MapAmapContentView/MapAmapShowContentMapView.swift

@@ -0,0 +1,80 @@
+//
+//  MapAmapShowContentMapView.swift
+//  map_amap_ios
+//
+//  Created by 诺诺诺的言 on 2025/7/22.
+//
+
+import UIKit
+import SwiftUI
+import Flutter
+
+@available(iOS 13.0, *)
+class MapFlutterViewFactory: NSObject, FlutterPlatformViewFactory {
+    private var messenger: FlutterBinaryMessenger
+
+    init(messenger: FlutterBinaryMessenger) {
+        self.messenger = messenger
+    }
+
+    func create(withFrame frame: CGRect, viewIdentifier viewId: Int64, arguments args: Any?) -> FlutterPlatformView {
+        return MapAmapShowContentMapView(withFrame: frame, viewIdentifier: viewId, arguments: args, binaryMessenger: messenger)
+    }
+
+    func createArgsCodec() -> FlutterMessageCodec & NSObjectProtocol {
+        return FlutterStandardMessageCodec.sharedInstance()
+    }
+}
+
+@available(iOS 13.0, *)
+class MapAmapShowContentMapView: NSObject, FlutterPlatformView {
+
+    var contentView: UIView
+
+    var methodChannel: FlutterMethodChannel
+    
+    var viewModel: MapAmapViewAndDataExchange = .init()
+
+    init(withFrame frame: CGRect, viewIdentifier viewId: Int64, arguments args: Any?, binaryMessenger messenger: FlutterBinaryMessenger) {
+        contentView = UIView()
+        methodChannel = FlutterMethodChannel(name: MapAmapViewOnlyKeyword.mapViewMethodChannelName + "\(viewId)", binaryMessenger: messenger)
+        super.init()
+        createMapView()
+        setupMethodChannel()
+    }
+
+    func view() -> UIView {
+        return contentView
+    }
+
+    func createMapView() {
+        let keyWindows = (UIApplication.shared.connectedScenes.first as? UIWindowScene)?.windows.first(where: { $0.isKeyWindow })
+        let topController = keyWindows?.rootViewController
+        
+        viewModel.methodChannel = methodChannel
+        let vc = MapAmapThemeControl(viewModel: viewModel)
+        let mapView = vc.view!
+        mapView.translatesAutoresizingMaskIntoConstraints = false
+        
+        topController?.addChild(vc)
+        contentView.addSubview(mapView)
+        
+        NSLayoutConstraint.activate(
+            [
+                mapView.leadingAnchor.constraint(equalTo: contentView.leadingAnchor),
+                mapView.trailingAnchor.constraint(equalTo: contentView.trailingAnchor),
+                mapView.topAnchor.constraint(equalTo: contentView.topAnchor),
+                mapView.bottomAnchor.constraint(equalTo: contentView.bottomAnchor)
+            ]
+        )
+        
+        vc.didMove(toParent: topController)
+    }
+
+    func setupMethodChannel() {
+        methodChannel.setMethodCallHandler({ [weak self] (call, result) in
+            self?.viewModel.handleMethodCall(call, result: result)
+        })
+    }
+}
+

+ 237 - 0
plugins/map_amap_ios/ios/Classes/MapAmapContentView/MapAmapThemeControl.swift

@@ -0,0 +1,237 @@
+//
+//  MapAmapThemeControl.swift
+//  map_amap_ios
+//
+//  Created by 诺诺诺的言 on 2025/7/22.
+//
+
+import Foundation
+//import MapKit
+import Combine
+import AMapFoundationKit
+import MAMapKit
+
+@available(iOS 13.0, *)
+class MapAmapThemeControl: UIViewController {
+    
+    required init?(coder: NSCoder) {
+        fatalError("init(coder:) has not been implemented")
+    }
+    
+    let viewModel: MapAmapViewAndDataExchange
+    var autonaviMap : MAMapView!
+    
+    
+    //let mapView = MKMapView()
+    private var cancellables = Set<AnyCancellable>()
+    
+    init(viewModel: MapAmapViewAndDataExchange) {
+        self.viewModel = viewModel
+        super.init(nibName: nil, bundle: nil)
+        //mapView.showsUserLocation = false
+    }
+
+    override func viewDidLoad() {
+        super.viewDidLoad()
+        AMapServices.shared().enableHTTPS = true
+        loadMainMapView()
+        bindViewModel()
+    }
+
+    private func loadMainMapView() {
+        autonaviMap = MAMapView()
+        autonaviMap.delegate = self
+        autonaviMap.mapType = .standard
+        autonaviMap.showsUserLocation = false
+        autonaviMap.userTrackingMode = .follow
+        autonaviMap.translatesAutoresizingMaskIntoConstraints = false
+        view.addSubview(autonaviMap)
+        NSLayoutConstraint.activate([
+            autonaviMap.topAnchor.constraint(equalTo: view.topAnchor),
+            autonaviMap.bottomAnchor.constraint(equalTo: view.bottomAnchor),
+            autonaviMap.leadingAnchor.constraint(equalTo: view.leadingAnchor),
+            autonaviMap.trailingAnchor.constraint(equalTo: view.trailingAnchor)
+        ])
+    }
+    
+    private func bindViewModel() {
+        viewModel.$markers
+            .receive(on: DispatchQueue.main)
+            .sink { [weak self] markers in
+                self?.autonaviMap.removeAnnotations(self?.autonaviMap.annotations)
+                var mapMarkerList = [MAPointAnnotation]();
+                for markerItem in markers {
+                    let annotationItem : MAPointAnnotation = MAPointAnnotation()
+                    annotationItem.title = markerItem.markerName;
+                    annotationItem.coordinate = markerItem.coordinate;
+                    mapMarkerList.append(annotationItem)
+                }
+                self?.autonaviMap.addAnnotations(mapMarkerList)
+                self?.autonaviMap.selectAnnotation(mapMarkerList.first, animated: true)
+                self?.autonaviMap.setZoomLevel(15.1, animated: true)
+                let selectIemt : MAPointAnnotation = mapMarkerList.first!
+                self?.autonaviMap.setCenter(selectIemt.coordinate, animated: true)
+                
+                //self?.mapView.removeAnnotations(self?.mapView.annotations ?? [])
+//                UIView.animate(withDuration: 0.3) {
+//                    self?.mapView.addAnnotations(markers)
+//                }
+            }
+            .store(in: &cancellables)
+        
+        /*viewModel.$currentRegion
+            .compactMap { $0 }
+            .receive(on: DispatchQueue.main)
+            .sink { [weak self] region in
+                self?.mapView.setRegion(region, animated: true)
+            }
+            .store(in: &cancellables)
+
+        viewModel.$markers
+            .receive(on: DispatchQueue.main)
+            .sink { [weak self] markers in
+                self?.mapView.removeAnnotations(self?.mapView.annotations ?? [])
+                UIView.animate(withDuration: 0.3) {
+                    self?.mapView.addAnnotations(markers)
+                }
+            }
+            .store(in: &cancellables)
+
+        viewModel.$polylines
+            .receive(on: DispatchQueue.main)
+            .sink { [weak self] polylines in
+                self?.mapView.removeOverlays(self?.mapView.overlays ?? [])
+                var polyinesList = [MKPolyline]();
+                for polyline in polylines {
+                    let polylineItem : MKPolyline = polyline.polyline
+                    polylineItem.associatedLineId = polyline.id
+                    polylineItem.associatedLineType = polyline.lineType
+                    polylineItem.associatedColor = polyline.color
+                    polylineItem.associatedWidth = polyline.width
+                    polyinesList.append(polylineItem)
+                }
+                self?.mapView.addOverlays(polyinesList)
+                //self?.mapView.addOverlays(polylines.map({ $0.polyline }))
+                if let padding = polylines.last?.mapPadding {
+                    self?.mapView.fitsAllPoints(
+                        points: polylines.last?.points.compactMap({ MKMapPoint($0) }) ?? [],
+                        padding: padding.padding,
+                        animated: true
+                    )
+                }
+            }
+            .store(in: &cancellables)
+        
+        //移动至多个点的位置,并提供设置padding距离
+        viewModel.$suitableLocation
+            .receive(on: DispatchQueue.main)
+            .sink{ [weak self] polylines in
+                if let padding = polylines.last?.mapPadding {
+                    if let atMapPoint : [CLLocationCoordinate2D] = polylines.last?.points {
+                        self?.mapView.moveToSuitableLocation(points: atMapPoint, padding: padding)
+                    }
+                }
+            }
+            .store(in: &cancellables)*/
+    }
+}
+
+
+
+@available(iOS 13.0, *)
+extension MapAmapThemeControl : MAMapViewDelegate {
+    //根据anntation生成对应的View。
+    func mapView(_ mapView: MAMapView!, viewFor annotation: MAAnnotation!) -> MAAnnotationView! {
+        if annotation is MAPointAnnotation {
+            let pointReuseIdentifier = "pointReuseIndetifier"
+            
+            var annotationView = mapView.dequeueReusableAnnotationView(
+                withIdentifier: pointReuseIdentifier
+            ) as? MAPinAnnotationView
+            
+            if annotationView == nil {
+                annotationView = MAPinAnnotationView(
+                    annotation: annotation,
+                    reuseIdentifier: pointReuseIdentifier
+                )
+            }
+            
+            annotationView?.canShowCallout = true
+            annotationView?.animatesDrop = true
+            annotationView?.isDraggable = false
+            annotationView?.pinColor = .purple
+            
+            return annotationView
+        }
+        
+        return nil
+    }
+}
+
+
+/*
+@available(iOS 13.0, *)
+extension MapAmapThemeControl: MKMapViewDelegate {
+    func mapView(_ mapView: MKMapView, viewFor annotation: MKAnnotation) -> MKAnnotationView? {
+        guard let marker = annotation as? ATMapMarker else {
+            return nil
+        }
+        print("markerTypesfdsdfs---\(marker.markerType.markType)");
+        if marker.markerType.isMapAchorPoint {
+            let annotationView = (mapView.dequeueReusableAnnotationView(withIdentifier: MapAnnotationAnchorPointView.identifier) as? MapAnnotationAnchorPointView) ?? MapAnnotationAnchorPointView(annotation: marker, reuseIdentifier: MapAnnotationAnchorPointView.identifier)
+            annotationView.marker = marker
+            annotationView.prepareForDisplay()
+            return annotationView
+        } else if (marker.markerType.isTracePopup) {
+            let annotationBubbleView = (mapView.dequeueReusableAnnotationView(withIdentifier: MapAmapPopUpWindowView.identifier) as? MapAmapPopUpWindowView) ?? MapAmapPopUpWindowView(annotation: marker, reuseIdentifier: MapAmapPopUpWindowView.identifier)
+            annotationBubbleView.marker = marker
+            annotationBubbleView.prepareForDisplay()
+            return annotationBubbleView
+        }
+        let annotationView = (mapView.dequeueReusableAnnotationView(withIdentifier: MapAnnotationView.identifier) as? MapAnnotationView) ?? MapAnnotationView(annotation: marker, reuseIdentifier: MapAnnotationView.identifier)
+        annotationView.marker = marker
+        annotationView.prepareForDisplay()
+        return annotationView
+    }
+
+    func mapView(_ mapView: MKMapView, didSelect view: MKAnnotationView) {
+        guard var marker = view.annotation as? ATMapMarker else {
+            return
+        }
+        
+        viewModel.handleMarkerTap(marker: &marker)
+    }
+
+    func mapView(_ mapView: MKMapView, rendererFor overlay: MKOverlay) -> MKOverlayRenderer {
+        
+        guard let polyline = overlay as? MKPolyline else {
+            return MKOverlayRenderer(overlay: overlay)
+        }
+        let renderer = MapAmapArrowPolylineRenderer(polyline: polyline)
+        renderer.lineWidth = 6
+        //rgba(123, 125, 255, 1)
+        renderer.strokeColor = UIColor(red: 0.27, green: 0.46, blue: 1, alpha: 1)//UIColor.init(hex: "#4476FF");//UIColor(red: 123 / 255, green: 125 / 255, blue: 255 / 255, alpha: 1)
+        renderer.lineCap = .round
+        renderer.lineJoin = .round
+        
+        // 设置箭头样式
+        renderer.arrowColor = UIColor.white // 箭头颜色
+        renderer.arrowSize = 12      // 增大箭头大小
+        renderer.arrowSpacing = 50   // 减小箭头间距
+        renderer.borderWidth = 1
+        renderer.borderColor = UIColor(red: 0.35, green: 0.36, blue: 0.99, alpha: 1)
+        
+        //normal error selected color
+        if polyline.associatedLineType == "normal" {
+            renderer.strokeColor = UIColor(red: 0.27, green: 0.46, blue: 1, alpha: 1)
+        } else  if polyline.associatedLineType == "error" {
+            renderer.strokeColor = UIColor(red: 1, green: 0.43, blue: 0.43, alpha: 1)
+        } else  if polyline.associatedLineType == "selected" {
+            renderer.strokeColor = UIColor(red: 0.08, green: 0.8, blue: 0.63, alpha: 1)
+        } else if polyline.associatedLineType == "color" {
+            renderer.strokeColor = UIColor(hex: polyline.associatedColor ?? "#4476FF")
+            renderer.lineWidth = polyline.associatedWidth ?? 0
+        }
+        return renderer
+    }
+}*/

+ 39 - 0
plugins/map_amap_ios/ios/Classes/MapAmapDetailOpetation.swift

@@ -0,0 +1,39 @@
+//
+//  MapAmapDetailOpetation.swift
+//  map_amap_ios
+//
+//  Created by 诺诺诺的言 on 2025/7/22.
+//
+
+import Foundation
+
+
+enum MapAmapDetailOpetation: String, CaseIterable {
+    // 地图相关方法名称
+    case methodMapMoveCamera = "map#moveCamera"
+    case methodMapAnimateCamera = "map#animateCamera"
+    case methodMapClear = "map#clear"
+    case methodMapMoveToSuitableLocation = "map#moveToSuitableLocation"
+    case methodMapInteractionEnabled = "map#interactionEnabled"
+    case methodMapLogoVisible = "map#logoVisible"
+    
+    // 标记物相关方法名称
+    case methodUpdateOrAddMarkers = "marker#updateOrAddMarkers"
+    case methodReplaceAllMarkers = "marker#replaceAllMarkers"
+    case methodMarkerOnTap = "marker#onTap"
+    case methodMarkerRemoveMarker = "marker#removeMarker"
+    
+    // 轨迹纠偏
+    case methodQueryProcessedTrace = "trace#queryProcessedTrace"
+    
+    // polyline
+    case methodAddPolyline = "polyline#addPolyline"
+    ///删除指定的路径
+    case methodRemovePolyline = "polyline#removePolyline"
+}
+
+enum CommonChannelMethod: String {
+    case `init` = "init"
+    case getPlatformMapName = "getPlatformMapName"
+    case startLocation = "startLocation"
+}

+ 335 - 0
plugins/map_amap_ios/ios/Classes/MapAmapGeneralProcessing.swift

@@ -0,0 +1,335 @@
+//
+//  MapAmapGeneralProcessing.swift
+//  map_amap_ios
+//
+//  Created by 诺诺诺的言 on 2025/7/22.
+//
+
+import Foundation
+import MapKit
+import ObjectiveC
+
+extension Decodable {
+    static func fromJson(json: Any) -> Self? {
+        do {
+            let data = try JSONSerialization.data(withJSONObject: json, options: [])
+            return try JSONDecoder().decode(Self.self, from: data)
+        } catch {
+            print(error.localizedDescription)
+            return nil
+        }
+    }
+}
+
+extension Encodable {
+    func toJson() -> [String: Any] {
+        guard let data = try? JSONEncoder().encode(self) else {
+            return [:]
+        }
+        return try! JSONSerialization.jsonObject(with: data, options: []) as! [String: Any]
+    }
+}
+
+struct ATMapCameraPosition: Codable {
+    var latitude: CGFloat
+    var longitude: CGFloat
+    // 地图缩放比例,对应span
+    var zoom: CGFloat
+}
+
+struct ATMapPadding: Codable {
+    var top: CGFloat
+    var left: CGFloat
+    var bottom: CGFloat
+    var right: CGFloat
+
+    var padding: UIEdgeInsets {
+        return UIEdgeInsets(top: top, left: left, bottom: bottom, right: right)
+    }
+}
+
+
+// 定义关联对象的键
+private var associatedLineIdKey = "associatedLineIdKey"
+private var associatedLineTypeKey = "associatedLineTypeKey"
+private var associatedColorKey = "associatedColorKey"
+private var associatedWidthKey = "associatedWidthKey"
+
+extension MKPolyline {
+    // 关联 lineId 属性
+    var associatedLineId: String? {
+        get {
+            return objc_getAssociatedObject(self, &associatedLineIdKey) as? String
+        }
+        set {
+            objc_setAssociatedObject(self, &associatedLineIdKey, newValue, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
+        }
+    }
+    
+    // 关联 lineType 属性
+    var associatedLineType: String? {
+        get {
+            return objc_getAssociatedObject(self, &associatedLineTypeKey) as? String
+        }
+        set {
+            objc_setAssociatedObject(self, &associatedLineTypeKey, newValue, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
+        }
+    }
+    
+    // 关联 color 属性
+    var associatedColor: String? {
+        get {
+            return objc_getAssociatedObject(self, &associatedColorKey) as? String
+        }
+        set {
+            objc_setAssociatedObject(self, &associatedColorKey, newValue, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
+        }
+    }
+    
+    // 关联 width 属性
+    var associatedWidth: Double? {
+        get {
+            return objc_getAssociatedObject(self, &associatedWidthKey) as? Double
+        }
+        set {
+            objc_setAssociatedObject(self, &associatedWidthKey, newValue, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
+        }
+    }
+}
+
+
+class ATMapPolyline: NSObject, Codable {
+    var id: String = UUID().uuidString
+    var lineId: String         // 新增:用于记录的线ID
+    var lineType: String      // 新增:用于记录线的样式 normal error selected color
+    var points: [CLLocationCoordinate2D]
+    var mapPadding: ATMapPadding?
+    var color : String ///轨迹的颜色
+    var width: Double /// 轨迹的宽度
+    
+    var polyline: MKPolyline {
+        return MKPolyline(coordinates: points, count: points.count)
+    }
+
+    enum CodingKeys: String, CodingKey {
+        case lineId, lineType, points, mapPadding,color,width
+    }
+    
+    required init(from decoder: Decoder) throws {
+        let container = try decoder.container(keyedBy: CodingKeys.self)
+        
+        if container.contains(.lineId) {
+            lineId = try container.decodeIfPresent(String.self, forKey: .lineId) ?? ""
+        } else {
+            lineId = ""
+        }
+        if container.contains(.lineType) {
+            lineType = try container.decodeIfPresent(String.self, forKey: .lineType) ?? ""
+        } else {
+            lineType = "";
+        }
+        if container.contains(.points) {
+            points = try container.decodeIfPresent([CLLocationCoordinate2D].self, forKey: .points) ?? [CLLocationCoordinate2D]()
+        } else {
+            points = [CLLocationCoordinate2D]()
+        }
+        if container.contains(.color) {
+            color = try container.decodeIfPresent(String.self, forKey: .color) ?? ""
+        } else {
+            color = ""
+        }
+        if container.contains(.width) {
+            width = try container.decodeIfPresent(Double.self, forKey: .width) ?? 0
+        } else {
+            width = 0
+        }
+        if container.contains(.mapPadding) {
+            mapPadding = try container.decodeIfPresent(ATMapPadding.self, forKey: .mapPadding) ?? ATMapPadding(top: 0, left: 0, bottom: 0, right: 0)
+        } else {
+            mapPadding = ATMapPadding(top: 0, left: 0, bottom: 0, right: 0)
+        }
+    }
+    
+    func encode(to encoder: Encoder) throws {
+        var container = encoder.container(keyedBy: CodingKeys.self)
+        try container.encode(lineId, forKey: .lineId)
+        try container.encode(lineType, forKey: .lineType)
+        try container.encode(points, forKey: .points)
+        try container.encodeIfPresent(mapPadding, forKey: .mapPadding)
+    }
+    
+    // 初始化方法
+    init(lineId: String, lineType: String, points: [CLLocationCoordinate2D], mapPadding: ATMapPadding? = nil,color : String,width : Double) {
+        self.lineId = lineId
+        self.lineType = lineType
+        self.points = points
+        self.mapPadding = mapPadding
+        self.color = color
+        self.width = width
+        super.init()
+    }
+}
+
+
+class ATMapMarker: NSObject, Codable {
+    var id: String
+    var markerId: String
+    var markerName: String?
+    var customAvatarUrl : String?
+    var latitude: CGFloat
+    var longitude: CGFloat
+    var isSelected: Bool
+    var markerType: any MapMarkerSupportType
+    var tags: [String : String]?
+
+    init(id: String, markerId: String,markerName: String?, customAvatarUrl: String?,location: CLLocationCoordinate2D, markerType: any MapMarkerSupportType, isSelected: Bool = false,tags: [String : String]?) {
+        self.id = id
+        self.markerId = markerId
+        self.markerName = markerName
+        self.customAvatarUrl = customAvatarUrl
+        self.latitude = location.latitude
+        self.longitude = location.longitude
+        self.markerType = markerType
+        self.isSelected = isSelected
+        self.tags = tags
+    }
+    
+    func update(coordinate: CLLocationCoordinate2D, name: String? = nil, isSelect: Bool) {
+        self.latitude = coordinate.latitude
+        self.longitude = coordinate.longitude
+        self.markerName = name
+        self.isSelected = isSelect
+    }
+
+    enum CodingKeys: String, CodingKey {
+        case id,markerId,markerName,customAvatarUrl, latitude, longitude, isSelected, markerType,tags
+    }
+
+    required init(from decoder: Decoder) throws {
+        let container = try decoder.container(keyedBy: CodingKeys.self)
+        id = try container.decode(String.self, forKey: .id)
+        if id.isEmpty {
+            id = "user_location"
+        }
+        if container.contains(.markerName) {
+            markerName = try container.decodeIfPresent(String.self, forKey: .markerName) ?? ""
+        } else {
+            markerName = ""
+        }
+        if container.contains(.customAvatarUrl) {
+            customAvatarUrl = try container.decodeIfPresent(String.self, forKey: .customAvatarUrl) ?? ""
+        } else {
+            customAvatarUrl = ""
+        }
+        
+        if container.contains(.latitude) {
+            latitude = try container.decodeIfPresent(CGFloat.self, forKey: .latitude) ?? 0
+        } else {
+            latitude = 0
+        }
+        if container.contains(.longitude) {
+            longitude = try container.decodeIfPresent(CGFloat.self, forKey: .longitude) ?? 0
+        } else {
+            longitude = 0
+        }
+        if container.contains(.isSelected) {
+            isSelected = try container.decodeIfPresent(Bool.self, forKey: .isSelected) ?? false
+        } else {
+            isSelected = false
+        }
+   
+        
+        // 使用工厂方法创建正确类型的markerType
+        if container.contains(.markerType) {
+            let rawValue = try container.decodeIfPresent(Int.self, forKey: .markerType) ?? 1
+            markerType = MarkerTypeFactory.markerType(from: rawValue)
+        } else {
+            markerType = MarkerTypeFactory.markerType(from: 1)
+        }
+        
+        ///气泡内容
+        // 处理tags为空的情况
+         if container.contains(.tags) {
+             tags = try container.decodeIfPresent([String: String].self, forKey: .tags) ?? [:]
+         } else {
+             tags = [:] // 默认为空字典
+         }
+        if container.contains(.markerId) {
+            markerId = try container.decodeIfPresent(String.self, forKey: .markerId) ?? ""
+        } else {
+            markerId = ""
+        }
+    }
+
+    func encode(to encoder: Encoder) throws {
+        var container = encoder.container(keyedBy: CodingKeys.self)
+        try container.encode(id, forKey: .id)
+        try container.encode(markerName, forKey: .markerName)
+        try container.encode(customAvatarUrl, forKey: .customAvatarUrl)
+        try container.encode(latitude, forKey: .latitude)
+        try container.encode(longitude, forKey: .longitude)
+        try container.encode(isSelected, forKey: .isSelected)
+        try container.encode(markerType.rawValue, forKey: .markerType)
+        try container.encode(tags, forKey: .tags)
+        try container.encode(markerId, forKey: .markerId)
+    }
+}
+
+extension ATMapMarker: MKAnnotation {
+    var coordinate: CLLocationCoordinate2D {
+        return CLLocationCoordinate2D(latitude: latitude, longitude: longitude)
+    }
+}
+
+extension CLLocationCoordinate2D: Codable {
+    enum CodingKeys: String, CodingKey {
+        case latitude
+        case longitude
+    }
+    
+    public init(from decoder: Decoder) throws {
+        let container = try decoder.container(keyedBy: CodingKeys.self)
+        let latitude = try container.decode(Double.self, forKey: .latitude)
+        let longitude = try container.decode(Double.self, forKey: .longitude)
+        self.init(latitude: latitude, longitude: longitude)
+    }
+    
+    public func encode(to encoder: Encoder) throws {
+        var container = encoder.container(keyedBy: CodingKeys.self)
+        try container.encode(latitude, forKey: .latitude)
+        try container.encode(longitude, forKey: .longitude)
+    }
+}
+
+
+class ATMapLocation: NSObject, Codable {
+    var latitude: CGFloat?
+    var longitude: CGFloat?
+    var address: String?
+    var errorCode: Int = 0
+    var time: Int?
+    var bearing: CGFloat?
+    var speed: CGFloat?
+
+    init(latitude: CGFloat? = nil, longitude: CGFloat? = nil, address: String? = nil, time: Int? = nil, bearing: CGFloat? = nil, speed: CGFloat? = nil) {
+        self.latitude = latitude
+        self.longitude = longitude
+        self.address = address
+        self.time = time
+        self.bearing = bearing
+        self.speed = speed
+        super.init()
+    }
+
+    static func fromLocation(location: CLLocation) -> ATMapLocation {
+        return ATMapLocation(
+            latitude: CGFloat(location.coordinate.latitude),
+            longitude: CGFloat(location.coordinate.longitude),
+            address: nil,
+            time: Int(location.timestamp.timeIntervalSince1970 * 1000),
+            bearing: CGFloat(location.course),
+            speed: CGFloat(location.speed)
+        )
+    }
+
+}

+ 163 - 0
plugins/map_amap_ios/ios/Classes/MapAmapGetLocationHandle.swift

@@ -0,0 +1,163 @@
+//
+//  MapAmapGetLocationHandle.swift
+//  map_amap_ios
+//
+//  Created by 诺诺诺的言 on 2025/7/22.
+//
+
+import Foundation
+import Flutter
+import CoreLocation
+
+@available(iOS 13.0, *)
+class LocationManager: NSObject {
+
+    static let shared = LocationManager()
+
+    private var locationUpdateEventChannel: FlutterEventChannel?
+    private var locationEventSink: FlutterEventSink?
+
+    private let locationManager = CLLocationManager()
+
+    #if DEBUG
+    private let filterDistance: CLLocationDistance = 5
+    #else
+    private let filterDistance: CLLocationDistance = 20
+    #endif
+    private var lastLocation: CLLocation?
+    private var lastUpdateTime: Date?
+
+    var onLocationUpdate: ((CLLocation) -> Void)?
+
+    private override init() {
+        super.init()
+        locationManager.delegate = self
+        setup()
+    }
+    
+    func initChannel(withMessenger messenger: FlutterBinaryMessenger) {
+        locationUpdateEventChannel = FlutterEventChannel(name: MapAmapViewOnlyKeyword.locationUpdateEventChannelName, binaryMessenger: messenger)
+        locationUpdateEventChannel?.setStreamHandler(self)
+    }
+
+    func start(withMessenger messenger: FlutterBinaryMessenger) -> Bool {
+        // permission detect
+        switch CLLocationManager.authorizationStatus() {
+        case .authorizedWhenInUse, .authorizedAlways:
+            locationManager.startUpdatingLocation()
+            //setupMessenger(messenger: messenger)
+            return true
+        case .notDetermined:
+            return false
+        default:
+            print("LocationManager: authorizationStatus: \(CLLocationManager.authorizationStatus())")
+            return false
+        }
+    }
+
+    func stop() {
+        locationManager.stopUpdatingLocation()
+    }
+
+//    func setupMessenger(messenger: FlutterBinaryMessenger) {
+//        guard locationUpdateEventChannel == nil && locationEventSink == nil else { return }
+//        locationUpdateEventChannel = FlutterEventChannel(name: MapKitConstans.locationUpdateEventChannelName, binaryMessenger: messenger)
+//        locationUpdateEventChannel?.setStreamHandler(self)
+//    }
+
+    func setup() {
+        locationManager.allowsBackgroundLocationUpdates = true
+        locationManager.pausesLocationUpdatesAutomatically = false
+        locationManager.desiredAccuracy = kCLLocationAccuracyBest
+//        locationManager.distanceFilter = filterDistance
+        locationManager.activityType = .automotiveNavigation
+        locationManager.showsBackgroundLocationIndicator = false
+    }
+
+    @available(iOS 13.0.0, *)
+    static func getAddress(location: CLLocation) async -> String? {
+        let geocoder = CLGeocoder()
+        return await withCheckedContinuation { continuation in
+            geocoder.reverseGeocodeLocation(location) { (placemarks, error) in
+                if let error = error {
+                    print("反向地理编码失败: \(error.localizedDescription)")
+                    continuation.resume(returning: nil)
+                    return
+                }
+                
+                if let placemark = placemarks?.first {
+                    // 获取完整地址
+                    let address = [
+                        placemark.country,
+                        placemark.administrativeArea,
+                        placemark.locality,
+                        placemark.subLocality,
+                        placemark.thoroughfare,
+                        placemark.subThoroughfare,
+                        placemark.name
+                    ].compactMap { $0 }.joined(separator: "")
+                    
+                    continuation.resume(returning: address)
+                } else {
+                    continuation.resume(returning: nil)
+                }
+            }
+        }
+    }
+}
+
+@available(iOS 13.0, *)
+extension LocationManager: CLLocationManagerDelegate {
+    func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
+        guard let location = locations.last, isLocationCanUpdate(location: location) else { return }
+        onLocationUpdate?(location)
+        if let eventSink = locationEventSink {
+            Task {
+                // 转换GPS坐标系到中国坐标系
+                let transformedCoordinate = location.coordinate.wgc84ToGCJ02
+                let atLocation = ATMapLocation.fromLocation(location: location)
+                atLocation.longitude = transformedCoordinate.longitude
+                atLocation.latitude = transformedCoordinate.latitude
+                // 获取地址
+                atLocation.address = await LocationManager.getAddress(location: location)
+                
+                let jsonMessage = atLocation.toJson()
+                print(jsonMessage)
+                await MainActor.run {
+                    eventSink(jsonMessage)
+                }
+            }
+            
+        }
+    }
+
+    func locationManager(_ manager: CLLocationManager, didFailWithError error: Error) {
+        print("LocationManager: didFailWithError: \(error)")
+    }
+
+    func isLocationCanUpdate(location: CLLocation) -> Bool {
+        if let lastLocation = lastLocation {
+            let distance = location.distance(from: lastLocation)
+            let timeInterval = location.timestamp.timeIntervalSince(lastUpdateTime ?? Date())
+            if timeInterval < 5.0 {
+                return false
+            }
+        }
+        lastLocation = location
+        lastUpdateTime = location.timestamp
+        return true
+    }
+}
+
+@available(iOS 13.0, *)
+extension LocationManager: FlutterStreamHandler {
+    func onListen(withArguments arguments: Any?, eventSink events: @escaping FlutterEventSink) -> FlutterError? {
+        locationEventSink = events
+        return nil
+    }
+
+    func onCancel(withArguments arguments: Any?) -> FlutterError? {
+        locationEventSink = nil
+        return nil
+    }
+}

+ 108 - 0
plugins/map_amap_ios/ios/Classes/MapAmapIosPlugin.swift

@@ -0,0 +1,108 @@
+
+
+import UIKit
+import Flutter
+
+enum MapSupportedPackage: String {
+    case traceLocation1 = "com.shishi.dingwei"
+}
+
+var currentPackage: MapSupportedPackage {
+    if let bundleId = Bundle.main.bundleIdentifier {
+        if bundleId.hasPrefix(MapSupportedPackage.traceLocation1.rawValue) {
+            return .traceLocation1
+        }
+    }
+    return .traceLocation1
+}
+
+@available(iOS 13.0, *)
+public class MapAmapIosPlugin: NSObject, FlutterPlugin {
+    
+    public static func register(with registrar: FlutterPluginRegistrar) {
+        
+        let factory = MapFlutterViewFactory(messenger: registrar.messenger())
+        registrar.register(factory,
+                           withId: MapAmapViewOnlyKeyword.mapViewId,
+                           gestureRecognizersBlockingPolicy: FlutterPlatformViewGestureRecognizersBlockingPolicyWaitUntilTouchesEnded)
+
+        // 注册通用方法通道
+        CommonMethodChannelHandler.shared.setBinaryMessenger(binaryMessenger: registrar.messenger())
+        let commonMethodChannel = FlutterMethodChannel(name: MapAmapViewOnlyKeyword.commonMethodChannelName,
+                                                       binaryMessenger: registrar.messenger())
+        commonMethodChannel.setMethodCallHandler { (call, result) in
+            CommonMethodChannelHandler.shared.handleMethodCall(call: call,
+                                                               result: result)
+        }
+    }
+
+    
+}
+
+@available(iOS 13.0, *)
+class CommonMethodChannelHandler: NSObject {
+    private var binaryMessenger: FlutterBinaryMessenger?
+
+    static let shared = CommonMethodChannelHandler()
+
+    private override init() {
+        super.init()
+    }
+
+    func setBinaryMessenger(binaryMessenger: FlutterBinaryMessenger) {
+        LocationManager.shared.initChannel(withMessenger: binaryMessenger)
+        self.binaryMessenger = binaryMessenger
+    }
+
+    func handleMethodCall(call: FlutterMethodCall, result: @escaping FlutterResult) {
+        handleCommonMethodCall(call: call, result: result)
+    }
+
+    private func handleCommonMethodCall(call: FlutterMethodCall, result: @escaping FlutterResult) {
+         guard let callMethod = CommonChannelMethod(rawValue: call.method) else {
+            result(FlutterMethodNotImplemented)
+            return
+        }
+
+        switch callMethod {
+        case .`init`:
+            result(true)
+            handleStartLocation(result: result)
+        case .getPlatformMapName:
+            result("map_mapkit_ios")
+        case .startLocation:
+            handleStartLocation(result: result)
+        }
+    }
+    
+    private func handleStartLocation(result: @escaping FlutterResult) {
+        guard let binaryMessenger else { return }
+        let isSuccess = LocationManager.shared.start(withMessenger: binaryMessenger)
+        if !isSuccess {
+            result(FlutterError(code: "LocationPermissionError", message: "Location permission not granted", details: nil))
+            return
+        }
+    }
+    
+}
+
+
+
+/*
+public class MapAmapIosPlugin: NSObject, FlutterPlugin {
+  public static func register(with registrar: FlutterPluginRegistrar) {
+    let channel = FlutterMethodChannel(name: "map_amap_ios", binaryMessenger: registrar.messenger())
+    let instance = MapAmapIosPlugin()
+    registrar.addMethodCallDelegate(instance, channel: channel)
+  }
+
+  public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
+    switch call.method {
+    case "getPlatformVersion":
+      result("iOS " + UIDevice.current.systemVersion)
+    default:
+      result(FlutterMethodNotImplemented)
+    }
+  }
+}
+*/

+ 91 - 0
plugins/map_amap_ios/ios/Classes/MapDataCommunicationProtocol.swift

@@ -0,0 +1,91 @@
+//
+//  MapDataCommunicationProtocol.swift
+//  map_amap_ios
+//
+//  Created by 诺诺诺的言 on 2025/7/22.
+//
+
+import Foundation
+import MapKit
+import Flutter
+
+// 地图功能接口定义
+protocol MapCapability {
+    var paramsDecodeError: FlutterError? { get set }
+
+    var methodChannel: FlutterMethodChannel? { get set }
+    
+    var currentRegion: MKCoordinateRegion? { get set }
+
+    var markers: [ATMapMarker] { get set }
+
+    var polylines: [ATMapPolyline] { get set }
+
+    // 处理地图添加Marker
+    func handleMapAddMarker(args: [[String: Any]]?, result: @escaping FlutterResult)
+    
+    // 处理地图添加Polyline
+    func handleMapAddPolyline(args: [String: Any]?, result: @escaping FlutterResult)
+    
+    ///移除地图里面指定的Polyline
+    func handleMapRemovePolyline(args: [String: Any]?, result: @escaping FlutterResult)
+    
+    // 处理地图移动
+    func handleMapMoveCamera(args: [String: Any]?, result: @escaping FlutterResult)
+    
+    // 处理地图清除Marker
+    func handleMapClearMarkers(result: @escaping FlutterResult)
+    
+    // 处理地图替换所有Marker
+    func handleMapReplaceAllMarkers(args: [[String: Any]]?, result: @escaping FlutterResult)
+    
+    // 处理Marker点击事件
+    func handleMarkerTap(marker: inout ATMapMarker)
+
+    func handleMethodCall(_ call: FlutterMethodCall, result: @escaping FlutterResult)
+    
+    ///处理移动至多个点的位置,并提供设置padding距离
+    func handleMapMoveToSuitableLocation(args: [String: Any]?, result: @escaping FlutterResult)
+    
+    ///清除指定标记物
+    func handleMapRemovemarker(args: [String: Any]?, result: @escaping FlutterResult)
+    
+    ///禁用或开启地图所有交互
+    func handleMapInteractionEnabled(args: [String: Any]?, result: @escaping FlutterResult)
+    
+    ///显示或隐藏地图logo
+    func handleMapLogoVisible(args: [String: Any]?, result: @escaping FlutterResult)
+}
+
+extension MapCapability {
+    func handleMethodCall(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
+        guard let callMethod = MapAmapDataChannelKeyword(rawValue: call.method) else {
+            result(FlutterMethodNotImplemented)
+            return
+        }
+        switch callMethod {
+        case .methodMapMoveCamera, .methodMapAnimateCamera:
+            handleMapMoveCamera(args: call.arguments as? [String: Any], result: result)
+        case .methodUpdateOrAddMarkers:
+            handleMapAddMarker(args: call.arguments as? [[String: Any]], result: result)
+        case .methodMapClear:
+            handleMapClearMarkers(result: result)
+        case .methodReplaceAllMarkers:
+            handleMapReplaceAllMarkers(args: call.arguments as? [[String: Any]], result: result)
+        case .methodAddPolyline:
+            handleMapAddPolyline(args: call.arguments as? [String: Any], result: result)
+        case .methodRemovePolyline:
+            handleMapRemovePolyline(args: call.arguments as? [String: Any], result: result)
+        case .methodMapMoveToSuitableLocation:
+            handleMapMoveToSuitableLocation(args: call.arguments as? [String: Any], result: result)
+        case .methodMarkerRemoveMarker:
+            handleMapRemovemarker(args: call.arguments as? [String: Any], result: result)
+        case .methodMapInteractionEnabled:
+            handleMapInteractionEnabled(args: call.arguments as? [String: Any], result: result)
+        case .methodMapLogoVisible:
+            handleMapLogoVisible(args: call.arguments as? [String: Any], result: result)
+        default:
+            result(FlutterMethodNotImplemented)
+        }
+    }
+}

+ 36 - 0
plugins/map_amap_ios/ios/Classes/ModelData/MapAmapDataChannelKeyword.swift

@@ -0,0 +1,36 @@
+//
+//  MapAmapDataChannelKeyword.swift
+//  map_amap_ios
+//
+//  Created by 诺诺诺的言 on 2025/7/22.
+//
+
+import Foundation
+
+enum MapAmapDataChannelKeyword: String, CaseIterable {
+    case `init` = "init"
+    case getPlatformMapName = "getPlatformMapName"
+    case startLocation = "startLocation"
+    
+    // 地图相关方法名称
+    case methodMapMoveCamera = "map#moveCamera"
+    case methodMapAnimateCamera = "map#animateCamera"
+    case methodMapClear = "map#clear"
+    case methodMapMoveToSuitableLocation = "map#moveToSuitableLocation"
+    case methodMapInteractionEnabled = "map#interactionEnabled"
+    case methodMapLogoVisible = "map#logoVisible"
+    
+    // 标记物相关方法名称
+    case methodUpdateOrAddMarkers = "marker#updateOrAddMarkers"
+    case methodReplaceAllMarkers = "marker#replaceAllMarkers"
+    case methodMarkerOnTap = "marker#onTap"
+    case methodMarkerRemoveMarker = "marker#removeMarker"
+    
+    // 轨迹纠偏
+    case methodQueryProcessedTrace = "trace#queryProcessedTrace"
+    
+    // polyline
+    case methodAddPolyline = "polyline#addPolyline"
+    ///删除指定的路径
+    case methodRemovePolyline = "polyline#removePolyline"
+}

+ 111 - 0
plugins/map_amap_ios/ios/Classes/ModelData/MapAmapTheStyleOfAnnection.swift

@@ -0,0 +1,111 @@
+//
+//  MapAmapTheStyleOfAnnection.swift
+//  map_amap_ios
+//
+//  Created by 诺诺诺的言 on 2025/7/22.
+//
+
+import Foundation
+
+
+protocol MapMarkerSupportType: Codable {
+    var rawValue: Int { get }
+
+    var supportSelected: Bool { get }
+
+    func imageName(selected: Bool) -> String
+
+    var size: CGSize { get }
+    
+    var isMapAchorPoint : Bool {get}
+    
+    var isTracePopup : Bool {get}
+    
+    var markType : MapMarkerSupportType {get}
+    
+    var isTracePassing : Bool {get}
+}
+
+// 创建一个全局辅助类来处理解码/编码
+struct MarkerTypeFactory {
+    static func markerType(from rawValue: Int) -> any MapMarkerSupportType {
+        // 根据应用包类型选择正确的枚举类型
+        switch currentPackage {
+        case .traceLocation1:
+            return MarkerType(rawValue: rawValue) ?? MarkerType.mine
+        // 如果有更多包类型,可以在这里添加
+        }
+    }
+}
+
+// 为MapMarkerSupportType添加Codable实现
+extension MapMarkerSupportType {
+    // 编码为整数
+    func encode(to encoder: Encoder) throws {
+        var container = encoder.singleValueContainer()
+        try container.encode(rawValue)
+    }
+}
+
+// 第一个包的标记类型
+enum MarkerType: Int, MapMarkerSupportType {
+    case mine = 1
+    case friend = 2
+    case traceStart = 3
+    case traceEndFriend = 4
+    case traceEndMine = 5
+    case tracePopup = 6 //popup气泡样式
+    case tracePassing = 7 //轨迹途径点样式
+    case trackError = 8 //轨迹错误点样式
+    
+    var supportSelected: Bool {
+        return self == .mine
+    }
+    func imageName(selected: Bool) -> String {
+        let prefixName: String = currentPackage.rawValue
+        let imageBaseName: String = switch self {
+            case .mine:
+                "mine"
+            case .friend:
+                "friend"
+            case .traceStart:
+                "traceStart"
+            case .traceEndFriend:
+                "traceEndFriend"
+            case .traceEndMine:
+                "traceEndMine"
+            case .tracePopup:
+                "tracePopup"
+            case .tracePassing:
+                "tracePassing"
+            case .trackError:
+                "trackError"
+        }
+        return "\(prefixName)_\(imageBaseName)" + ((selected && supportSelected) ? "_selected" : "")
+    }
+
+    var size: CGSize {
+        switch self {
+            case .traceStart:
+                return CGSize(width: 22, height: 36)
+            default:
+                return CGSize(width: 44, height: 52)
+        }
+    }
+    
+    var isMapAchorPoint : Bool {
+        return self == .tracePassing || self == .trackError
+    }
+    
+    var markType: MapMarkerSupportType {
+        return self
+    }
+    
+    var isTracePassing : Bool {
+        return self == .tracePassing
+    }
+    
+    var isTracePopup : Bool {
+        return self == .tracePopup
+    }
+}

+ 22 - 0
plugins/map_amap_ios/ios/Classes/ModelData/MapAmapViewOnlyKeyword.swift

@@ -0,0 +1,22 @@
+//
+//  MapAmapViewOnlyKeyword.swift
+//  map_amap_ios
+//
+//  Created by 诺诺诺的言 on 2025/7/22.
+//
+
+import Foundation
+
+struct MapAmapViewOnlyKeyword {
+    // 位置更新事件通道名称
+    static let locationUpdateEventChannelName: String = "atmob_map_location_event_channel"
+    
+    // 通用方法通道
+    static let commonMethodChannelName: String = "atmob_map_method_channel"
+
+    // 地图相关通道名称
+    static let mapViewMethodChannelName: String = "com.atmob.flutter_map/map_view_"
+    
+    // 地图视图ID
+    static let mapViewId: String = "com.atmob.flutter.map"
+}

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

@@ -0,0 +1,174 @@
+//
+//  MapAmapViewAndDataExchange.swift
+//  map_amap_ios
+//
+//  Created by 诺诺诺的言 on 2025/7/22.
+//
+
+import Foundation
+import SwiftUI
+import Combine
+import MapKit
+import CoreLocation
+import Flutter
+
+@available(iOS 13.0, *)
+class MapAmapViewAndDataExchange: NSObject, ObservableObject, MapCapability {
+    
+    var paramsDecodeError: FlutterError? = FlutterError(code: "InvalidArguments", message: "Invalid arguments", details: nil)
+    
+    var methodChannel: FlutterMethodChannel?
+    
+    @Published var currentRegion: MKCoordinateRegion?
+    
+    // 地图Marker
+    @Published var markers: [ATMapMarker] = []
+    
+    // 地图Polyline
+    @Published var polylines: [ATMapPolyline] = []
+    
+    //移动至多个点的位置,并提供设置padding距离
+    @Published var suitableLocation: [ATMapPolyline] = []
+    
+    ///禁用或开启地图所有交互
+    @Published var interactionEnabled : String = ""
+    
+    /// 显示或隐藏地图logo
+    @Published var logoVisible : String = ""
+    
+    // 处理地图移动
+    func handleMapMoveCamera(args: [String: Any]?, result: @escaping FlutterResult) {
+        guard let args = args, let cameraPosition = ATMapCameraPosition.fromJson(json: args) else {
+            result(paramsDecodeError)
+            return
+        }
+        
+        let center = CLLocationCoordinate2D(latitude: cameraPosition.latitude, longitude: cameraPosition.longitude)
+        let zoome = cameraPosition.zoom / 10000
+        let span = MKCoordinateSpan(latitudeDelta: zoome, longitudeDelta: zoome)
+        
+        currentRegion = MKCoordinateRegion(center: center, span: span)
+        result(nil)
+    }
+    
+    // 处理地图添加Marker
+    func handleMapAddMarker(args: [[String: Any]]?, result: @escaping FlutterResult) {
+        guard let args = args, let newMarkers = [ATMapMarker].fromJson(json: args) else {
+            result(paramsDecodeError)
+            return
+        }
+        
+        var markerDict = Dictionary(uniqueKeysWithValues: self.markers.map { ($0.id, $0) })
+        
+        for marker in newMarkers {
+            markerDict[marker.id] = marker
+        }
+        
+        self.markers = Array(markerDict.values)
+        result(nil)
+    }
+    
+    // 处理地图清除Marker
+    func handleMapClearMarkers(result: @escaping FlutterResult) {
+        markers = []
+        result(nil)
+    }
+    
+    // 处理地图替换所有Marker
+    func handleMapReplaceAllMarkers(args: [[String: Any]]?, result: @escaping FlutterResult) {
+        defer {
+            result(nil)
+        }
+        guard let args = args, let markers = [ATMapMarker].fromJson(json: args) else {
+            result(paramsDecodeError)
+            return
+        }
+        
+        self.markers = markers
+    }
+    
+    // 处理Marker点击事件
+    func handleMarkerTap(marker: inout ATMapMarker) {
+        toggleMarkerSelected(marker: &marker)
+        methodChannel?.invokeMethod(MapAmapDetailOpetation.methodMarkerOnTap.rawValue, arguments: marker.toJson())
+    }
+    
+    // 处理地图添加Polyline
+    func handleMapAddPolyline(args: [String: Any]?, result: @escaping FlutterResult) {
+        guard let args = args, let polyline = ATMapPolyline.fromJson(json: args) else {
+            result(paramsDecodeError)
+            return
+        }
+        polylines.append(polyline)
+        
+        result(nil)
+    }
+    
+    ///处理移动至多个点的位置,并提供设置padding距离
+    func handleMapMoveToSuitableLocation(args: [String : Any]?, result: @escaping FlutterResult) {
+        guard let args = args, let polyline = ATMapPolyline.fromJson(json: args) else {
+            result(paramsDecodeError);
+            return;
+        }
+        suitableLocation.append(polyline)
+        result(nil);
+    }
+    
+    ///清除指定标记物
+    func handleMapRemovemarker(args: [String : Any]?, result: @escaping FlutterResult) {
+        defer {
+            result(nil)
+        }
+        guard let args = args, let markerItem = ATMapMarker.fromJson(json: args) else {
+            result(paramsDecodeError)
+            return
+        }
+        
+        // 使用标识符找到要移除的标记物并从数组中删除
+        
+        DispatchQueue.main.async{
+            if let index = self.markers.firstIndex(where: { $0.id == markerItem.markerId }) {
+                self.markers.remove(at: index)
+            }
+        }
+    }
+    
+    ///清除制定的线
+    func handleMapRemovePolyline(args: [String : Any]?, result: @escaping FlutterResult) {
+        guard let args = args, let polyline = ATMapPolyline.fromJson(json: args) else {
+            result(paramsDecodeError)
+            return
+        }
+        DispatchQueue.main.async {
+            if let index = self.polylines.firstIndex(where: { $0.lineId == polyline.lineId }) {
+                self.polylines.remove(at: index)
+            }
+        }
+        result(nil)
+    }
+    
+    ///禁用或开启地图所有交互
+    func handleMapInteractionEnabled(args: [String: Any]?, result: @escaping FlutterResult) {
+        if let enabled = args?["enabled"] {
+            self.interactionEnabled = "\(enabled)";
+        }
+        result(nil)
+    }
+    
+    ///显示或隐藏地图logo
+    func handleMapLogoVisible(args: [String : Any]?, result: @escaping FlutterResult) {
+        if let visible = args?["visible"] {
+            self.logoVisible = "\(visible)";
+        }
+        result(nil)
+    }
+}
+
+// Propertie Action
+@available(iOS 13.0, *)
+extension MapAmapViewAndDataExchange {
+    func toggleMarkerSelected(marker: inout ATMapMarker) {
+        marker.isSelected = !marker.isSelected
+    }
+}
+

+ 14 - 0
plugins/map_amap_ios/ios/Resources/PrivacyInfo.xcprivacy

@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>NSPrivacyTrackingDomains</key>
+	<array/>
+	<key>NSPrivacyAccessedAPITypes</key>
+	<array/>
+	<key>NSPrivacyCollectedDataTypes</key>
+	<array/>
+	<key>NSPrivacyTracking</key>
+	<false/>
+</dict>
+</plist>

+ 30 - 0
plugins/map_amap_ios/ios/map_amap_ios.podspec

@@ -0,0 +1,30 @@
+#
+# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html.
+# Run `pod lib lint map_amap_ios.podspec` to validate before publishing.
+#
+Pod::Spec.new do |s|
+  s.name             = 'map_amap_ios'
+  s.version          = '0.0.1'
+  s.summary          = 'A new Flutter plugin project.'
+  s.description      = <<-DESC
+A new Flutter plugin project.
+                       DESC
+  s.homepage         = 'http://example.com'
+  s.license          = { :file => '../LICENSE' }
+  s.author           = { 'Your Company' => 'email@example.com' }
+  s.source           = { :path => '.' }
+  s.source_files = 'Classes/**/*'
+  s.dependency 'Flutter'
+  s.dependency 'AMap3DMap', '~> 10.1.200'  # 3D地图SDK
+  s.platform = :ios, '12.0'
+
+  # Flutter.framework does not contain a i386 slice.
+  s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }
+  s.swift_version = '5.0'
+
+  # If your plugin requires a privacy manifest, for example if it uses any
+  # required reason APIs, update the PrivacyInfo.xcprivacy file to describe your
+  # plugin's privacy impact, and then uncomment this line. For more information,
+  # see https://developer.apple.com/documentation/bundleresources/privacy_manifest_files
+  # s.resource_bundles = {'map_amap_ios_privacy' => ['Resources/PrivacyInfo.xcprivacy']}
+end

+ 8 - 0
plugins/map_amap_ios/lib/map_amap_ios.dart

@@ -0,0 +1,8 @@
+
+import 'map_amap_ios_platform_interface.dart';
+
+class MapAmapIos {
+  Future<String?> getPlatformVersion() {
+    return MapAmapIosPlatform.instance.getPlatformVersion();
+  }
+}

+ 17 - 0
plugins/map_amap_ios/lib/map_amap_ios_method_channel.dart

@@ -0,0 +1,17 @@
+import 'package:flutter/foundation.dart';
+import 'package:flutter/services.dart';
+
+import 'map_amap_ios_platform_interface.dart';
+
+/// An implementation of [MapAmapIosPlatform] that uses method channels.
+class MethodChannelMapAmapIos extends MapAmapIosPlatform {
+  /// The method channel used to interact with the native platform.
+  @visibleForTesting
+  final methodChannel = const MethodChannel('map_amap_ios');
+
+  @override
+  Future<String?> getPlatformVersion() async {
+    final version = await methodChannel.invokeMethod<String>('getPlatformVersion');
+    return version;
+  }
+}

+ 29 - 0
plugins/map_amap_ios/lib/map_amap_ios_platform_interface.dart

@@ -0,0 +1,29 @@
+import 'package:plugin_platform_interface/plugin_platform_interface.dart';
+
+import 'map_amap_ios_method_channel.dart';
+
+abstract class MapAmapIosPlatform extends PlatformInterface {
+  /// Constructs a MapAmapIosPlatform.
+  MapAmapIosPlatform() : super(token: _token);
+
+  static final Object _token = Object();
+
+  static MapAmapIosPlatform _instance = MethodChannelMapAmapIos();
+
+  /// The default instance of [MapAmapIosPlatform] to use.
+  ///
+  /// Defaults to [MethodChannelMapAmapIos].
+  static MapAmapIosPlatform get instance => _instance;
+
+  /// Platform-specific implementations should set this with their own
+  /// platform-specific class that extends [MapAmapIosPlatform] when
+  /// they register themselves.
+  static set instance(MapAmapIosPlatform instance) {
+    PlatformInterface.verifyToken(instance, _token);
+    _instance = instance;
+  }
+
+  Future<String?> getPlatformVersion() {
+    throw UnimplementedError('platformVersion() has not been implemented.');
+  }
+}

+ 69 - 0
plugins/map_amap_ios/pubspec.yaml

@@ -0,0 +1,69 @@
+name: map_amap_ios
+description: "A new Flutter plugin project."
+version: 0.0.1
+homepage:
+
+environment:
+  sdk: ^3.8.1
+  flutter: '>=3.3.0'
+
+dependencies:
+  flutter:
+    sdk: flutter
+  plugin_platform_interface: ^2.0.2
+
+dev_dependencies:
+  flutter_test:
+    sdk: flutter
+  flutter_lints: ^5.0.0
+
+# For information on the generic Dart part of this file, see the
+# following page: https://dart.dev/tools/pub/pubspec
+
+# The following section is specific to Flutter packages.
+flutter:
+  # This section identifies this Flutter project as a plugin project.
+  # The 'pluginClass' specifies the class (in Java, Kotlin, Swift, Objective-C, etc.)
+  # which should be registered in the plugin registry. This is required for
+  # using method channels.
+  # The Android 'package' specifies package in which the registered class is.
+  # This is required for using method channels on Android.
+  # The 'ffiPlugin' specifies that native code should be built and bundled.
+  # This is required for using `dart:ffi`.
+  # All these are used by the tooling to maintain consistency when
+  # adding or updating assets for this project.
+  plugin:
+    platforms:
+      ios:
+        pluginClass: MapAmapIosPlugin
+
+  # To add assets to your plugin package, add an assets section, like this:
+  # assets:
+  #   - images/a_dot_burr.jpeg
+  #   - images/a_dot_ham.jpeg
+  #
+  # For details regarding assets in packages, see
+  # https://flutter.dev/to/asset-from-package
+  #
+  # An image asset can refer to one or more resolution-specific "variants", see
+  # https://flutter.dev/to/resolution-aware-images
+
+  # To add custom fonts to your plugin package, add a fonts section here,
+  # in this "flutter" section. Each entry in this list should have a
+  # "family" key with the font family name, and a "fonts" key with a
+  # list giving the asset and other descriptors for the font. For
+  # example:
+  # fonts:
+  #   - family: Schyler
+  #     fonts:
+  #       - asset: fonts/Schyler-Regular.ttf
+  #       - asset: fonts/Schyler-Italic.ttf
+  #         style: italic
+  #   - family: Trajan Pro
+  #     fonts:
+  #       - asset: fonts/TrajanPro.ttf
+  #       - asset: fonts/TrajanPro_Bold.ttf
+  #         weight: 700
+  #
+  # For details regarding fonts in packages, see
+  # https://flutter.dev/to/font-from-package

+ 27 - 0
plugins/map_amap_ios/test/map_amap_ios_method_channel_test.dart

@@ -0,0 +1,27 @@
+import 'package:flutter/services.dart';
+import 'package:flutter_test/flutter_test.dart';
+import 'package:map_amap_ios/map_amap_ios_method_channel.dart';
+
+void main() {
+  TestWidgetsFlutterBinding.ensureInitialized();
+
+  MethodChannelMapAmapIos platform = MethodChannelMapAmapIos();
+  const MethodChannel channel = MethodChannel('map_amap_ios');
+
+  setUp(() {
+    TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger.setMockMethodCallHandler(
+      channel,
+      (MethodCall methodCall) async {
+        return '42';
+      },
+    );
+  });
+
+  tearDown(() {
+    TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger.setMockMethodCallHandler(channel, null);
+  });
+
+  test('getPlatformVersion', () async {
+    expect(await platform.getPlatformVersion(), '42');
+  });
+}

+ 29 - 0
plugins/map_amap_ios/test/map_amap_ios_test.dart

@@ -0,0 +1,29 @@
+import 'package:flutter_test/flutter_test.dart';
+import 'package:map_amap_ios/map_amap_ios.dart';
+import 'package:map_amap_ios/map_amap_ios_platform_interface.dart';
+import 'package:map_amap_ios/map_amap_ios_method_channel.dart';
+import 'package:plugin_platform_interface/plugin_platform_interface.dart';
+
+class MockMapAmapIosPlatform
+    with MockPlatformInterfaceMixin
+    implements MapAmapIosPlatform {
+
+  @override
+  Future<String?> getPlatformVersion() => Future.value('42');
+}
+
+void main() {
+  final MapAmapIosPlatform initialPlatform = MapAmapIosPlatform.instance;
+
+  test('$MethodChannelMapAmapIos is the default instance', () {
+    expect(initialPlatform, isInstanceOf<MethodChannelMapAmapIos>());
+  });
+
+  test('getPlatformVersion', () async {
+    MapAmapIos mapAmapIosPlugin = MapAmapIos();
+    MockMapAmapIosPlatform fakePlatform = MockMapAmapIosPlatform();
+    MapAmapIosPlatform.instance = fakePlatform;
+
+    expect(await mapAmapIosPlugin.getPlatformVersion(), '42');
+  });
+}

+ 3 - 3
pubspec.lock

@@ -874,10 +874,10 @@ packages:
       relative: true
     source: path
     version: "0.0.1"
-  map_mapkit_ios:
+  map_amap_ios:
     dependency: "direct main"
     description:
-      path: "plugins/map_mapkit_ios"
+      path: "plugins/map_amap_ios"
       relative: true
     source: path
     version: "0.0.1"
@@ -1712,5 +1712,5 @@ packages:
     source: hosted
     version: "3.1.3"
 sdks:
-  dart: ">=3.8.0 <4.0.0"
+  dart: ">=3.8.1 <4.0.0"
   flutter: ">=3.29.0"