map_constants.dart 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. class MapConstants {
  2. MapConstants._();
  3. //定位持续流通道名称
  4. static const String mapLocationEventChannel =
  5. 'atmob_map_location_event_channel';
  6. //地图SDK通道名称
  7. static const String mapMethodChannel = 'atmob_map_method_channel';
  8. //地图widget通道
  9. static const String mapViewChannelName = "com.atmob.flutter_map/map_view_";
  10. //地图widget_viewType名称
  11. static const String mapWidgetViewType = "com.atmob.flutter.map";
  12. /// *********************************************************************************************************************
  13. //SDK方法名称
  14. static const String init = 'init';
  15. static const String getPlatformMapName = 'getPlatformMapName';
  16. static const String startLocation = "startLocation";
  17. //地图相关方法名称
  18. static const String methodMapMoveCamera = "map#moveCamera";
  19. static const String methodMapAnimateCamera = "map#animateCamera";
  20. static const String methodMapClear = "map#clear";
  21. static const String methodMoveToSuitableLocation =
  22. "map#moveToSuitableLocation";
  23. static const String methodInteractionEnabled = "map#interactionEnabled";
  24. static const String methodMapLogoVisible = "map#logoVisible";
  25. //标记物相关方法名称
  26. static const String methodUpdateOrAddMarkers = "marker#updateOrAddMarkers";
  27. static const String methodReplaceAllMarkers = "marker#replaceAllMarkers";
  28. static const String methodMarkerOnTap = "marker#onTap";
  29. static const String methodMarkerRemoveMarker = "marker#removeMarker";
  30. //轨迹纠偏
  31. static const String methodQueryProcessedTrace = "trace#queryProcessedTrace";
  32. //polyline
  33. static const String methodAddPolyline = "polyline#addPolyline";
  34. static const String methodRemovePolyline = "polyline#removePolyline";
  35. static const String methodClearAllPolylines = "polyline#clearAllPolylines";
  36. }