0

I'm trying to port an app from googlemap 2.2 to osmdroid 3.0.8. I'm stuck with the following code in my MapView:

Projection proj = getProjection();
GeoPoint topLeft = proj.fromPixels(0, 0);
GeoPoint bottomRight = proj.fromPixels(getWidth()-1, getHeight()-1);

With osmdroid, topLeft is always at north pole.

Is there a different way to handle that in OSM ?

Fabien R
  • 685
  • 1
  • 8
  • 24

1 Answers1

1

In OsmDroid you use mapView.getScreenRect to find the top left of the screen.

Christine
  • 5,617
  • 4
  • 38
  • 61