Android OSM droid - set Max Zoom level -


i implementing app vith usage of osmdroid mapview. have maps max 16 zoom level, android allow have 18 zoom levels. know how set maximum zoom level 16 instead of default 18?

thanks

hmyzak

update - have added simple setmin/maxzoomlevel() methods mapview in trunk. should included in 3.0.10.

see https://code.google.com/p/osmdroid/issues/detail?id=418 additional info.

original answer:

create own tilesource class , use that. can piggyback on 1 of concrete tile source classes, like:

public static final onlinetilesourcebase mymaptilesource = new xytilesource("my tile source",resourceproxy.string.mapnik, 0, 16, 256, ".png", ""); 

note "16" - specify max zoom level.

but really, should create own concrete class , extend bitmaptilesourcebase. sounds using static imagery , not online imagery xytilesource for.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -