invalidateStyleCustomGeometrySourceTile method
- String sourceId,
- CanonicalTileID tileId
Set tile data of a custom geometry.
@param sourceId A style source identifier.
@param tileId A canonical tile id of the tile.
@param featureCollection An array with the features to add.
Invalidate tile for provided custom geometry source.
@param sourceId A style source identifier,.
@param tileId A canonical tile id of the tile.
@return A string describing an error if the operation was not successful, empty otherwise.
Implementation
Future<void> invalidateStyleCustomGeometrySourceTile(
String sourceId, CanonicalTileID tileId) async {
const String __pigeon_channelName =
'dev.flutter.pigeon.mapbox_maps_flutter.StyleManager.invalidateStyleCustomGeometrySourceTile';
final BasicMessageChannel<Object?> __pigeon_channel =
BasicMessageChannel<Object?>(
__pigeon_channelName,
pigeonChannelCodec,
binaryMessenger: __pigeon_binaryMessenger,
);
final List<Object?>? __pigeon_replyList = await __pigeon_channel
.send(<Object?>[sourceId, tileId]) as List<Object?>?;
if (__pigeon_replyList == null) {
throw _createConnectionError(__pigeon_channelName);
} else if (__pigeon_replyList.length > 1) {
throw PlatformException(
code: __pigeon_replyList[0]! as String,
message: __pigeon_replyList[1] as String?,
details: __pigeon_replyList[2],
);
} else {
return;
}
}