Skip to content
Permalink
Browse files

Temporary comment out legend in mobile. Needs some fixing

  • Loading branch information...
uprel committed May 7, 2019
1 parent 634cafd commit e66f5fa9cb264f0a301082262ebfcbdf6c838bed
Showing with 33 additions and 29 deletions.
  1. +33 −29 client_mobile/src/gui.js
@@ -264,15 +264,19 @@ Gui.loadLayers = function (data) {
return;
}

// add layer
html += '<label>';
html += '<input type="' + type + '" ';

//group layer + legend
html += '<div data-role="collapsible" data-theme="c"';
html += ' data-iconpos="right" data-collapsed-icon="arrow-r" data-expanded-icon="arrow-d" data-groupcheckbox="true"';
html += '>';
html += '<h3>' + node.name + '</h3>';

// add layer, but hidden, checkbox in group above will control layer on/off
html += '<label style="display:none">';
html += '<input style="display:none" type="' + type + '" ';
//html += '<div data-role="collapsible" data-theme="c"';
//html += ' data-iconpos="right" data-collapsed-icon="arrow-r" data-expanded-icon="arrow-d" data-groupcheckbox="true"';
//html += '>';
//html += '<h3>' + node.name + '</h3>';
//
//// add layer, but hidden, checkbox in group above will control layer on/off
//html += '<label style="display:none">';
//html += '<input style="display:none" type="' + type + '" ';
if (parent != null) {
// prevent auto-enhancement by jQuery Mobile if layer belongs to a group
html += 'data-role="none" ';
@@ -286,27 +290,27 @@ Gui.loadLayers = function (data) {
html += '</input>';
html += '</label>';

var legendUrl = Map.topics[Map.topic].wms_url +
"?SERVICE=WMS"+
"&VERSION=1.3.0"+
"&REQUEST=GetLegendGraphics"+
"&FORMAT=image/png"+
"&EXCEPTIONS=application/vnd.ogc.se_inimage"+
"&BOXSPACE=1"+
"&LAYERSPACE=2"+
"&SYMBOLSPACE=1"+
"&SYMBOLHEIGHT=2"+
"&LAYERFONTSIZE=8"+
"&ITEMFONTSIZE=8"+
"&LAYERTITLE=FALSE"+
"&LAYERTITLESPACE=0"+
"&TRANSPARENT=TRUE"+
"&LAYERS="+encodeURIComponent(layer.id)+
"&DPI="+encodeURIComponent(Config.map.dpi);
html+='<img data-layer="'+layer.id+'" src="' + legendUrl + '"';
html += '</img>';

html += '</div>';
//var legendUrl = Map.topics[Map.topic].wms_url +
// "?SERVICE=WMS"+
// "&VERSION=1.3.0"+
// "&REQUEST=GetLegendGraphics"+
// "&FORMAT=image/png"+
// "&EXCEPTIONS=application/vnd.ogc.se_inimage"+
// "&BOXSPACE=1"+
// "&LAYERSPACE=2"+
// "&SYMBOLSPACE=1"+
// "&SYMBOLHEIGHT=2"+
// "&LAYERFONTSIZE=8"+
// "&ITEMFONTSIZE=8"+
// "&LAYERTITLE=FALSE"+
// "&LAYERTITLESPACE=0"+
// "&TRANSPARENT=TRUE"+
// "&LAYERS="+encodeURIComponent(layer.id)+
// "&DPI="+encodeURIComponent(Config.map.dpi);
//html+='<img data-layer="'+layer.id+'" src="' + legendUrl + '"';
//html += '</img>';
//
//html += '</div>';
//if (!layer.visini) {
// html += '" style="display:none;" ';
//}

0 comments on commit e66f5fa

Please sign in to comment.
You can’t perform that action at this time.