invalidateCustomGeometrySourceRegion method
- String sourceId,
- 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.notFoundwhen the style has no source namedsourceId.Status.invalidArgumentwhen the source namedsourceIdisn'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,
),
);