Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add an image to Android MapView

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

Do I have to extend the overlay class, figure out my current MapView extents and then clip the image using like a BufferedImage? Or do I have to have the image already set up in the same tile structure that Google Maps uses and then just add these tiles to the MapView using an extended Overlay class?

like image 694
Jeff Avatar asked Nov 15 '22 04:11

Jeff


1 Answers

you could use mapView.getLatitudeSpan() and mapView.getLongitudeSpan() to determine if the geo-located image should be displayed or not.

like image 58
John J Smith Avatar answered Dec 09 '22 18:12

John J Smith