Add image to Android MapView

If I have an image in the projection of a Mercator map with a specific upper left latitude/longitudeand lower longitude longitude latitude, how would I add this to Android MapView?

Do I need to extend the overlay class, define the current MapView extents, and then crop the image using how BufferedImage? Or do I need the image to be already configured in the same tile structure as Google Maps, and then just add these tiles to MapView using the extended Overlay class?

+5
source share
2 answers

you can use mapView.getLatitudeSpan () and mapView.getLongitudeSpan () to determine if a geo-local image should be displayed or not.

+1
source

Well, the projection is really inappropriate. I could build it in any map projection, that’s how I think Google maps also use Mercator. Another question I have is a simple way to get the extents of the display on the screen so that I can figure out if the Overlay layer should draw this image or not? Will this be derived from the projection contained in the mapView?

0
source

All Articles