Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #773 from geoadmin/dev_array_sublayers
Browse files Browse the repository at this point in the history
SubLayersIds in an array
  • Loading branch information
oterral committed Oct 31, 2013
2 parents fbe834a + 133bb50 commit 4cfddf4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/map/MapService.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4cfddf4

Please sign in to comment.