setFeatureForGeoJsonSource method

Future<void> setFeatureForGeoJsonSource(
  1. String sourceId,
  2. Map<String, dynamic> geojsonFeature
)
override

Implementation

Future<void> setFeatureForGeoJsonSource(
    String sourceId, Map<String, dynamic> geojsonFeature) async {
  await _channel.invokeMethod('source#setFeature', <String, dynamic>{
    'sourceId': sourceId,
    'geojsonFeature': jsonEncode(geojsonFeature)
  });
}