MapLibrePlatform class abstract

Constructors

MapLibrePlatform()

Methods

addCircleLayer(String sourceId, String layerId, Map<String, dynamic> properties, {String? belowLayerId, String? sourceLayer, double? minzoom, double? maxzoom, dynamic filter, required bool enableInteraction}) Future<void>
addFillExtrusionLayer(String sourceId, String layerId, Map<String, dynamic> properties, {String? belowLayerId, String? sourceLayer, double? minzoom, double? maxzoom, dynamic filter, required bool enableInteraction}) Future<void>
addFillLayer(String sourceId, String layerId, Map<String, dynamic> properties, {String? belowLayerId, String? sourceLayer, double? minzoom, double? maxzoom, dynamic filter, required bool enableInteraction}) Future<void>
addGeoJsonSource(String sourceId, Map<String, dynamic> geojson, {String? promoteId}) Future<void>
addHeatmapLayer(String sourceId, String layerId, Map<String, dynamic> properties, {String? belowLayerId, String? sourceLayer, double? minzoom, double? maxzoom}) Future<void>
addHillshadeLayer(String sourceId, String layerId, Map<String, dynamic> properties, {String? belowLayerId, String? sourceLayer, double? minzoom, double? maxzoom}) Future<void>
addImage(String name, Uint8List bytes, [bool sdf = false]) Future<void>
addImageSource(String imageSourceId, Uint8List bytes, LatLngQuad coordinates) Future<void>
addLayer(String imageLayerId, String imageSourceId, double? minzoom, double? maxzoom) Future<void>
addLayerBelow(String imageLayerId, String imageSourceId, String belowLayerId, double? minzoom, double? maxzoom) Future<void>
addLineLayer(String sourceId, String layerId, Map<String, dynamic> properties, {String? belowLayerId, String? sourceLayer, double? minzoom, double? maxzoom, dynamic filter, required bool enableInteraction}) Future<void>
addRasterLayer(String sourceId, String layerId, Map<String, dynamic> properties, {String? belowLayerId, String? sourceLayer, double? minzoom, double? maxzoom}) Future<void>
addSource(String sourceId, SourceProperties properties) Future<void>
addSymbolLayer(String sourceId, String layerId, Map<String, dynamic> properties, {String? belowLayerId, String? sourceLayer, double? minzoom, double? maxzoom, dynamic filter, required bool enableInteraction}) Future<void>
animateCamera(CameraUpdate cameraUpdate, {Duration? duration}) Future<bool?>
buildView(Map<String, dynamic> creationParams, OnPlatformViewCreatedCallback onPlatformViewCreated, Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers) Widget
dispose() → void
forceResizeWebMap() → void
getFilter(String layerId) Future
getLayerIds() Future<List>
getMetersPerPixelAtLatitude(double latitude) Future<double>
getSourceIds() Future<List>
getTelemetryEnabled() Future<bool>
getVisibleRegion() Future<LatLngBounds>
initPlatform(int id) Future<void>
invalidateAmbientCache() Future
matchMapLanguageWithDeviceDefault() Future<void>
moveCamera(CameraUpdate cameraUpdate) Future<bool?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
queryRenderedFeatures(Point<double> point, List<String> layerIds, List<Object>? filter) Future<List>
queryRenderedFeaturesInRect(Rect rect, List<String> layerIds, String? filter) Future<List>
querySourceFeatures(String sourceId, String? sourceLayerId, List<Object>? filter) Future<List>
removeLayer(String imageLayerId) Future<void>
removeSource(String sourceId) Future<void>
requestMyLocationLatLng() Future<LatLng?>
resizeWebMap() → void
setCameraBounds({required double west, required double north, required double south, required double east, required int padding}) Future<void>
setFeatureForGeoJsonSource(String sourceId, Map<String, dynamic> geojsonFeature) Future<void>
setFilter(String layerId, dynamic filter) Future<void>
setGeoJsonSource(String sourceId, Map<String, dynamic> geojson) Future<void>
setLayerProperties(String layerId, Map<String, dynamic> properties) Future<void>
setLayerVisibility(String layerId, bool visible) Future<void>
setMapLanguage(String language) Future<void>
setTelemetryEnabled(bool enabled) Future<void>
toLatLng(Point<num> screenLocation) Future<LatLng>
toScreenLocation(LatLng latLng) Future<Point<num>>
toScreenLocationBatch(Iterable<LatLng> latLngs) Future<List<Point<num>>>
toString() String
A string representation of this object.
inherited
updateContentInsets(EdgeInsets insets, bool animated) Future<void>
updateImageSource(String imageSourceId, Uint8List? bytes, LatLngQuad? coordinates) Future<void>
updateMapOptions(Map<String, dynamic> optionsUpdate) Future<CameraPosition?>
updateMyLocationTrackingMode(MyLocationTrackingMode myLocationTrackingMode) Future<void>

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

createInstance MapLibrePlatform Function()
The default instance of MapLibrePlatform to use.
getter/setter pair
instance MapLibreMethodChannel
no getter