toGeoJson method

  1. @override
Map<String, dynamic> toGeoJson()
override

Implementation

@override
Map<String, dynamic> toGeoJson() {
  final geojson = options.toGeoJson();
  geojson["id"] = id;
  geojson["properties"]["id"] = id;

  return geojson;
}