The part of a POIsModuleConfig that survives JSON, for saving getConfig() and replaying it with applyConfig().
getConfig()
applyConfig()
It leaves out icon.categoryIcons[].image as an HTMLImageElement, which a replay adds back in code. See SerializableCustomImage.
icon.categoryIcons[].image
HTMLImageElement
const saved = JSON.stringify(pois.getConfig());const state: POIsModuleSerializableConfig = JSON.parse(saved);pois.applyConfig(state); Copy
const saved = JSON.stringify(pois.getConfig());const state: POIsModuleSerializableConfig = JSON.parse(saved);pois.applyConfig(state);
The part of a POIsModuleConfig that survives JSON, for saving
getConfig()and replaying it withapplyConfig().