setGeoJsonSync

fun setGeoJsonSync(feature: Feature?)

Deprecated

use {@link GeoJsonOptions#withSynchronousUpdate(Boolean)} to enable synchronous updates on construction

Updates the GeoJson with a single feature. The update is performed synchronously, so the data will be immediately visible and available to query when this method returns.

Parameters

feature

the GeoJSON Feature to set


fun setGeoJsonSync(geometry: Geometry?)

Deprecated

use {@link GeoJsonOptions#withSynchronousUpdate(Boolean)} to enable synchronous updates on construction

Updates the GeoJson with a single geometry. The update is performed synchronously, so the data will be immediately visible and available to query when this method returns.

Parameters

geometry

the GeoJSON Geometry to set


fun setGeoJsonSync(featureCollection: FeatureCollection?)

Deprecated

use {@link GeoJsonOptions#withSynchronousUpdate(Boolean)} to enable synchronous updates on construction

Updates the GeoJson. The update is performed synchronously, so the data will be immediately visible and available to query when this method returns.

Parameters

featureCollection

the GeoJSON FeatureCollection


Deprecated

use {@link GeoJsonOptions#withSynchronousUpdate(Boolean)} to enable synchronous updates on construction

Updates the GeoJson. The update is performed synchronously, so the data will be immediately visible and available to query when this method returns.

Parameters

json

the raw GeoJson FeatureCollection string