| | |
| | | |
| | | for (var i = 0, len = item.length; i < len; i++) { |
| | | |
| | | radio_html += '<span class="button level1 switch center_docu" ></span><label><input type="radio" name="' + tNode.tId + '_style" value="'+item[i]+'" ' + (i == 0 ? "checked" : "") + '/>' + item[i].toUpperCase() + '</label></br>'; |
| | | radio_html += '<span class="button level1 switch center_docu" ></span><label><input type="radio" name="' + tNode.tId + '_style" value="'+item[i]+'" ' + (item[i] == layer.options.style_selected ? "checked" : "") + '/>' + item[i].toUpperCase() + '</label></br>'; |
| | | |
| | | } |
| | | radio_html += '</div>'; |
| | |
| | | var layer = layersObj[tNode.uuid]; |
| | | if (layer.options.type =='wms'){ |
| | | layer.options.parameters.styles = layer.options.style_prefix+this.value; |
| | | layer.options.style_selected = this.value; |
| | | layer.reload(); |
| | | }else if (layer.options.id =1001){ |
| | | layer.options.style_selected = this.value; |
| | | layer.changeColor(); |
| | | |
| | | } |
| | | //TODO |
| | | }); |