Skip to content

Commit

Permalink
Fix add map by service search.
Browse files Browse the repository at this point in the history
  • Loading branch information
kttoan committed Oct 25, 2016
1 parent a5cbc36 commit 5f4af5b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/main/webapp/frontend/ingrid/components/map/WmsService.js
Expand Up @@ -227,8 +227,14 @@ goog.require('ga_urlutils_service');
if(root){
if(root.Layer){
var hasAddService = false;
for (var i = 0; i < root.Layer.length; i++) {
var layer = root.Layer[i];
var layers = [];
if(root.Layer.length){
layers = root.Layer;
}else{
layers.push(root.Layer);
}
for (var i = 0; i < layers.length; i++) {
var layer = layers[i];
var layerParams = {
LAYERS: layer.Name,
VERSION: result.version
Expand Down

0 comments on commit 5f4af5b

Please sign in to comment.