From 133bb5022ee672a434285c184baa9b40bda1140a Mon Sep 17 00:00:00 2001 From: loicgasser Date: Wed, 30 Oct 2013 17:23:01 +0100 Subject: [PATCH] SubLayersIds in an array --- src/components/map/MapService.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/map/MapService.js b/src/components/map/MapService.js index cff3ea254f..c59657fcc7 100644 --- a/src/components/map/MapService.js +++ b/src/components/map/MapService.js @@ -424,11 +424,11 @@ }); } } else if (layer.type == 'aggregate') { - var subLayerIds = layer.subLayerIds.split(','); - var i, len = subLayerIds.length; + var subLayersIds = layer.subLayersIds; + var i, len = subLayersIds.length; var subLayers = new Array(len); for (i = 0; i < len; i++) { - subLayers[i] = this.getOlLayerById(subLayerIds[i]); + subLayers[i] = this.getOlLayerById(subLayersIds[i]); } olLayer = new ol.layer.Group({ minResolution: layer.minResolution,