OwlnextMap constructor

const OwlnextMap({
  1. Key? key,
  2. required List<TileLayerProvider> tiles,
  3. required MapController mapController,
  4. bool? showControls = true,
  5. int? authorizedActions = InteractiveFlag.all,
  6. required MapLocation mapLocation,
  7. required List<Marker> markers,
  8. void handleClickMap(
    1. TapPosition,
    2. LatLng
    )?,
  9. void handleClickLayer(
    1. TapDownDetails details,
    2. Object tappedObject
    )?,
  10. void onMouseMoved(
    1. LatLng newCoordinates
    )?,
  11. void onPositionChanged(
    1. MapCamera mapCamera
    )?,
  12. double? maxZoom,
  13. double? minZoom,
  14. TileLayer? overrideTile,
  15. PolygonLayer<Object>? boundingBox,
  16. Widget? additionnalInteractionWidget,
  17. required List<InterractiveMapLayer> tracableLayers,
  18. InterractiveLayerHoverBuilder? hovered,
  19. Future<void> onMapScreenshot(
    1. Uint8List? screenshotBytes
    )?,
  20. List<MapControlBlock>? controlBlocks,
  21. void onScreenshotTriggerAvailable(
    1. Future<void> ()
    )?,
})

Implementation

const OwlnextMap({
  super.key,
  required this.tiles,
  required this.mapController,
  this.showControls = true,
  this.authorizedActions = InteractiveFlag.all,
  required this.mapLocation,
  required this.markers,
  this.handleClickMap,
  this.handleClickLayer,
  this.onMouseMoved,
  this.onPositionChanged,
  this.maxZoom,
  this.minZoom,
  this.overrideTile,
  this.boundingBox,
  this.additionnalInteractionWidget,
  required this.tracableLayers,
  this.hovered,
  this.onMapScreenshot,
  this.controlBlocks,
  this.onScreenshotTriggerAvailable,
});