Layers Manager remembering visible layers

This commit is contained in:
Luis Fernando Molina committed 2020-01-29 12:50:50 +01:00
1 parent 43628bfa29
commit 237e02ff1f
1 file changed
+7
+7
View File
@@ -75,6 +75,12 @@ function newLayersPanel () {
panelTabButton.initialize()
onMouseWheelEventSuscriptionId = thisObject.container.eventHandler.listenToEvent('onMouseWheel', onMouseWheel)
let storedValue = loadPropertyFromNodeConfig(thisObject.payload, 'visibleLayers')
if (storedValue >= 0 && storedValue <= 20) {
desiredVisibleLayers = storedValue
}
isInitialized = true
}
@@ -135,6 +141,7 @@ function newLayersPanel () {
}
desiredPanelHeight = (layerHeight + LAYER_SEPARATION) * desiredVisibleLayers + heatherHeight + footerHeight
calculateVisbleLayers()
savePropertyAtNodeConfig(thisObject.payload, 'visibleLayers', desiredVisibleLayers)
}
function panelSizePhysics () {