remember Geo Json Source State
Create and rememberSaveable a GeoJsonSourceState using GeoJsonSourceState.Saver. init will be called when the GeoJsonSourceState is first created to configure its initial state.
This API should be used with caution as saving large inlined GeoJsonData has performance impact, consider using remember or other way to retain the data.
This function does not automatically update the GeoJsonSourceState if sourceId is updated. To update state properties imperatively, use LaunchedEffect:
val state = rememberGeoJsonSourceState()
LaunchedEffect(url) {
state.url = StringValue(url)
}Parameters
An optional key to be used as a key for the saved value. If not provided we use the automatically generated by the Compose runtime which is unique for the every exact code location in the composition tree.
The optional sourceId for the source state, by default, a random source ID will be used.
A function initialise this GeoJsonSourceState.