OlaMapView constructor
const
OlaMapView({
- Key? key,
- required String apiKey,
- String tileUrl = kOlaMapsDefaultTileUrl,
- Object? language,
- bool mode3d = false,
- String? threeDTileset,
- String projectId = '',
- String? userId,
- void onMapCreated(
- int id
- void onControllerReady(
- OlaMapController controller
- void onMapError(
- String error
- OlaLatLng? initialCameraPosition,
- double initialZoom = 15,
- bool showZoomControls = true,
- bool showCompass = true,
- bool showMyLocationButton = true,
- bool myLocationEnabled = true,
- bool zoomGesturesEnabled = true,
- bool scrollGesturesEnabled = true,
- bool tiltGesturesEnabled = true,
- bool rotateGesturesEnabled = true,
- bool doubleTapGesturesEnabled = true,
Implementation
const OlaMapView({
super.key,
required this.apiKey,
this.tileUrl = kOlaMapsDefaultTileUrl,
this.language,
this.mode3d = false,
this.threeDTileset,
this.projectId = '',
this.userId,
this.onMapCreated,
this.onControllerReady,
this.onMapError,
this.initialCameraPosition,
this.initialZoom = 15,
this.showZoomControls = true,
this.showCompass = true,
this.showMyLocationButton = true,
this.myLocationEnabled = true,
this.zoomGesturesEnabled = true,
this.scrollGesturesEnabled = true,
this.tiltGesturesEnabled = true,
this.rotateGesturesEnabled = true,
this.doubleTapGesturesEnabled = true,
});