I was using the following code without any errors
[A]
var lonlat = map
.getLonLatFromViewPortPx(e.xy)
.transform(proj.google, proj.latlng);
however, I can't find any reference to the above methods anymore in the API
docs. On the other hand, I found the following commands, so I changed my code
accordingly
[B]
var lonlat = map
.getLonLatFromPixel( this.events.getMousePosition(e) ).
.transform(proj.google, proj.latlng);
The above works well too, but I just want to confirm if [B] is indeed the way
to do it, and if the method in [A] is deprecated.
--
Puneet Kishor_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users