Re: [OpenLayers-Users] Get Feature Info in pop up working example

2010-03-23 Thread Robert Sanson
Hi There should be examples included in your apps\template directory if you installed Mapserver using MS4W. Anyway, if you want all attributes in your DBF and use text/plain, these don't even get used. Attached a couple of examples. Robert >>> sunny74 23/03/2010 11:15 p.m. >>> Hi Robert,

Re: [OpenLayers-Users] Get Feature Info in pop up working example

2010-03-23 Thread sunny74
Hi Robert, Thanks for your reply. how do u create the following files: HEADER ../templates/synlait_query_header.html TEMPLATE ../templates/synlait_query_body.html Pls send the html code for the above and also pls compare your format in these two files with the actual data of the .shp file

Re: [OpenLayers-Users] Get Feature Info in pop up working example

2010-03-23 Thread sunny74
Hi Robert, Thanks for your reply. how do u create the following files: HEADER ../templates/synlait_query_header.html TEMPLATE ../templates/synlait_query_body.html Pls send the html code for the above and also pls compare your format in these two files with the actual data of the .shp file

Re: [OpenLayers-Users] Get Feature Info in pop up working example

2010-03-22 Thread Robert Sanson
Hi GetFeatureInfo requests against Mapserver will not be much different than against ArcGIS WMS. Here is an example: http://mapsvr/cgi-bin/mapserv.exe?map=mylocation&service=wms&version=1.1.1&request=GetFeatureInfo&LAYERS=synlait&QUERY_LAYERS=synlait&INFO_FORMAT=text/plain&SRS=EPSG:2193&BBOX=1

Re: [OpenLayers-Users] Get Feature Info in pop up working example

2010-03-21 Thread sunny74
Hi Robert, Thanks for your reply. There are a few doubts about the code: 1) If you taken a single lonlat and then made a bounding box(BBOX) by doing +- 10. But what if I want to get the feature info of just one point.What will be the url in that case? 2) The url is "var regc = "http://ws-esri

Re: [OpenLayers-Users] Get Feature Info in pop up working example

2010-03-21 Thread Robert Sanson
Hi In my OpenLayers code I register a click event on the map. This captures the x,y of the click point, then computes a bounding box which is then used to create WMS GetFeatureInfo request. The return from that request can then be parsed, with values put into a div on the page or put into a po

[OpenLayers-Users] Get Feature Info in pop up working example

2010-03-21 Thread sunny74
Dear Friends, Does anybody have a working example of Get Feature Info in POP up where the map file is pointing to and getting attribute data from the shape files? If so pls give a step by step description of what you have done along with the code.Also the mapfile changes that you have done to g