getGeoJSON method

Future<Map<String, dynamic>?> getGeoJSON([
  1. String? id,
  2. Map<String, dynamic>? options
])

Retrieve geometry data in GeoJSON format.

If id is provided, returns the specific Feature. Otherwise, returns a FeatureCollection containing all features.

Implementation

Future<Map<String, dynamic>?> getGeoJSON([
  String? id,
  Map<String, dynamic>? options,
]) async {
  return await geometry.getGeoJSON(id, options);
}