[OpenLayers-Users] RE Selected attributes in Pop up
Steve.Toutant at inspq.qc.ca
Steve.Toutant at inspq.qc.ca
Thu May 2 08:55:43 PDT 2013
OpenLayers.Popup.FramedCloud
See http://openlayers.org/dev/examples/getfeatureinfo-popup.html
adityakumar529 <adityakumar529 at gmail.com>@lists.osgeo.org
Envoyé par : openlayers-users-bounces at lists.osgeo.org
2013-05-02 11:01
A
openlayers-users at lists.osgeo.org
cc
Objet
[OpenLayers-Users] Selected attributes in Pop up
Dear Users,
I am trying to display only specific attributes out of total attributes
in my WMS layer.
Following is the code used for that.
var roadidPicker = new OpenLayers.Control.WMSGetFeatureInfo({
url:
'http://localhost/ArcGIS/services/Civic_Agency_15_11_11/MapServer/WMSServer',
queryVisible: true,
});
roadidPicker.infoFormat = 'application/vnd.ogc.gml';
roadidPicker.events.register("getfeatureinfo", this, pickRoadid);
map.addControl(roadidPicker);
roadidPicker.activate();
function pickRoadid(event) {
var val = event.features[0].attributes.Pin_Code;
alert(val);
if (event.features && event.features.length) {
var val = event.features[0].attributes.Address;
alert(val);
}
On click I get the value in the form of alert.
But I want the same in popup.
Please share if you have any idea related to it.
Aditya Kumar
India Urban Space Foundation
-----
GIS Developer
India Urban Space Foundation
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Selected-attributes-in-Pop-up-tp5051001.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130502/13297ae6/attachment.html>
More information about the Users
mailing list