[mapserver-users] Help Please

Özgür Arslan ozgurarslan81 at hotmail.com
Tue Apr 10 16:59:51 EDT 2012


Hi All

I created a map by using a map file in OpenLayers and I am trying to query some features but I couldn't make it. Also, do I have to set something in map file to query a feature in Openlayers? I am using these codes but no result. Can someone help me what is my mistake? Codes are below;
 Thanks



 map.events.register('click', map, function (e) {
                        OpenLayers.Util.getElement('nodeList').innerHTML = "Loading... please wait...";
                        var url =  wms.getFullRequestString({
                                        REQUEST: "GetFeatureInfo",
                                        EXCEPTIONS: "application/vnd.ogc.se_xml",
                                        BBOX: wms.map.getExtent().toBBOX(),
                                        X: e.xy.x,
                                        Y: e.xy.y,
                                        INFO_FORMAT: 'text/html',
                                        QUERY_LAYERS: wms.params.LAYERS,
                                        WIDTH: wms.map.size.w,
                                        HEIGHT: wms.map.size.h});
                        OpenLayers.loadURL(url, '', this, setHTML);
                        OpenLayers.Event.stop(e);
                });
            
            function setHTML(response) {
                OpenLayers.Util.getElement('nodeList').innerHTML = response.responseText;
            }
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120410/1c2ef70a/attachment.html


More information about the mapserver-users mailing list