Never thought about that, but as an idea, if your cities are defined as
features, then I'd make a WFS GetFeature request with a your coords as a
filter (), and from the result read the city name
Good luck
BabyPowder wrote:
Hi @ all,
now I am so far, that I can trigger mei GPS Coords and zoom in the map to
see my position on the map......next I can see my Friends around me with a
icon......perfect so far....
The Next step what I want to realize is, that I can show my Position with
the name of the city where I am at the moment I use my little
tool........for example when I am in Berlin and I open my May it will show
my Lon/Lat and a Pin zoomed on Berlin.......but I will make a
popup....something like that
alert("Your Coordinates are....Latitude: " + lat + " and Longitude: "+
lon+" and You are in "+city);
I know my actual coords so I only have to find I way to get the name of the
city where I am and show it in a infowindow or alert-popup or some like that
Any ideas how I can do that?!?
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users