osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.63k stars 1.01k forks source link

Online map renders text and symbols from non-active vector maps #20003

Closed brbar closed 1 month ago

brbar commented 3 months ago

Description

Online map rendering mixed with some other map data which was not selected by user. Seems like this issue tied to the bigger problem with application settings and how the new settings applied during profile switch.

Steps to reproduce

  1. Add new online map USGS Topo using this URL: https://caltopo.s3.amazonaws.com/topo/{0}/{1}/{2}.png Zoom levels 1-15
  2. Create new profile USGS Topo. Choose Map source = USGS Topo. The rest of settings leave disabled

If you can't reproduce this issue on first attempt try to switch to Browse map profile and back. I'm still did not found a 100% way to reproduce it but in my environment this issue appears in 9 of 10 cases.

I noticed that once this issue appears there is a mess with a settings (see this issue - #20002)

Actual result

In my situation I see the actual USGS Topo map with parts of regular OSMAnd offline map. See the screenshot:

I highlighted in green the contour lines from the regular contour lines layer of OSMAnd. It shows not only contour lines but street names, fords, some pois, etc.

Expected result

USGS Topo map profile should show only actual map from USGS Topo URL. Without any additional data - just bare topo map.

Your Environment (required)

OsmAnd Version: 4.7.17
Android version: 13
dmpr0 commented 3 months ago

Hi! Online map is set as Map source, Overlay or Underlay?

yuriiurshuliak commented 3 months ago

The bug was partially reproduced. To reproduce it, insert the provided URL as the Map source and activate USGS Topo for Map source, Overlay map, and Underlay map. Next, attempt to view the map of Switzerland; at this point, the additional details from the contour lines won't show up. Interestingly, if you download the map of Switzerland and the contour lines beforehand, and then activate the online map, these details will appear.

OsmAnd~ 4.8.0#2434m, released: 2024-06-04

With a pre-loaded map and contour lines Without a pre-loaded map and contour lines
brbar commented 3 months ago

@dmpr0, maps was set as Map source

Nine-Tailed commented 3 months ago

If there is a vector map of the region, then the name labels will appear on top of the raster maps selected as the source.

soshial commented 3 months ago

What @Nine-Tailed provided above — same thing happens on my device, when vector map is available.

vshcherb commented 1 month ago

It's expected behavior, you can't disable POI symbols coming from basemap and only see contour lines. So you need to archive vector maps.

On the other hand @Nine-Tailed case looks like a bug, it needs to be reproduced.

Nine-Tailed commented 1 month ago

Video in telegram chat about this bug. After changing the map source to raster, you need to restart osmand. Also pay attention to the osmand freeze at the end of the video when I tried to return the vector map. https://t.me/ruosmand/158475

vshcherb commented 1 month ago

Probably related https://github.com/osmandapp/OsmAnd/issues/14347

vshcherb commented 1 month ago

Bug reproduced after restart the app! Map source is Online tiles and labels strangely appears.

Raiedecharles commented 1 month ago

Thanks a lot :)

soshial commented 1 month ago

What version is this fixed for? Still reproduces in v4.8.5.

Raiedecharles commented 3 weeks ago

4.8.6 cheers