Share My Creation MAPSGO - Android offline maps

It was created with B4A.

upload_2017-11-16_10-29-47.png


I have done this little APP with the great OSMDROID library.
Martin Pearman - Thank you very much for awsome work.

MAPSGO ver.3 was created with osmdroid 3.10 .
MAPSGO ver.4 was created with osmdroid 4.1 .

upload_2018-1-10_9-30-52.png

MAPSGO ver.4 works with the text labels.

You can use MAPSGO Android for to:

- display raster maps ( map files: zip , sqlite , mbtiles , gemf ),
- display vector map layers (as a special files - like the txt files),
- display points and save the list of the points as txt files,
- display point and polygon text labels,
- create vector layers (points, lines, polygons),
- create project files from vector layers,
- measure the distance (km) and the area (ha),
- GPX export import (wps's),
- work with GPS.

MAPSGO uses WGS84.

upload_2017-12-9_12-55-10.png


You can create your own offline raster maps or vector map layers with:
- Mobile Atlas Creator - MOBAC ( create raster map files: zip , sqlite , mbtiles , gemf ).
- Maperitive ( create raster map files: zip , mbtiles).
- MAPC2MAPC (use OSMDROID sqlite and create raster sqlite map file from tif/tfw, jpg/jgw).
- MAPC2MAPC (use MBTiles sqlite and create raster mbtiles map file from tif/tfw, jpg/jgw).
- MAPC2MAPC (use GEMF Format and create raster gemf map file from tif/tfw, jpg/jgw).
- SHPtoMAPSGO (convert shp to MapsGo vector map layers).

Raster map files are in the osmdroid folder on the external memory (no MicroSD Card).
The point txt/gpx files and special vector files are created in the GPStxt folder on the external memory.

Internal memory-you can not see what files are there.
External memory-you can see what files are there.
SD Card-a little piece of the memory you can insert in the device.


More about MAPSGO and the APK file download is HERE .
 
Last edited:

roger.jau

Member
Licensed User
Longtime User
Hi js486dog. Can you share with me (us) how did you do to open mbtiles with osmdroid4?
Good Job with Mapsgo.
 

js486dog

Active Member
Licensed User
Longtime User
Hi js486dog. Can you share with me (us) how did you do to open mbtiles with osmdroid4?
Good Job with Mapsgo.

This is about to read the OFFLINE MAPS.

1)
You need to have the correct raster map files for osmdroid (mbtiles, gemf, sqlite, zip) .

How to generate the correct files for osmdroid look here:
https://mobiledev-jans.blogspot.com/2017/11/create-your-own-maps-with-mobac-for.html
or here:
https://mobiledev-jans.blogspot.com/2017/12/maperitive-create-raster-maps-for-mapsgo.html

2)
Create the "osmdroid" folder in the Internal (shared) storage of the Android device (no micro SD card).
The name of the folder has to be: osmdroid .

3)
Copy the raster map files ( mbtiles ... ) directly in the "osmdroid" folder .

4)
B4A code for to open the map files is somethink like this:

B4X:
MapView1.Initialize("MapView1")
' ensure that the map displays the Mapnik tiles
MapView1.SetTileSource("Mapnik")
' disable the data connection
MapView1.SetDataConnectionEnabled(False)

All the maps which are in the "osmdroid" folder, are read directly from "osmdroid" folder and displayed on the device.

5)
I have not been successful to read offline osmdroid maps from micro SD Card nor from differently named folder (it works only with the osmdroid named folder).
If you find the way to read the osmdroid offline maps from micro SD Card or from differently named folder, please share the solution with me.

6)
OSMDroid for B4A is great library. But there is missing one important function - Overzooming.
If you create the offline map with some max zoom (e.g. 16) and you do zoom (17,18,...) over this max zoom (16) and you pan the map - there is blanc (white) map.
 

roger.jau

Member
Licensed User
Longtime User
Thanks a lot. Very usefull tips.
Works well, just set DataConnectionEnabled to False.
I made drone raster map (mbtiles) to agriculture purpose. I will try my own Mission Planner.
 

js486dog

Active Member
Licensed User
Longtime User
Thanks a lot. Very usefull tips.
Works well, just set DataConnectionEnabled to False.
I made drone raster map (mbtiles) to agriculture purpose. I will try my own Mission Planner.

Great.

Have you solved also overzooming ?
 

roger.jau

Member
Licensed User
Longtime User
Not yet. I decide use osmdroid3.
I need a few range os zoom (18..25), osmdroid3 is usefull for me and bring's no overzooming problem.
Soon I will try with osmdroid4 and post here results.
 
Top