OsmWebWidget constructor

const OsmWebWidget({
  1. Key? key,
  2. required BaseMapController controller,
  3. UserTrackingOption? userTrackingOption,
  4. OnGeoPointClicked? onGeoPointClicked,
  5. OnLocationChanged? onLocationChanged,
  6. OnMapMoved? onMapMoved,
  7. required ValueNotifier<bool> mapIsReadyListener,
  8. Widget? mapIsLoading,
  9. required List<GlobalKey<State<StatefulWidget>>> globalKeys,
  10. Map<String, GlobalKey<State<StatefulWidget>>> staticIconGlobalKeys = const {},
  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,
  22. bool isStatic = false,
})

Implementation

const OsmWebWidget({
  super.key,
  required this.controller,
  this.userTrackingOption,
  this.onGeoPointClicked,
  this.onLocationChanged,
  this.onMapMoved,
  required this.mapIsReadyListener,
  this.mapIsLoading,
  required this.globalKeys,
  this.staticIconGlobalKeys = const {},
  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,
  this.isStatic = false,
});