geojson2/default_features library

Classes

GeoJsonStyleDefaults
Default values for default object builders. Functions defaultOnPoint, defaultOnPolyline, and defaultOnPolygon use values from this object for properties missing in GeoJSON objects.

Functions

defaultOnPoint(LatLng point, Map<String, dynamic> props, {GeoJsonStyleDefaults? defaults}) → Marker
Default implementation for GeoJsonLayer.onPoint. Parses object properties to determine marker style. Those properties are supported:
defaultOnPolygon(List<LatLng> points, List<List<LatLng>>? holes, Map<String, dynamic> props, {GeoJsonStyleDefaults? defaults}) → Polygon<Object>
Default implementation for GeoJsonLayer.onPolygon. Parses object properties to determine polygon style. Those properties are supported:
defaultOnPolyline(List<LatLng> points, Map<String, dynamic> props, {GeoJsonStyleDefaults? defaults}) → Polyline<Object>
Default implementation for GeoJsonLayer.onPolyline. Parses object properties to determine polyline style. Those properties are supported: