Map vanishes when I zoom out below certain zoom factor - Please help!

718 views
Skip to first unread message

Narayan

unread,
Jun 27, 2016, 3:17:42 AM6/27/16
to Osmand
Since the last two nightlies, I am facing a strange issue: The map has vanished.
The screen is totally blank, and the current location marker (blue dot) appears on a blank screen.

Currently I am using OsmAndF~2.4.0#13309D.

I checked the folder, and the obf files were all there under the "Internal Storage/OsmAnd" path.

But the new nightlies have a different path for the Data storage folder
/data/user/0/net.osmand.dev/no_backup

This new path does not exist in  my phone memory at all! (BUG??)

In fact, my file manager shows the folder system in a totally different way:
  • My file manager shows the "net.osmand.dev" folder under the "Internal Storage/Android/data/" path.
    This does not match with what OsmAnd's path for data storage: /data/user/0/net.osmand.dev/no_backup
    (Note that I am using OnePlus 2, which only has a 64 GB internal storage, and no SD card.)

  • I saved by obf files in a different folder, and uninstalled OsmAnd and deleted the old data folder.
    Then I re-installed OsmAnd and downloaded India_Asia.obf from within the app.
    Now the Manage Maps menu shows India in green (meaning the map is latest).

    But I cannot see the India_Asia.obf file anywhere in memory!
    (I searched for obf, India, etc.)

  • I downloaded the map for Andorra (I chose that map because the file is small).
    Even that file does not appear in my storage.

  • Restarting the phone does not change anything.

  • I placed my old obf files inside the "Internal Storage/Android/data/net.osmand.dev" folder.
    It made no difference.

  • Then I moved them inside the "Internal Storage/Android/data/net.osmand.dev/files" folder.
    It made no difference, either.

  • Then I experimented with the zooms, and found that it shows the map only above certain zoom factors.
    The map vanishes at certain zoom factor. (I have not installed the World Overview map yet.)
What could be the reason?

Please help!

Harry van der Wolf

unread,
Jun 27, 2016, 11:23:58 AM6/27/16
to osmand
You ABSOLUTELY need the world_overview map. Below zoomlevel 11 the world overview map is used and not the local map(s).

Harry

--
You received this message because you are subscribed to the Google Groups "Osmand" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osmand+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Narayan

unread,
Jun 28, 2016, 5:46:43 AM6/28/16
to Osmand
Thanks Harry, for the tip!

Yes, I downloaded the World_overview map and now the map appears at all zooms.
(I thought that it was needed only at zoom levels of 1-6, which is typically associated with "world" or "continent".)

But one problem remains: Where is the new map storage folder??
And why can't I see the map files in my file manager?

Harry van der Wolf

unread,
Jun 29, 2016, 5:04:22 AM6/29/16
to osmand
Hi,

I had hoped that someone else using nightlies would react as I no longer use them.

Maybe something has changed in the nightlies, but I can hardly imagine that also based on Android restrictions. 
Already for a very long time the data path is "/Android/data/net.osmand.plus/files" or "/Android/data/net.osmand.free/files" either on internal memory or on SD-card. In old versions of Android the data path could be /OsmAnd. In Android v4.x the SD-card was always "/data/Android/etcetera" and on internal memory you could still use /Osmand. With Android 5.x + even more restrictions have been built in.
(And then there are the "single user" data paths and the "multi user" data paths.)

So paths available in the past might not be available anymore.

However, you mention:

But the new nightlies have a different path for the Data storage folder:  
/data/user/0/net.osmand.dev/no_backup

This new path does not exist in  my phone memory at all! (BUG??)


How do you know what the new path is, if you can't find it? Does OsmAnd mention that in the settings for the map storage path?
If so: that might be a bug as your world and India map obviously work even though that folder does not seem to exist. So check if you can find them in my above mentioned folders.
If not: Also check my above mentioned paths for your maps. :)

Harry



Narayan

unread,
Jun 29, 2016, 7:26:12 AM6/29/16
to Osmand
Yes, I have always used the Android folder directly below the root.
(I used to download the pbf files on my laptop and then move them to this folder, because direct downloading in phone is not reliable.)

But now this new path is different, and it does not even exist physically!
This may be due to the fact that my OnePlus 2 upgraded from Android Lollipop 5.1.2 to Marshmallow 6.0.1
(well, actually Oxygen OS 3.0.2 based on Android M).

The obf files seem to be stored in some invisible part of the memory.
So I will not be able to sideload the files in the folder.
For example, I will have to again download a huge (0.9 GB) obf file for the wikipedia.

BTW I tried to change the data path to all other options, but everything failed (the app stops showing the maps).
Only the Internal memory option works.

Based on a tip from Sonora, I downloaded a different nightly app.
This app has got installed without a "F" suffix, and shows the path as expected.

So this is definitely a bug in the apk that installs as OsmAndF~ (at least on Android M devices)..

Another problem is, we cannot tell which apk will install with "F" suffix, and which will not have that suffix.

Harry van der Wolf

unread,
Jul 2, 2016, 8:31:51 AM7/2/16
to osmand
2016-06-29 13:26 GMT+02:00 Narayan <raindrop...@gmail.com>:


Based on a tip from Sonora, I downloaded a different nightly app.
This app has got installed without a "F" suffix, and shows the path as expected.

So this is definitely a bug in the apk that installs as OsmAndF~ (at least on Android M devices)..


No. This is not a bug!

I did not pay attention enough to the full path "/data/". I only looked at the second part "user/0/net.osmand.dev".

The "/data/"  folder is the protected data storage structure for apps. You can't access that /data folder. Android hides that folder. All apps store their data there. Next to that folder apps can also store their data in /Android/data/ and especailly apps having "big data" like navigation apps store their data (also) there.
This is a safety measure by Android itself so that only the app itself can access its data and not some harmful app trying to attack your phone via the apps data and settings and possible frameworks. 

If you have a rooted phone you can access the /data folder. Otherwise never.

Harry 

Narayan

unread,
Jul 4, 2016, 12:36:20 AM7/4/16
to Osmand
Thanks for the clarification, Harry!

As explained earlier, I only want to have free access to the folder where the maps are stored, so that I can sideload the obf files.
But OsmAnd does not let me change this, as none of the other paths (seem to) work!

At least this inability to change paths is a bug?

Narayan

unread,
Jul 4, 2016, 1:03:53 AM7/4/16
to Osmand
Sonora advised me to try a AsmAnd plus versions, from the night builds page. This app installed as OsmAnd~2.4.0#7351MQA.

Earlier I used to download from the latest nightly page, which always gave a F suffix and a D suffix (e.g. OsmAndF~2.4.0#13309D).

The data storage path for this version is /data/user/0/net.osmand.plus/no_backup
(Compare this with the latest nightly path: /data/user/0/net.osmand.dev/no_backup)


In other words, this path also belongs to the protected+hidden Android space.
There is a minor difference: Instead of net.osmand.dev, this uses net.osmand.plus path.

But this too does not work (the screen does not show any maps).

I tried to change the directory to    /Internal storage/osmand/
but I see an error: Maps could not be created in the specified directory.

I also tried to specify the path as /Internal storage/Android/data/net.osmand.plus/files
(I tried this specific path because my file manager shows this folder, that is apparently created by OsmAnd during installation.)
but I see the same error: Maps could not be created in the specified directory.

In each case, the data folder path remains unchanged.

I guess there's something wrong with the /Internal storage node: Although my file manager shows it like that, I should enter the path in Linux fashion.
So question is, what path should I enter?

Narayan

unread,
Jul 4, 2016, 1:39:31 AM7/4/16
to Osmand
Update:

I downloaded the latest file OsmAnd-master-nb-2016-07-04.apk, which got installed as OsmAnd~2.4.0#17301M
I changes its data settings to Shared memory.
It shows the path as /storage/emulated/0/osmand

Now my File Manager does not show Linux-style paths (it shows "user-friendly paths").
So I assume that this path is equivalent to Internal Storage/osmand.

With that assumption, I copied my obf files into that folder.
Then I restarted OsmAnd. It did not display the map files.
So I restarted the phone. Even then OsmAnd shows no map files.
Instead, it shows two error messages:

 "The version of index world_basemap.obf is not supported"
 "The version of index  India-Asia.obf is not supported"

How to make this work??

Harry van der Wolf

unread,
Jul 4, 2016, 9:17:41 AM7/4/16
to osmand
The current implementation in the nightly builds is horrible. I also downloaded a nightly onto my old phone.
The problem is that you have to type a path instead of a file dialog box popping up allowing you to browse to the possible location.
Or like in the 2.3.5 and lower versions: A dialogbox with a set of 4 locations where you can store your data.

I had to check in a terminal so see what the real path was, and I had to type that complete path in the location text box. That is extremely user unfriendly and a lot of users will not be able to "solve" this..

In my case I had to specify "/storage/extSDcard/Android/data/net.osmand.plus"
and that can be different for every phone and every android level (above parth is on 4.2, on my current phone running 5.1.1. it is more like your path, but not exactly the same).

Actually a request has to be filed to have a dialog box that allows you to select out of the possible locations, or a file dailog box allowing you to browse to the possible locations.
Not a simple textbox.


Harry


--
Reply all
Reply to author
Forward
0 new messages