OlaMapView constructor

const OlaMapView({
  1. Key? key,
  2. required String apiKey,
  3. String tileUrl = kOlaMapsDefaultTileUrl,
  4. Object? language,
  5. bool mode3d = false,
  6. String? threeDTileset,
  7. String projectId = '',
  8. String? userId,
  9. void onMapCreated(
    1. int id
    )?,
  10. void onControllerReady(
    1. OlaMapController controller
    )?,
  11. void onMapError(
    1. String error
    )?,
  12. OlaLatLng? initialCameraPosition,
  13. double initialZoom = 15,
  14. bool showZoomControls = true,
  15. bool showCompass = true,
  16. bool showMyLocationButton = true,
  17. bool myLocationEnabled = true,
  18. bool zoomGesturesEnabled = true,
  19. bool scrollGesturesEnabled = true,
  20. bool tiltGesturesEnabled = true,
  21. bool rotateGesturesEnabled = true,
  22. 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,
});