Select to view content in your preferred language

Zoomimng beyond basemap max scale

3062
2
07-18-2013 05:18 AM
JuliusBagdonas
Emerging Contributor
Hello

In my program I have a map that consists of 2 layers. 1st one is a basemap World_Light_Gray_Base (rest), the 2nd one is a LocalTiledLayer and I load it from androids external memory (it's a .tpk). The problem is that layers of the .tpk file appear only once you zoom beyond 1:150 (it's intentional, I use it for building interior) but there seems no way to zoom beyond that point, the maximum scale I am able to get is like 1:450 or something like that (it's the maximum of basemap, I assume). I tried using zoomToScale, but it still wont go beyond 1:450 (or whatever the maximum of that basemap is)...

Is there a way to workaround this?
0 Kudos
2 Replies
JuliusBagdonas
Emerging Contributor
Never mind, found it... setMinResolution did the trick 🙂
0 Kudos
GSauers
Frequent Contributor
I also had this issue and adding this line allows you to zoom in closer than the lowest tile level of the map.

mapview.setMinResolution(0.1)

You can play with the number to adjust how close you can zoom. Setting it to 0 allows you to zoom forever it seems.

Thanks for the help and I hope my addition also helps.
0 Kudos