android - Using part of map inside application -


is possible save part of google map , add application , display it? beacuse need limited area , dont want use internet connection in application. or maybe there possibility restrict area in online map?

if want save map once loaded , use map in application have save map in device sd card , display ever want.

below code save screen shot/image of google map -

public void savemaptosdcard() {         snapshotreadycallback callback = new snapshotreadycallback() {         bitmap bitmap;          @override         public void onsnapshotready(bitmap snapshot) {             bitmap = snapshot;             try {                 fileoutputstream out = new    fileoutputstream(filepath+filename);                 bitmap.compress(bitmap.compressformat.png, 100, out);             } catch (exception e) {                e.printstacktrace();             }           }         };         mymap.snapshot(callback);   } 

and call , later when want display map image sdcard , display it.

hope want explain.all best.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -