This object is in archive! 

Merge maps of different zoom levels

謝永德 shared this problem 9 years ago
Solved

I've always use Mobile Atlas Creator to create offline maps. Now I found Locus Map to be my best choice on mobile device to display my collection of offline maps.

As quoted from http://docs.locusmap.eu/doku.php?id=manual:user_guide:maps_personal,

If you need a bigger map, download more smaller areas, copy them into Locus/Maps directory, Locus Map will merge them and use them as one file.

Now my situations are:

1. I have 3 maps:

(i) a France map of zoom level 8 to 13,

(ii) a Paris map of zoom level 14 to 19, and

(iii) a Marseille map of zoom level 14 to 19.

2. I put them all in one folder.

3. Run Locus Map. It displayed something like 'Initializing France.sqlitedb...' for all three maps.

3. I chose to display the France map, and moved to Paris.

4. I kept zooming in, but the maximum zoom level was no higher than 13. I thought when I zoomed in to levels higher than 13, Locus would automatically shift to the Paris map to display the higher zoom level maps.

So, is my operations correct? Or, if Locus Map can't merge maps 'covering the same spot with different zoom levels', can you add this feature? Thanks!

Replies (9)

photo
1

I forgot to mention that all my maps were created using Mobile Atlas Creator(MOBAC).

photo
2

Good day,


what you wrote make absolute sense. I'm checking a code in Locus and for my surprise, all looks like it should work correctly as expected.


Is it possible, that you share a downloaded map with me over some sharing service? So I have exactly same starting conditions as you for testing and searching for issue? Thank you

photo
1

Sure. But my maps' sizes are too big. I'll make some smaller samples and test again. If the problem persists, I'll share the maps.

photo
3

This will be perfect, thank you!

photo
2

Now I made 3 smaller maps and tested them. Locus Map still wouldn't shift to different maps as zoom level changed.

France Z6-8 (7457KB)

Paris Z9-14 (7652KB)

Marseille Z9-14 (2706KB)

photo
2

Just a FYI my maps created originally with mobac work as expected and auto switch fine for me personally. My different maps are not in the same directory though - my maps are in their own seperate directorys and I have locus options set to auto switch in the menu

photo
2

Hi Daniel,


Can you tell me where the "auto switch in the menu" is? Is it menu>Settings>Map-control & panels>Quick map switch? I tried "out of map" and "always", but both wouldn't work.

photo
2

No thats not it - That just allows a icon to popup so you can manually change maps when your "out of area"

You want the settings--->Map Advanced---> "Map auto load" and make sure it reads "Auto load maps of any type" which will allow locus to "auto switch" personal maps seamlessly for you as you leave their boundarys without you having to touch anything


Under that is Vector maps setting for the same thing if you use personal downloaded vector maps as well

photo
2

Strange. I did as you said but still to no avail.

photo
2

works ok here - this is the effect you end up with (x2 maps at once, filling in blank areas for each other - also auto switches maps if required for zoom levels) Maybe try restarting locus after enabling those options? OR dont put all your maps in the same directory - I think that could cause issues perhaps as it might assume its all the same map type under the same directory and just load the first one.


My directory for maps looks like

maps/google road/

maps/google satellite/

maps/bing satellite/


With each map type in its own directory. I think this is your issue to be honest as long as the other settings are correct mentioned in my previous reply


Screenshot_2015-05-23-18-30-59

photo
2

I did another experiment. I created 2 maps of the same zoom level and no overlapping areas. This time Locus displayed them together seamlessly as there is only one map.


I guess maybe the problem only occurs when the maps covering the the same area having different zoom levels.

photo
2

There shouldnt be a issue with the same area and different zoom levels - all my maps are of the same area and different levels and it still works as advertised regards auto switching seamlessly for me at least.


But my maps arnt all put into the same directory either.... (the only other thing I can think of thats different to yours) and if your creating maps of exactly the same type - maybe dont make multiple new map files - instead simply modify the original map file and simply add some new areas or more zoom levels to it without "doubling up" on data between different files for the same map type anyway (which might confuse locus? no idea)


Hope you get it working ok

photo
2

Daniel, could you share you maps with me? Also, could you try my maps? Thanks for all you replies anyway!

photo
1

My maps are all 5gig+ in size and are of my local area in Australia - Not sure if they would be of any benefit but even if they are they are too big to send in emails and things


I actually ended up splitting my map files by zoom level to help keep the file sizes down a little while also removing the issue of downloading the same data across multiple files as your maps start to overlap


The way I sort my maps on the device storage is.....dont sort by area - sort by "type of map" and create a directory for that map type specifically. Create a directory for each type of map your going to download. Google "hybrid" maps should be in a seperate directory from google "road" maps for example


If you must have multiple map files of the exact same map type then create those files by zoom level instead but keep the different map types in different directorys still (helps keep map file sizes down too not including double ups of exactly the same areas, and its easier to remember what maps what as the directory name tells you for editing map areas later)


I have 2 map files for each map type in their own directory, one file does that map type for zoom levels above 14, and the other file is for zoom levels below 14


my directory looks like

maps/google hybrid/14plus.sqlitedb

maps/google hybrid/under14.sqlitedb

maps/google road/14plus.sqlitedb

maps/google road/under14.sqlitedb

maps/microsoft road/14plus.sqlitedb

maps/microsoft road/under14.sqlitedb

etc etc.


Mine seems to switch maps automatically and seamlessly using this method of keeping the different map types seperated into their own directorys - and If I need to download a new map area in "google road" format for example - I dont just create a new map file -I modifiy the existing file I already have for that map type and it skips downloading the areas that I already have downloaded in the past (avoiding double ups and locus confusion about map types perhaps)


I might be grasping at straws - but thats my system and locus works as advertised for auto swapping map types as the boundarys or zoom levels are exceeded. And it makes it much easier if you want to add extra maps later without ending up having the same areas overlapping across multiple map files as well


Best of luck mate - I think Im all out of advice thats all I can think of that might be a issue with it auto swapping maps for you

photo
3

I put my 3 files like:


LocusMaps\1\France Z6-8.sqlitedb

LocusMaps\2\Paris Z9-14.sqlitedb

LocusMaps\3\Marseille Z9-14.sqlitedb

Still didn't work.


The only map source I used is

http://mt{$serverpart}.google.com/vt/lyrs=m@176103410&hl=zh-TW&x={$x}&y={$y}&z={$z}&s=Galileo&scale=2


So I guess all my maps are google road maps.


Daniel, could you please try my maps? I posted their links on the 15:07 May 22 GMT comment. You can just download the France map and the Marseille map to test. Plus, all your comments are highly appreciated. Thanks!

photo
1

if they are all google road types of map - Perhaps they should be in a "google road" directory all together?

Regardless I will download your suggestions and give it a try using your current directory structure (different folders containing the same map type) and see if it works ok my end using your maps.

If that doesnt work I will try my way and stick the same map types in the same directory and see if that changes anything

It might take me a while as my geography is terrible and Im going to have to find marseille as well though lols (I should find france ok hahahhaha)


Just a afterthought - not sure if the symbol "-" is allowed in file names with some programs as its a wildcard also.....maybe try a underscore instead eg FranceZ9_14 or FranceZ9to14 - I might try renaming them if i hit issues I guess

photo
1

I think theres somthing fundamentally wrong with your maps. I put them in seperate directorys like you have - and noticed straight away the maps are not lining up properly even though locus is successfully loading from both directorys I think

I got this (see screenshot)


I then moved the map files into a single directory as they are the same map type.


They loaded "better" but still areas not meshing properly.


I then renamed the files removing the special wildcard characters but it made it no better with parts of your map loading incorrect zoom levels and trying to mesh them in together with the other map at different zoom levels (you cant mesh a zoom 8 map directly to a map showing at zoom 15 etc which is what its doing)


Somthing wrong with your mobac settings I think mate. I also noticed your maps are missing the journal file - mine has a journel file for each map as well perhaps thats affecting things


eg see the other screenshot for my "google satellite" type maps - There are x2 downloaded maps in there but they have 2 files for each map


Its been years since I used MOBAC (I used it to get the majority of what I wanted - then I use locus after that and just added areas to the files I created using mobac. I dont remember all the mobac settings but from memory I had to save the maps for "Rmaps" as the selection.


Is it possible for you just to use locus to download your maps instead of mobac? (avoids a mobac issue with its settings somewhere - I havnt used it for so long I cant help with mobac anymore dont even have it installed)

photo
1

Daniel, I'm really really thankful.


Regarding the my map files, I think individually they are all OK. Since I can open each of them correctly. It's just Locus couldn't 'auto shift' among them.

photo
2

And, Marseille is at the southern coast of France. :-)

photo
2

yeah looks like locus is ignoring matching zoom levels completely and just filling in the blanks as best it can, so you end up with a map with some of it showing at zoom 8, some parts at zoom10, some parts at zoom 12 and obviously nothing meshing properly

I dont think its a locus setting mate - Its how you created the maps theres issues there (my personal maps I made using mobac work - but yours dont even using my locus which is guaranteed set up correctly to do what your after as it works with my maps and thats how I always run my locus no worries for a long time)


Your spot on they load ok individually - but not when mixing them - the maps showing all sorts of zoom levels at the same time is really wierd! It sounds like your locus is doing the same thing? (in which case your settings are probably correct as it is loading both maps just not correctly the same as mine is doing on your maps)


Do you have the journel files as well? Im not sure if mobac created them for me or if locus did when i updated my maps using locus. If all else fails you know you can just use locus itself to download maps? (its slower I realise but it gets there eventually)

photo
2

Guys, quite long discussion and not sure if problem solved or not.


Anyway I tried to download your three sample maps. Placed them all into Locus/maps/France directory and all three works correctly. So in case of location of Paris, I can without problems zoom from 6 to 14.


What may be interesting is that during zoom closer to street details, Locus tries to re-use map tiles from previous map level and map looks little bit weird on places where map tiles are missing.

photo
2

Menion, now all the results were:


Daniel: his own maps - OK

Daniel: my maps with same area, different zoom - not OK

Me: my maps with same area, different zoom - not OK

Me: my maps with different area - OK

Menion: my maps with same area, different zoom - OK

photo
2

Perhaps menion has the answer with missing map tiles scattered across one of your maps and locus struggling to fill the blanks in - as locus doesnt have another replacement map to load at the zoom level required to fill those missing spots on the map properly?


Its like mobac failed to download alot of tiles randomly perhaps - If your other maps work fine - than this probably has to be the answer? (A issue with the maps creation? eg missing or corrupt map tiles?)


Try creating the same maps with locus - If locus successfully creates the map and it works as advertised I guess that will confirm it?

photo
1

Hi Menion,

In the 'Maps' tab of the 'Detailed comparison of Free and Pro versions' in Locus's download page (http://www.locusmap.eu/download/), there's a line 'Map overlays'. Is this THE feature? The pro version has a check and the free version has a red cross. My Locus is the free version.

photo
1

map overlays allow you to run x2 maps at once over the top of each other - and you can customise the transparency so you can see both at the same time.


For example - I can have a live weather map showing cloud cover overlayed ontop of a google road map. Or I can overlay a google road map ontop of a microsoft satellite map - at the same time for the same area - and you can customise the transparency of the map so both show nicely. Nothing to do with seamlessly joining maps when "out of area" really

photo
1

Thanks again for the explanation, Daniel. You're the man.


Btw, is your Locus free or pro version?

photo
1

pro

photo
1

Hi Menion, are you still working on this? My problem is still not solved.

photo
2

Hmm no, I'm not ...


Oki, so to sumarize it:


- Locus version 3.9.0

- base map directory on SD card or internal memory in "Locus/maps"

- your maps placed into Locus/maps/France directory


Is this configuration correct? If not, setup it as wrote above.

photo
2

It worked! My problem is at first I didn't put the maps I want to 'merge' into one directory under the base map directory. At last! Many thanks, Menion!

photo
2

Eh, I missed this information. I since begin thought, you have your maps in subdirectory :). Locus works in this way ... if maps are in root /maps directory, they all works separate. If you anyway move them into one subdirectory, Locus create a new map named by this subdirectory and will try to use all maps in this dir as one map.


So glad it is finally solved and hope it will works fine for you.

Replies have been locked on this page!