VietmapGL constructor
const
VietmapGL({
- Key? key,
- bool logoEnabled = true,
- required CameraPosition initialCameraPosition,
- String styleString = VietmapStyles.demo,
- MapCreatedCallback? onMapCreated,
- OnMapRenderedCallback? onMapRenderedCallback,
- OnMapRenderedCallback? onMapFirstRenderedCallback,
- OnStyleLoadedCallback? onStyleLoadedCallback,
- 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 dragEnabled = true,
- bool trackCameraPosition = false,
- bool myLocationEnabled = false,
- MyLocationTrackingMode myLocationTrackingMode = MyLocationTrackingMode.none,
- MyLocationRenderMode myLocationRenderMode = MyLocationRenderMode.normal,
- Point<
num> ? logoViewMargins, - CompassViewPosition? compassViewPosition,
- Point<
num> ? compassViewMargins, - AttributionButtonPosition? attributionButtonPosition = AttributionButtonPosition.bottomRight,
- Point<
num> ? attributionButtonMargins, - Duration? iosLongClickDuration,
- OnMapClickCallback? onMapClick,
- OnUserLocationUpdated? onUserLocationUpdated,
- OnMapClickCallback? onMapLongClick,
- OnCameraTrackingDismissedCallback? onCameraTrackingDismissed,
- OnCameraTrackingChangedCallback? onCameraTrackingChanged,
- OnCameraIdleCallback? onCameraIdle,
- OnMapIdleCallback? onMapIdle,
- bool isCustomizeUserIcon = true,
- List<
AnnotationType> annotationOrder = const [AnnotationType.line, AnnotationType.symbol, AnnotationType.circle, AnnotationType.polygon], - List<
AnnotationType> annotationConsumeTapEvents = const [AnnotationType.symbol, AnnotationType.polygon, AnnotationType.line, AnnotationType.circle],
Implementation
const VietmapGL({
super.key,
this.logoEnabled = true,
required this.initialCameraPosition,
this.styleString = VietmapStyles.demo,
this.onMapCreated,
this.onMapRenderedCallback,
this.onMapFirstRenderedCallback,
this.onStyleLoadedCallback,
// this.locationEnginePlatforms = LocationEnginePlatforms.defaultPlatform,
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.dragEnabled = true,
this.trackCameraPosition = false,
this.myLocationEnabled = false,
this.myLocationTrackingMode = MyLocationTrackingMode.none,
this.myLocationRenderMode = MyLocationRenderMode.normal,
this.logoViewMargins,
this.compassViewPosition,
this.compassViewMargins,
this.attributionButtonPosition = AttributionButtonPosition.bottomRight,
this.attributionButtonMargins,
this.iosLongClickDuration,
this.onMapClick,
this.onUserLocationUpdated,
this.onMapLongClick,
this.onCameraTrackingDismissed,
this.onCameraTrackingChanged,
this.onCameraIdle,
this.onMapIdle,
this.isCustomizeUserIcon = true,
this.annotationOrder = const [
AnnotationType.line,
AnnotationType.symbol,
AnnotationType.circle,
AnnotationType.polygon,
],
this.annotationConsumeTapEvents = const [
AnnotationType.symbol,
AnnotationType.polygon,
AnnotationType.line,
AnnotationType.circle,
],
}) : assert(
myLocationRenderMode == MyLocationRenderMode.normal ||
myLocationEnabled,
"$myLocationRenderMode requires [myLocationEnabled] set to true.",
),
assert(annotationOrder.length <= 4),
assert(annotationConsumeTapEvents.length > 0);