setGeoJsonSourceSynchronousTiling method
Sets whether a GeoJSON source builds its tiles while the map renders.
Building tiles while the map renders, instead of in the background, makes
new data show in the next frame. The setting replaces the
synchronousUpdate member of the source's JSON, which defaults to false.
See mln_map_set_geo_json_source_synchronous_tiling in the
C API reference.
Errors:
Status.notFoundwhen the style has no source namedsourceId.Status.invalidArgumentwhen the source namedsourceIdisn't a GeoJSON source.Status.invalidStatewhile the style isn't loaded, asMapHandle.setStyleUrl()describes.
Implementation
Future<CommandCompletion> setGeoJsonSourceSynchronousTiling(
String sourceId,
bool enabled,
) => _command(
(arena, completion) => raw.mln_map_set_geo_json_source_synchronous_tiling(
_handle.raw,
nativeStringView(sourceId, arena).value,
enabled,
completion,
nativeDiagnostic,
),
);