B4J Code Snippet B4J offline map app (jpg/jgw)

I can not find the offline map app for B4J, therefore I make a little code for it.
The code is not perfect but it is at least the beginning.
Thank you "Erel", "oparra" and "emexes" for your advices here:
https://www.b4x.com/android/forum/threads/b4j-load-large-image-into-imageview.120040/#post-750568
and here:
https://www.b4x.com/android/forum/threads/b4j-pan-imageview.120062/#post-750735

The code uses jgw file with coordinates EPSG:4326 WGS 84.
You can use jpg/jgw raster map world file format.
You can also draw points, polylines and polygons on the canvas above the raster. I do not know the canvas limitations.
You can change w.jpg and w.jgw and use your own jpg and jgw.
Use also your own info txt file.
You can use mouse button for pan and mouse wheel for zoom. Max zoom is limited.
wjm1.jpg

wjm2.jpg


The project is attached as zip file.

Please send to me some tips about similar apps for B4J.
Please send to me also some advices how to make better offline map app for B4J.
 

Attachments

  • wj_map.zip
    106.2 KB · Views: 371
Last edited:
Top