MapmyIndiaMap constructor
const
MapmyIndiaMap({
- Key? key,
- required CameraPosition initialCameraPosition,
- MapCreatedCallback? onMapCreated,
- OnMapErrorCallbcak? onMapError,
- OnStyleLoadedCallback? onStyleLoadedCallback,
- String? mapmyIndiaStyle,
- Set<
Factory< ? gestureRecognizers,OneSequenceGestureRecognizer> > - bool compassEnabled = true,
- CameraTargetBounds cameraTargetBounds = CameraTargetBounds.unbounded,
- MinMaxZoomPreference minMaxZoomPreference = MinMaxZoomPreference.unbounded,
- bool rotateGesturesEnabled = true,
- bool scrollGesturesEnabled = true,
- bool zoomGesturesEnabled = true,
- bool tiltGesturesEnabled = true,
- bool? doubleClickZoomEnabled,
- bool trackCameraPosition = false,
- bool myLocationEnabled = false,
- MyLocationTrackingMode myLocationTrackingMode = MyLocationTrackingMode.None,
- MyLocationRenderMode myLocationRenderMode = MyLocationRenderMode.COMPASS,
- Point<
num> ? logoViewMargins, - CompassViewPosition? compassViewPosition,
- Point<
num> ? compassViewMargins, - AttributionButtonPosition? attributionButtonPosition,
- Point<
num> ? attributionButtonMargins, - OnMapClickCallback? onMapClick,
- OnUserLocationUpdated? onUserLocationUpdated,
- OnMapClickCallback? onMapLongClick,
- OnAttributionClickCallback? onAttributionClick,
- OnCameraTrackingDismissedCallback? onCameraTrackingDismissed,
- OnCameraTrackingChangedCallback? onCameraTrackingChanged,
- OnCameraIdleCallback? onCameraIdle,
- OnMapIdleCallback? onMapIdle,
- List<
AnnotationType> annotationOrder = const [AnnotationType.line, AnnotationType.symbol, AnnotationType.circle, AnnotationType.fill], - List<
AnnotationType> annotationConsumeTapEvents = const [AnnotationType.symbol, AnnotationType.fill, AnnotationType.line, AnnotationType.circle], - OnGeoAnalyticsSelected? onGeoAnalyticsSelected,
- 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);