Vmap constructor

const Vmap({
  1. VmapController? controller,
  2. VmapCamera initialCamera = const VmapCamera(center: LatLng(0, 0), zoom: 1),
  3. VmapStyle style = VmapStyle.light,
  4. VmapOverlay? overlay,
  5. List<VmapStyleEdit> styleEdits = const [],
  6. List<VmapFeatureState> featureStates = const [],
  7. List<VmapMarker> markers = const [],
  8. VmapPins? pins,
  9. VmapTextStyle textStyle = const VmapTextStyle(),
  10. VmapLabelOptions labels = const VmapLabelOptions(),
  11. VmapNetworkOptions network = const VmapNetworkOptions(),
  12. VmapRenderOptions rendering = const VmapRenderOptions(),
  13. List<VmapFont> fonts = const [],
  14. VmapEngine? engine,
  15. double minZoom = 0,
  16. double maxZoom = 22,
  17. double maxPitch = 60,
  18. VmapGestureOptions gestures = const VmapGestureOptions(),
  19. bool attribution = true,
  20. WidgetBuilder? loadingBuilder,
  21. void onTap(
    1. LatLng point
    )?,
  22. void onFeatureTap(
    1. VmapFeature feature,
    2. LatLng point
    )?,
  23. List<String>? tappableLayers,
  24. void onLongPress(
    1. LatLng point
    )?,
  25. void onCameraMove(
    1. VmapCamera camera
    )?,
  26. void onCameraIdle(
    1. VmapCamera camera
    )?,
  27. VoidCallback? onStyleLoaded,
  28. VoidCallback? onIdle,
  29. void onError(
    1. VmapError error
    )?,
  30. String semanticLabel = 'Map',
  31. 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,
});