invalidateCustomGeometrySourceRegion method

Future<CommandCompletion> invalidateCustomGeometrySourceRegion(
  1. String sourceId,
  2. LatLngBounds bounds
)

Makes a custom geometry source ask again for the tiles in bounds that the map still needs.

See mln_map_invalidate_custom_geometry_source_region in the C API reference.

Errors:

  • Status.notFound when the style has no source named sourceId.
  • Status.invalidArgument when the source named sourceId isn't a custom geometry source.

Implementation

Future<CommandCompletion> invalidateCustomGeometrySourceRegion(
  String sourceId,
  LatLngBounds bounds,
) => _command(
  (arena, completion) => raw.mln_map_invalidate_custom_geometry_source_region(
    _handle.raw,
    nativeStringView(sourceId, arena).value,
    _writeLatLngBounds(bounds, arena).ref,
    completion,
    nativeDiagnostic,
  ),
);