Select to view content in your preferred language

Magnify tool

690
4
12-12-2011 09:39 AM
SwatiGadey
Emerging Contributor
ArcGIS app for Android has a Magnify tool upon long pressing on the map. I am trying to replicate this functionality using ViewSwitcher. But, when I create two MapView objects in XML, my map doesn't load.

Any ideas on how to approach? Is ViewAnimator, a better way of approaching this problem?
0 Kudos
4 Replies
SimonKlein
Regular Contributor
I would also like to know this, because my customers want this feature too.
0 Kudos
SwatiGadey
Emerging Contributor
You can do this by getting the image of the map using getDrawingCache(). This worked for me in case of Beta release.

However, with the SDK v1.0.1 this portion of code broke. The new method introduced (for this purpose) in this release: mapview.getDrawingMapCache returns null.

I am still waiting on a response regarding this.
0 Kudos
ArchanaAgarwal
Occasional Contributor
Please take a look at the GeometryEditing sample, it has the magnify tool.

You may have found a bug with getMapDrawingCache, we are looking into it.

Thanks
Archana
0 Kudos
SimonKlein
Regular Contributor
Thanks for the help! I'll have look.
0 Kudos