MapmyIndiaMap constructor

const MapmyIndiaMap({
  1. Key? key,
  2. required CameraPosition initialCameraPosition,
  3. MapCreatedCallback? onMapCreated,
  4. OnMapErrorCallbcak? onMapError,
  5. OnStyleLoadedCallback? onStyleLoadedCallback,
  6. String? mapmyIndiaStyle,
  7. Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers,
  8. bool compassEnabled = true,
  9. CameraTargetBounds cameraTargetBounds = CameraTargetBounds.unbounded,
  10. MinMaxZoomPreference minMaxZoomPreference = MinMaxZoomPreference.unbounded,
  11. bool rotateGesturesEnabled = true,
  12. bool scrollGesturesEnabled = true,
  13. bool zoomGesturesEnabled = true,
  14. bool tiltGesturesEnabled = true,
  15. bool? doubleClickZoomEnabled,
  16. bool trackCameraPosition = false,
  17. bool myLocationEnabled = false,
  18. MyLocationTrackingMode myLocationTrackingMode = MyLocationTrackingMode.None,
  19. MyLocationRenderMode myLocationRenderMode = MyLocationRenderMode.COMPASS,
  20. Point<num>? logoViewMargins,
  21. CompassViewPosition? compassViewPosition,
  22. Point<num>? compassViewMargins,
  23. AttributionButtonPosition? attributionButtonPosition,
  24. Point<num>? attributionButtonMargins,
  25. OnMapClickCallback? onMapClick,
  26. OnUserLocationUpdated? onUserLocationUpdated,
  27. OnMapClickCallback? onMapLongClick,
  28. OnAttributionClickCallback? onAttributionClick,
  29. OnCameraTrackingDismissedCallback? onCameraTrackingDismissed,
  30. OnCameraTrackingChangedCallback? onCameraTrackingChanged,
  31. OnCameraIdleCallback? onCameraIdle,
  32. OnMapIdleCallback? onMapIdle,
  33. List<AnnotationType> annotationOrder = const [AnnotationType.line, AnnotationType.symbol, AnnotationType.circle, AnnotationType.fill],
  34. List<AnnotationType> annotationConsumeTapEvents = const [AnnotationType.symbol, AnnotationType.fill, AnnotationType.line, AnnotationType.circle],
  35. OnGeoAnalyticsSelected? onGeoAnalyticsSelected,
  36. bool? showGeoAnalyticsInfoWindow,
})

Implementation

const MapmyIndiaMap({
  Key? key,
  required this.initialCameraPosition,
  this.onMapCreated,
  this.onMapError,
  this.onStyleLoadedCallback,
  this.mapmyIndiaStyle,
  this.gestureRecognizers,
  this.compassEnabled = true,
  this.cameraTargetBounds = CameraTargetBounds.unbounded,
  this.minMaxZoomPreference = MinMaxZoomPreference.unbounded,
  this.rotateGesturesEnabled = true,
  this.scrollGesturesEnabled = true,
  this.zoomGesturesEnabled = true,
  this.tiltGesturesEnabled = true,
  this.doubleClickZoomEnabled,
  this.trackCameraPosition = false,
  this.myLocationEnabled = false,
  this.myLocationTrackingMode = MyLocationTrackingMode.None,
  this.myLocationRenderMode = MyLocationRenderMode.COMPASS,
  this.logoViewMargins,
  this.compassViewPosition,
  this.compassViewMargins,
  this.attributionButtonPosition,
  this.attributionButtonMargins,
  this.onMapClick,
  this.onUserLocationUpdated,
  this.onMapLongClick,
  this.onAttributionClick,
  this.onCameraTrackingDismissed,
  this.onCameraTrackingChanged,
  this.onCameraIdle,
  this.onMapIdle,
  this.annotationOrder = const [
    AnnotationType.line,
      AnnotationType.symbol,
      AnnotationType.circle,
      AnnotationType.fill,
    ],
    this.annotationConsumeTapEvents = const [
      AnnotationType.symbol,
      AnnotationType.fill,
      AnnotationType.line,
      AnnotationType.circle,
    ],
    this.onGeoAnalyticsSelected,
    this.showGeoAnalyticsInfoWindow})  : assert(annotationOrder.length <= 4),
      assert(annotationConsumeTapEvents.length > 0),
      super(key: key);