OsmWebWidget constructor

OsmWebWidget({
  1. Key? key,
  2. required BaseMapController controller,
  3. UserTrackingOption? userTrackingOption,
  4. OnGeoPointClicked? onGeoPointClicked,
  5. OnLocationChanged? onLocationChanged,
  6. required ValueNotifier<bool> mapIsReadyListener,
  7. Widget? mapIsLoading,
  8. required List<GlobalKey<State<StatefulWidget>>> globalKeys,
  9. Map<String, GlobalKey<State<StatefulWidget>>> staticIconGlobalKeys = const {},
  10. MarkerOption? markerOption,
  11. RoadOption? roadConfiguration,
  12. bool showDefaultInfoWindow = false,
  13. bool isPicker = false,
  14. required ValueNotifier<Widget?> dynamicMarkerWidgetNotifier,
  15. List<StaticPositionGeoPoint> staticPoints = const [],
  16. double stepZoom = 1.0,
  17. double initZoom = 2,
  18. double minZoomLevel = 2,
  19. double maxZoomLevel = 18,
  20. dynamic onMapIsReady(
    1. bool
    )?,
  21. UserLocationMaker? userLocationMarker,
})

Implementation

OsmWebWidget({
  Key? key,
  required this.controller,
  this.userTrackingOption,
  this.onGeoPointClicked,
  this.onLocationChanged,
  required this.mapIsReadyListener,
  this.mapIsLoading,
  required this.globalKeys,
  this.staticIconGlobalKeys = const {},
  this.markerOption,
  this.roadConfiguration,
  this.showDefaultInfoWindow = false,
  this.isPicker = false,
  required this.dynamicMarkerWidgetNotifier,
  this.staticPoints = const [],
  this.stepZoom = 1.0,
  this.initZoom = 2,
  this.minZoomLevel = 2,
  this.maxZoomLevel = 18,
  this.onMapIsReady,
  this.userLocationMarker,
}) : super(key: key);