[OpenLayers-Users] Converting the output of getLonLatFromViewPortPx
to spherical coordinates
J. Brian Adams
jb_adams at verizon.net
Tue Oct 6 16:25:03 EDT 2009
I have been trying to mimic the Click Event Example in which a single
mouse click triggers an alert box showing the location of the click in
spherical coordinates (degrees North and Ease.) In my code when I
click on a location the alert box shows the coordinates not as degrees
(ie. 40 N -76.2 E) but instead as location (4865946 N, -8482597 E)
Since I need to access the data in spherical coordinates, how might I
transform the result from what I assume is the epsg4326 projection
coordinates to degrees?
More information about the Users
mailing list