geojson2/geojson_layer
library
Classes
-
GeoJsonLayer
-
Creates a layer that displays contents of a GeoJSON source.
Typedefs
-
FeatureFilterCallback
= bool Function(String geometryType, Map<String, dynamic> properties)
-
A filtering function that receives a GeoJSON object
geometryType
(can be "Point", "LineString" etc) and its properties. Return
false to skip the object.
-
OnPointCallback
= Marker Function(LatLng point, Map<String, dynamic> properties)
-
A callback function that creates a
Marker instance from a point
geometry and GeoJSON object properties.
-
OnPolygonCallback
= Polygon<Object> Function(List<LatLng> points, List<List<LatLng>>? holes, Map<String, dynamic> properties)
-
A callback function that creates a
Polygon instance from
points that make up the outer ring, a list of holes, and
GeoJSON object properties.
-
OnPolylineCallback
= Polyline<Object> Function(List<LatLng> points, Map<String, dynamic> properties)
-
A callback function that creates a
Polyline instance from
points making up the line, and GeoJSON object properties.