setGeoJsonSourceUrl method
Makes a GeoJSON source load its data from url.
See mln_map_set_geo_json_source_url 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> setGeoJsonSourceUrl(String sourceId, String url) =>
_command(
(arena, completion) => raw.mln_map_set_geo_json_source_url(
_handle.raw,
nativeStringView(sourceId, arena).value,
nativeStringView(url, arena).value,
completion,
nativeDiagnostic,
),
);