MapDataSource class

VectorMap data source.

Constructors

MapDataSource.geometries(List<MapGeometry> geometries)
Loads a MapDataSource from geometries. MapDataSource features will have no properties.
factory

Properties

bounds Rect?
final
features UnmodifiableMapView<int, MapFeature>
final
hashCode int
The hash code for this object.
no setterinherited
pointsCount int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getPropertyLimits(String key) PropertyLimits?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromFeatures(List<MapFeature> features) MapDataSource
Create a MapDataSource from a list of MapFeature.
geoJson({required String geoJson, String? labelKey, List<String>? keys, List<String>? parseToNumber, String? colorKey, ColorValueFormat colorValueFormat = ColorValueFormat.hex}) Future<MapDataSource>
Loads a MapDataSource from GeoJSON.