问题
I have png images of map tiles over parts of the UK and i want to draw them on top of the google maps view, I have everytyhing set up, just want to be able to draw the tile images now.
My main class extends 'MapActivity', can i add a canvas function to draw them?
ALso, I only obviously need to draw the tiles that are in view on the phone while the tiles out of view should not be drawn.
回答1:
You can add an Overlay to the MapView, that will get you a canvas to draw on. See http://code.google.com/android/add-ons/google-apis/reference/com/google/android/maps/Overlay.html
来源:https://stackoverflow.com/questions/4842782/draw-custom-map-tile-images-pngs-on-top-of-google-map-android