<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">Hi,</div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">I am stuck trying to modify my WMSgetFeatureinfo popup.</div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">I´m using the treenode radio plugin to construct a layer tree. When the node is checked the attributes are read into the popup, but the title is feature.id. Instead I would like to have the layer name as the title so I have to iterate through the tree and find the node which is currently checked...</div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">my feeble
attempt doesn´t work...</div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div><div><font face="arial, helvetica, sans-serif" size="2">//Loop through each Group of Layers</font></div><div><font face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">                                                                </span>for (var i=0; i<=(layerRoot.childNodes.length -1); i++)</font></div><div><font face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">                                                                </span>{</font></div><div><font face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">                                                        </span>//Check for base layer, if so do this differently</font></div><div><font face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">                                                                </span>if (layerRoot.childNodes[i].checked == true)</font></div><div><font face="arial, helvetica,
sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">                                                                </span>{alert("test");</font></div><div><font face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">                                                                        </span>}</font></div><div><font face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space: pre; ">                                                        </span> }</font></div><div><font face="arial, helvetica, sans-serif" size="2"><br></font></div><div><font face="arial, helvetica, sans-serif" size="2">can anyone offer a solution?</font></div><div><font face="arial, helvetica, sans-serif" size="2"><br></font></div><div><font face="arial, helvetica, sans-serif" size="2">cheers,</font></div><div><font face="arial, helvetica, sans-serif" size="2"><br></font></div><div><font face="arial, helvetica, sans-serif" size="2">Rob</font></div></div></div></body></html>