data

Sets GeoJson data property as a String. value could be an URL to a GeoJSON file, or an inline GeoJSON.

The data will be scheduled and applied on a worker thread and no validation happens synchronously. If value is invalid - MapLoadingError with type = metadata will be invoked.

Parameters

value

an URL to a GeoJSON file, or an inline GeoJSON.

dataId

optional metadata to filter the SOURCE_DATA_LOADED events later. Empty string is treated as no data id.