The part of a GeometriesModuleConfig that survives JSON, for saving getConfig() and replaying it with applyConfig().
getConfig()
applyConfig()
It leaves out transformFeaturesForDisplay, a function, which a replay adds back in code.
transformFeaturesForDisplay
const saved = JSON.stringify(geometries.getConfig());const state: GeometriesModuleSerializableConfig = JSON.parse(saved);geometries.applyConfig({ ...state, transformFeaturesForDisplay: addAreaLabels }); Copy
const saved = JSON.stringify(geometries.getConfig());const state: GeometriesModuleSerializableConfig = JSON.parse(saved);geometries.applyConfig({ ...state, transformFeaturesForDisplay: addAreaLabels });
The part of a GeometriesModuleConfig that survives JSON, for saving
getConfig()and replaying it withapplyConfig().