[OpenLayers-Users] WMSGetFeatureInfo popups
ward
w_ward_W at hotmail.com
Sun Oct 16 01:12:58 EDT 2011
I really need your help ppl
I've build a simple map using openlayers and geoserver
it handles one layer from the geoserver
I want to create a pop up feature so when i click on a point , a pop up will
appear with point's data
i follow this example :
http://openlayers.org/dev/examples/getfeatureinfo-popup.html
its source :
view-source:http://openlayers.org/dev/examples/getfeatureinfo-popup.html
then i created a proxy using php :
<?php
$url=$_GET["url"];
$res = file_get_contents($url);
echo $res;
?>
and put it with the map code in the same folder
the pop ups appear but they are empty!
the error msg : element not found
now,
1- did i miss something ?
2- does the proxy right ? i've no experience with php and am not sure about
the syntax .. do i have to replace GET["url"]; with
GET["http://localhost:8080/geoserver/wms"]; ?
3- do i have to put the code and the proxy in geoserver folder ?
any sign it would be very helpful
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/WMSGetFeatureInfo-popups-tp6897072p6897072.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list