Vmap constructor
const
Vmap({
- VmapController? controller,
- VmapCamera initialCamera = const VmapCamera(center: LatLng(0, 0), zoom: 1),
- VmapStyle style = VmapStyle.light,
- VmapOverlay? overlay,
- List<
VmapStyleEdit> styleEdits = const [], - List<
VmapFeatureState> featureStates = const [], - List<
VmapMarker> markers = const [], - VmapPins? pins,
- VmapTextStyle textStyle = const VmapTextStyle(),
- VmapLabelOptions labels = const VmapLabelOptions(),
- VmapNetworkOptions network = const VmapNetworkOptions(),
- VmapRenderOptions rendering = const VmapRenderOptions(),
- List<
VmapFont> fonts = const [], - VmapEngine? engine,
- double minZoom = 0,
- double maxZoom = 22,
- double maxPitch = 60,
- VmapGestureOptions gestures = const VmapGestureOptions(),
- bool attribution = true,
- WidgetBuilder? loadingBuilder,
- void onTap(
- LatLng point
- void onFeatureTap(
- VmapFeature feature,
- LatLng point
- List<
String> ? tappableLayers, - void onLongPress(
- LatLng point
- void onCameraMove(
- VmapCamera camera
- void onCameraIdle(
- VmapCamera camera
- VoidCallback? onStyleLoaded,
- VoidCallback? onIdle,
- void onError(
- VmapError error
- String semanticLabel = 'Map',
- Key? key,
A map of style, at initialCamera or where controller says.
Implementation
const Vmap({
this.controller,
this.initialCamera = const VmapCamera(center: LatLng(0, 0), zoom: 1),
this.style = VmapStyle.light,
this.overlay,
this.styleEdits = const [],
this.featureStates = const [],
this.markers = const [],
this.pins,
this.textStyle = const VmapTextStyle(),
this.labels = const VmapLabelOptions(),
this.network = const VmapNetworkOptions(),
this.rendering = const VmapRenderOptions(),
this.fonts = const [],
this.engine,
this.minZoom = 0,
this.maxZoom = 22,
this.maxPitch = 60,
this.gestures = const VmapGestureOptions(),
this.attribution = true,
this.loadingBuilder,
this.onTap,
this.onFeatureTap,
this.tappableLayers,
this.onLongPress,
this.onCameraMove,
this.onCameraIdle,
this.onStyleLoaded,
this.onIdle,
this.onError,
this.semanticLabel = 'Map',
super.key,
});