More cleaning

This commit is contained in:
Luis Fernando Molina committed 2020-01-30 16:46:17 +01:00
1 parent 37debc55cf
commit addfff4585
3 files changed
+1 -23

No files matched your search

-8
View File
@@ -86,14 +86,6 @@ function newPlottersManager () {
/* Listen to the event of change of status */
onLayerStatusChangedEventSuscriptionId = layersPanel.container.eventHandler.listenToEvent('Layer Status Changed', onLayerStatusChanged)
/* Lets get all the cards that needs to be loaded. */
let loadingLayers = layersPanel.getLoadingLayers()
for (let i = 0; i < loadingLayers.length; i++) {
/* For each one, we will initialize the associated plotter. */
initializePlotter(loadingLayers[i])
}
} catch (err) {
if (ERROR_LOG === true) { logger.write('[ERROR] initialize -> err = ' + err.stack) }
}
+1 -1
View File
@@ -169,7 +169,7 @@ function newTimelineChart () {
thisObject.plotterManager.fitFunction = thisObject.fitFunction
thisObject.plotterManager.payload = thisObject.payload
thisObject.plotterManager.initialize(thisObject.layersManager, DEFAULT_EXCHANGE, DEFAULT_MARKET)
thisObject.plotterManager.initialize(thisObject.layersManager)
thisObject.plotterManager.setTimeFrame(timeFrame)
thisObject.plotterManager.setDatetime(datetime)
}
-14
View File
@@ -6,7 +6,6 @@ function newLayersPanel () {
layers: [],
payload: undefined,
isVisible: true,
getLoadingLayers: getLoadingLayers,
physics: physics,
draw: draw,
getContainer: getContainer,
@@ -196,19 +195,6 @@ function newLayersPanel () {
thisObject.container.eventHandler.raiseEvent('Layer Status Changed', layer)
}
function getLoadingLayers () {
/* Returns all thisObject.layers which status is LOADING */
let onProducts = []
for (let i = 0; i < thisObject.layers.length; i++) {
if (thisObject.layers[i].status === LAYER_STATUS.LOADING) {
onProducts.push(thisObject.layers[i])
}
}
return onProducts
}
function getContainer (point) {
let container