maplibre_gl_platform_interface
library
Classes
-
Annotation
-
Base interface for all data-driven map annotations drawn via
style layers (symbols, lines, fills, circles, etc.).
-
ArgumentCallbacks<T>
-
Mutable collection of ArgumentCallback instances, itself an ArgumentCallback.
-
CameraPosition
-
The position of the map "camera", the view point from which the world is
shown in the map view. Aggregates the camera's target geographical
location, its zoom level, tilt angle, and bearing.
-
CameraTargetBounds
-
Bounds for the map camera target.
Used with
MapLibreMapOptions to wrap a LatLngBounds value. This allows
distinguishing between specifying an unbounded target (null LatLngBounds)
from not specifying anything (null CameraTargetBounds).
-
CameraUpdate
-
Defines a camera move, supporting absolute moves as well as moves relative
the current position.
-
Circle
-
-
CircleOptions
-
Configuration options for Circle instances.
-
Fill
-
-
FillOptions
-
Configuration options for Fill instances.
-
GeojsonSourceProperties
-
-
ImageSourceProperties
-
An image drawn from a url over four corners of the map. For image bytes, use
MapLibreMapController.addImageSource.
-
LatLng
-
A pair of latitude and longitude coordinates, stored as degrees.
-
LatLngBounds
-
A latitude/longitude aligned rectangle.
-
LatLngQuad
-
A geographical area representing a non-aligned quadrilateral
This class does not wrap values to the world bounds
-
LightProperties
-
Properties of the style's
light root object.
-
Line
-
-
LineOptions
-
Configuration options for Line instances.
-
LocationEnginePlatforms
-
Location engine properties that apply across all platforms.
-
LocationSource
-
Selects which source feeds location updates into the map's user-location
component (the "puck").
-
ManualLocationSource
-
An app-provided location source.
-
ManualLocationUpdate
-
An app-provided location update, pushed into the map's user-location
component via
MapLibreMapController.updateManualLocation.
-
MapLibreGlobalPlatform
-
Platform hooks for operations that are global to the plugin rather than
tied to a single map, so they can run before any map widget exists.
-
MapLibreJsSource
-
Where the web implementation loads MapLibre GL JS from.
-
MapLibrePlatform
-
-
MinMaxZoomPreference
-
Preferred bounds for map camera zoom level.
Used with
MapLibreMapOptions to wrap min and max zoom. This allows
distinguishing between specifying unbounded zooming (null minZoom and
maxZoom) from not specifying anything (null MinMaxZoomPreference).
-
MyLocationStyle
-
Colors of the user-location puck shown when
myLocationEnabled is true.
-
OfflineRegion
-
Description of a downloaded region including its identifier.
-
OfflineRegionDefinition
-
Description of region to be downloaded. Identifier will be generated when
the download is initiated.
-
OfflineRegionStatus
-
Status of an offline region's download.
-
PlatformLocationSource
-
The default location source: the platform's native location engine drives
the user-location component.
-
RasterDemSourceProperties
-
-
RasterSourceProperties
-
-
RequestParameters
-
-
SkyProperties
-
Properties of the style's
sky root object.
-
SourceProperties
-
-
Symbol
-
-
SymbolOptions
-
Configuration options for Symbol instances.
-
TerrainProperties
-
Properties of the style's
terrain root object.
-
UserHeading
-
Type represents a geomagnetic value, measured in microteslas, relative to a
device axis in three dimensional space.
-
UserLocation
-
User's observed location
-
VectorSourceProperties
-
-
VideoSourceProperties
-
A video drawn over four corners of the map.
Functions
-
decodeGeoJson(String text)
→ ({Object? data, String? error})
-
text decoded, and why it is not the JSON text of a GeoJSON object
MapLibre can read, or a null error when it is. See geoJsonError.
-
encodeUrl(String text)
→ String?
-
text as a url MapLibre loads, or null when it is empty or cannot be a
url at all.
-
geoJsonError(Object? data, {GeoJsonFeatureVisitor? onFeature})
→ String?
-
Why
data is not GeoJSON MapLibre can read, or null when it is.
-
geoJsonFeatureError(Object? data, {GeoJsonFeatureVisitor? onFeature})
→ String?
-
Why
data is not a GeoJSON Feature MapLibre can read, or null when it is.
See geoJsonError.
-
geoJsonTextError(String text)
→ String?
-
Why
text is not the JSON text of a GeoJSON object MapLibre can read, or
null when it is. See geoJsonError.
-
invalidGeoJson(String sourceId, String reason)
→ PlatformException
-
The PlatformException every platform answers for the data of the GeoJSON
source
sourceId that geoJsonError rejects for reason.
-
invalidGeoJsonFeature(String sourceId, String reason)
→ PlatformException
-
The PlatformException every platform answers for a feature of the GeoJSON
source
sourceId that geoJsonFeatureError rejects for reason.
-
jsonValueOf(Object? value)
→ Object?
-
value as jsonEncode writes it: value itself when it is null, a bool,
a number, a string, a list or a map, and what its toJson() returns
otherwise. A value without toJson() comes back as it is, and
jsonEncode would fail on it.
-
normalizeSource(Map<String, dynamic> source)
→ Map<String, dynamic>
-
source, the JSON of a source, as every platform hands it to MapLibre,
so the same properties load the same data everywhere.
-
shapeStyleProperties(Map entry)
→ Map<String, dynamic>
-
Normalizes a style entry (a layer or a source, in MapLibre style-spec form)
into the one shape MapLibrePlatform.getLayerProperties and
MapLibrePlatform.getSourceProperties promise on every platform.
-
translateFillOptions(FillOptions options, LatLng delta)
→ FillOptions
-