maplibre library

Classes

Annotation
This class is the base for all annotation classes like Marker.
AttributionControl
An AttributionControl control presents the map's attribution information. By default, the attribution control is expanded (regardless of map width).
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
A layer that contains circles.
CoordinateType
Coordinate types, following https://tools.ietf.org/html/rfc7946#section-4
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
FillLayer
A layer that contains polygons.
FitBoundsOptions
Options to specify the map bounds.
FullscreenControl
A FullscreenControl control contains a button for toggling the map in and out of fullscreen mode.
GeoJSONObject
GeoJsonSource
A layer that contains circles.
GeolocateControl
A GeolocateControl control provides a button that uses the browser's geolocation API to locate the user on the map.
GeometryCollection
GeometryCollection, as specified here https://tools.ietf.org/html/rfc7946#section-3.1.8
GeometryObject
GeometryType<T>
Layer
The base Layer class that can't be used directly. Use CircleLayer or FillLayer instead.
LineString
LineString, as specified here https://tools.ietf.org/html/rfc7946#section-3.1.4
LogoControl
A LogoControl is a control that adds the watermark.
MapControl
The base MapControl class that is the parent of all web-only user interface buttons.
MapController
The MapController can be used to control, update and manipulate a rendered MapLibreMap.
MapLibreMap
The MapLibreMap widget that can be inserted into the flutter widget tree.
MapOptions
The MapOptions class is used to set default values for the MapLibreMap widget.
Marker
A class that contains the properties for a map marker.
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
A NavigationControl control contains zoom buttons and a compass.
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
Polyline
A class that contains the properties for a line or multi-line on the map.
Position
Please make sure, you arrange your parameters like this:
PositionOptions
Options for the GeolocateControl.
ScaleControl
A ScaleControl control displays the ratio of a distance on the map to the corresponding distance on the ground.
Source
The base Source class that can't be used directly.
TerrainControl
A TerrainControl control contains a button for turning the terrain on and off.

Enums

GeoJSONObjectType
Unit
The unit type for length to use for the ScaleControl

Typedefs

MapCreatedCallback = void Function(MapController controller)
Callback that fires once the native MapLibre map has been created for a MapLibreMap widget. It provides the MapController to the user.
OnClickCallback = void Function(Position point)
Callback that is used for map interactions like MapOptions.onClick.