bug fixed layers turning off
This commit is contained in:
1 parent
bb4114df8b
commit
ec052d2e94
2 files changed
+15
-1
No files matched your search
@@ -20,6 +20,7 @@ function newLayer () {
|
|||||||
plotterTypeIcon: undefined,
|
plotterTypeIcon: undefined,
|
||||||
baseAssetIcon: undefined,
|
baseAssetIcon: undefined,
|
||||||
quotedAssetIcon: undefined,
|
quotedAssetIcon: undefined,
|
||||||
|
checkStatusAtShutDown: checkStatusAtShutDown,
|
||||||
physics: physics,
|
physics: physics,
|
||||||
draw: draw,
|
draw: draw,
|
||||||
turnOff: turnOff,
|
turnOff: turnOff,
|
||||||
@@ -230,6 +231,17 @@ function newLayer () {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function checkStatusAtShutDown () {
|
||||||
|
/* Mechanism to recover a layer that was left loading the last time the browser was shut dowm. */
|
||||||
|
let storedValue = loadPropertyFromNodeConfig(thisObject.payload, 'status')
|
||||||
|
if (storedValue !== undefined) {
|
||||||
|
if (storedValue === LAYER_STATUS.LOADING) {
|
||||||
|
resetProgressBars()
|
||||||
|
changeStatusTo(LAYER_STATUS.LOADING)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function getContainer (point) {
|
function getContainer (point) {
|
||||||
if (panelsVisibleButton !== undefined) {
|
if (panelsVisibleButton !== undefined) {
|
||||||
let container = panelsVisibleButton.getContainer(point)
|
let container = panelsVisibleButton.getContainer(point)
|
||||||
|
|||||||
@@ -163,7 +163,9 @@ function newLayersPanel () {
|
|||||||
layer.onLayerStatusChangedEventSuscriptionId = layer.container.eventHandler.listenToEvent('Status Changed', onLayerStatusChanged)
|
layer.onLayerStatusChangedEventSuscriptionId = layer.container.eventHandler.listenToEvent('Status Changed', onLayerStatusChanged)
|
||||||
layer.onMouseWheelEventSuscriptionId = layer.container.eventHandler.listenToEvent('onMouseWheel', onMouseWheel)
|
layer.onMouseWheelEventSuscriptionId = layer.container.eventHandler.listenToEvent('onMouseWheel', onMouseWheel)
|
||||||
|
|
||||||
return layer
|
layer.checkStatusAtShutDown()
|
||||||
|
|
||||||
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user