maplibre library

Classes

BackgroundStyleLayer Style
A simple background layer.
BBox
Please make sure, you arrange your parameters like this: Longitude 1, Latitude 1, Altitude 1 (optional), Longitude 2, Latitude 2, Altitude 2 (optional) You can either specify 4 or 6 parameters If you are using the default constructor with two dimensional positions (lng + lat only), please use the constructor like this: BBox(lng1, lat1, lng2, lat2);
CircleLayer Layers
A Point layer.
CircleStyleLayer Style
A layer that contains circles.
CoordinateType
Coordinate types, following https://tools.ietf.org/html/rfc7946#section-4
DownloadProgress Offline
This model class is used to stream the download progress in OfflineManager.downloadRegion.
Feature<T extends GeometryObject>
Feature, as specified here https://tools.ietf.org/html/rfc7946#section-3.2
FeatureCollection<T extends GeometryObject>
FeatureCollection, as specified here https://tools.ietf.org/html/rfc7946#section-3.3
FillExtrusionStyleLayer Style
A layer that contains circles.
FillStyleLayer Style
A layer that contains polygons.
GeoJSONObject
GeoJsonSource Style
A GeoJSON source. Data must be provided via a "data" property, whose value can be a URL or inline GeoJSON. When using in a browser, the GeoJSON data must be on the same domain as the map or served with CORS headers.
GeometryCollection
GeometryCollection, as specified here https://tools.ietf.org/html/rfc7946#section-3.1.8
GeometryObject
GeometryType<T>
HeatmapStyleLayer Style
A layer that contains circles.
HillshadeStyleLayer Style
A layer that contains circles.
ImageSource Style
An image source. The url value contains the image location. The coordinates array contains Positions for the image corners listed in clockwise order: top left, top right, bottom right, bottom left.
Layer<G extends GeometryType<Object>> Layers
This class is the base for all annotation layer classes like MarkerLayer.
LineString
LineString, as specified here https://tools.ietf.org/html/rfc7946#section-3.1.4
LineStyleLayer Style
A layer that contains circles.
LngLatBounds Basic
LatLng bounds class.
LngLatQuad
A class that defines 4 corners.
MapCamera Basic
The current camera position on the map.
MapCompass UI
A compass for flutter_map that shows the map rotation and allows to reset the rotation back to 0.
MapControlButtons UI
Display a zoom-in and zoom-out button to the MapLibreMap by using it in MapLibreMap.children.
MapController Basic
The MapController can be used to control, update and manipulate a rendered MapLibreMap.
MapEvent Events
Base class for all the events emitted by the MapLibreMap.
MapEventCameraIdle Events
Emitted when the map camera enters an idle state.
MapEventClick Events
Emitted when the user clicks on the map.
MapEventDoubleClick Events
Emitted when the user clicks twice in a short amount of time on the map.
MapEventIdle Events
Emitted when the map enters an idle state.
MapEventLongClick Events
Emitted when the user clicks on the map and holds button down at the same location for some time.
MapEventMapCreated Events
Emitted when the native map view has been created.
MapEventMoveCamera Events
Emitted when the map camera changes.
MapEventSecondaryClick Events
Emitted when the user clicks with the secondary button on the map. This would be classically the right mouse button.
MapEventStartMoveCamera Events
Emitted when the map camera changes.
MapEventStyleLoaded Events
Emitted when the map style has been loaded.
MapEventUserInput Events
Emitted when the user interacts with the map in any way. Use this class if you don't care about the type of gesture.
MapGestures Basic
Configure gestures that are enabled on the map.
MapLibreMap Basic
The MapLibreMap widget that can be inserted into the flutter widget tree.
MapOptions Basic
The MapOptions class is used to set default values for the MapLibreMap widget.
MapScalebar UI
Display a scalebar to the MapLibreMap by using it in MapLibreMap.children.
Marker Layers
Model class for a widget marker, can be used in a WidgetLayer.
MarkerLayer Layers
A Point layer.
MultiLineString
MultiLineString, as specified here https://tools.ietf.org/html/rfc7946#section-3.1.5
MultiPoint
MultiPoint, as specified here https://tools.ietf.org/html/rfc7946#section-3.1.3
MultiPolygon
MultiPolygon, as specified here https://tools.ietf.org/html/rfc7946#section-3.1.7
OfflineManager Offline
Use the offline manager to download map regions for offline usage.
OfflineRegion Offline
Model class that represents a map region for offline usage.
PermissionManager Basic
The Permission Manager provides functionality to check if location permissions are granted and can request permissions.
Point
Point, as specified here https://tools.ietf.org/html/rfc7946#section-3.1.2
Polygon
Polygon, as specified here https://tools.ietf.org/html/rfc7946#section-3.1.6
PolygonLayer Layers
A Polygon layer.
PolylineLayer Layers
A LineString layer.
Position
Please make sure, you arrange your parameters like this:
QueriedLayer Basic
Return used for MapController.queryLayers.
RasterDemCustomEncoding Style
Decodes tiles using the redFactor, blueFactor, greenFactor, baseShift parameters.
RasterDemEncoding Style
The encoding used by this source. Mapbox Terrain RGB is used by default.
RasterDemMapboxEncoding Style
Mapbox Terrain RGB tiles. See https://www.mapbox.com/help/access-elevation-data/#mapbox-terrain-rgb for more info.
RasterDemSource Style
A raster DEM source. Only supports Mapbox Terrain RGB and Mapzen Terrarium tiles.
RasterDemTerrariumEncoding Style
Terrarium format PNG tiles. See https://aws.amazon.com/es/public-datasets/terrain/ for more info.
RasterSource Style
A raster tile source.
RasterStyleLayer Style
A layer that contains markers.
Source Style
The base Source class that can't be used directly.
SourceAttribution UI
Display a zoom-in and zoom-out button to the MapLibreMap by using it in MapLibreMap.children.
StyleController Basic
The StyleController can be used to manipulate the style of a MapLibreMap. It can be accessed via MapController.style.
StyleLayer Style
The base Layer class that can't be used directly.
StyleLayerWithSource Style
A StyleLayer that pulls its data from a Source. Basically every layer except BackgroundStyleLayer.
SymbolStyleLayer Style
A layer that contains markers.
VectorSource Style
A vector tile source. Tiles must be in Mapbox Vector Tile format. All geometric coordinates in vector tiles must be between -1 * extent and (extent * 2) - 1 inclusive. All layers that use a vector source must specify a source-layer value.
VideoSource Style
A video source. The urls value is an array. For each URL in the array, a video element source will be created. To support the video across browsers, supply URLs in multiple formats.
WidgetLayer Layers
Use the WidgetLayer to display Widgets on the MapLibreMap by using it in MapLibreMap.children.

Enums

AndroidPlatformViewMode
The different ways a MapLibre map can be displayed on Android.
BearingRenderMode Basic
The mode how render the location on the map. Used in MapController.enableLocation.
BearingTrackMode Basic
The mode how the bearing should get tracked on the map. Used in MapController.trackLocation.
CameraChangeReason Events
The reason the camera is changing.
GeoJSONObjectType
IconAnchor
Part of the icon placed closest to the anchor.
MapProjection
The map projections.
TileScheme Style
Influences the y direction of the tile coordinates.

Constants

circumferenceOfEarth → const double
circumference of the Earth
degree2Radian → const double
pre compiled factor to convert a coordinate in radian to degrees.

Typedefs

MapCreatedCallback = void Function(MapController controller) Basic
Callback that fires once the native MapLibre map has been created for a MapLibreMap widget. It provides the MapController to the user.
MapEventCallback = void Function(MapEvent event) Basic Events
Callback that fires every time a MapEvent gets emitted by the map.
StyleLoadedCallback = void Function(StyleController style) Basic Style
Callback that fires once the map style has successfully loaded. It provides the StyleController to the user.