[OpenLayers-Users] OPENLAYERS FEATURE POPUP TROUBLE
LOHAMANOJ SIVAKUMAR
gis.slokam at gmail.com
Sun May 20 21:57:01 PDT 2012
Hi Openlayers-Users,
Am finding difficulty in bringing POPUP.
As in Openlayers popup it has the capacity to bring popup for multiple
layers or it will display information based on markers.
Where else in my case am trying to retrieve information for one particular
layer based on layer radio button click in tree
and my code is like this
plugins: [
new GeoExt.plugins.TreeNodeRadioButton({
listeners: {
"radiochange": function(node) {
info = new OpenLayers.Control.WMSGetFeatureInfo({
url: 'http://90.0.0.129:8090/geoserver/wms',
title: 'Identify features by clicking',
layers: [node.text], //************************ in this line the
value is not getting passed.
queryVisible: true,
eventListeners: {
getfeatureinfo: function(event) {
mapPanel.map.addPopup(new OpenLayers.Popup.FramedCloud(
"Info.,",
mapPanel.map.getLonLatFromPixel(event.xy),
null,
event.text,
null,
true
));
mapPanel.map.addControl(info);
}
},
});
}
}
})
],
i cant pass the variable directly to layers parameter, on variable pass the
layers parameters not accepting the value.
PLEASE DO HELP ME on FEATURE POPUP FOR ONE SINGLE LAYER.
am newbie to OPENLAYERS.
--
With Regards,
Lohamanoj S,
GIS DEVELOPER,
Groupe SCE India Pvt., Ltd.
Bengaluru.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120521/62191f2c/attachment.html
More information about the Users
mailing list