toJson method
Converts a MultiPoint to its GeoJSON representation.
Implementation
@override
Map<String, dynamic> toJson() {
return {
'type': 'MultiPoint',
'coordinates': _toListList(coordinates.map((e) => e.coordinates).toList())
};
}
Converts a MultiPoint to its GeoJSON representation.
@override
Map<String, dynamic> toJson() {
return {
'type': 'MultiPoint',
'coordinates': _toListList(coordinates.map((e) => e.coordinates).toList())
};
}