setGeoJson

fun setGeoJson(feature: Feature?)

Updates the GeoJson with a single feature. The update is performed asynchronously, so the data won't be immediately visible or available to query when this method returns.

Parameters

feature

the GeoJSON Feature to set


fun setGeoJson(geometry: Geometry?)

Updates the GeoJson with a single geometry. The update is performed asynchronously, so the data won't be immediately visible or available to query when this method returns.

Parameters

geometry

the GeoJSON Geometry to set


fun setGeoJson(featureCollection: FeatureCollection?)

Updates the GeoJson. The update is performed asynchronously, so the data won't be immediately visible or available to query when this method returns.

Parameters

featureCollection

the GeoJSON FeatureCollection


fun setGeoJson(json: String)

Updates the GeoJson. The update is performed asynchronously, so the data won't be immediately visible or available to query when this method returns.

Parameters

json

the raw GeoJson FeatureCollection string