android - OsmDroid and MapQuest: How can I use JPEG tiles? -
i new osm , osmdroid.
i next pretty tutorial show offline maps. have done is:
created tile bundle in zip format mobile atlas creator used mapquest source, jpeg format put zip right folder:/mnt/sdcard/osmdroid/
the problem tiles not rendered. got blank page.
i found this solution, solve problem.
but now, bothering me have utilize png files, takes more space. not efficient app because user have download much larger package.
my question is: how can utilize jpeg tiles osmdroid , mapquest?
thanks in advance.
this works jpgs instead of pngs:
mapview myopenmapview; myopenmapview = (mapview) findviewbyid(r.id.openmapview); myopenmapview.settilesource(new xytilesource("mapquestosm", resourceproxy.string.mapquest_osm, 0, 18, 256, ".jpg", new string[] { "http://otile1.mqcdn.com/tiles/1.0.0/map/", "http://otile2.mqcdn.com/tiles/1.0.0/map/", "http://otile3.mqcdn.com/tiles/1.0.0/map/", "http://otile4.mqcdn.com/tiles/1.0.0/map/" }));
notice ".jpg" in line 3.
android maps offline osmdroid mapquest
No comments:
Post a Comment