0

I am trying to create a ground overlay similar as those available in web APIs provided by Google.

I came across these on StackOverflow

does-android-maps-support-ground-overlay

android-google-maps-groundoverlay

I have implemented both of them with a bit of tweaking, but problem is same with both of them. When area is large to cover especially when zoomed in at high levels I get VMBudget error and application crashes.

I have tried all the tuning while scaling bitmaps for the overlay, like recycling and using BitmapOptions, but no success.

The sole issue is 16 MB VM Budget proves to be insufficient for the scaling at runtime more than 3500px image is required at max zoom in my case and since draw() overlay calls almost every ms its eating up.

I need a solution which can crop image to the screen size.

Community
  • 1
  • 1
Shardul
  • 27,760
  • 6
  • 37
  • 35

1 Answers1

0

Well, I searched and I implemented everything I know. But I think the only way out of this,

OSM Droid http://code.google.com/p/osmdroid/wiki/FAQ

User tiles feature of the API and attain the required result

Shardul
  • 27,760
  • 6
  • 37
  • 35