Allow Min & Max Zoom setting for Overlays

joeloc shared this idea 8 years ago
In Progress

Locus map overlay engine is quite powerful already. It would be even better with one minor addition: Allow to specify the minimum and maximum zoom levels below and above which the overlay is NOT rendered, i.e. as if the opacity was set to 0%.


Reason: Some overlays and some maps don't make much sense together at very high (or very low) zooms (imagine a darker hill shade layer, or something that contains huge custom datasets with texts).


Another reason: You could use every single map (online or offline) as kind of auto-switching overview map. For example, select a mapsforge vector map as basemap, "OSM Mapnik Online" as overlay with 100% opacity, max overlay zoom to 12:. Instant overview map, no complicated Mobac creations with transparent layers, no troubles.


Work involved for menion: Two little IF commands and two GUI elements in the overlay configuration window.


User benefits: Huge improvements on Overlay usability in general.

Replies (5)

photo
1

if (currentzoom > configfile.maxoverlayzoom) overlay_opacity = 0%;

menion... your unwillingness to consider this single-line no-brainer has probably caused TERABYTES of mobac map server traffic meanwhile. If you don't want to do it for your users, consider doing it for the poor and innocent tile server providers :-).

photo
1

A similar idea: For longer trips would be very useful - button switch with a definable zoom. After pressing the larger map (maybe 400 meters) and after returning detail (eg 50 m). It would greatly enhance security in the search for alternative routes for cycling.


Podobný nápad: Na delší cesty by se moc hodilo tlačítko - přepínač s definovatelným zoomem. Po stisknutí větší mapa (třeba 400 m) a po návratu detail (třeba 50 m). Velmi by to zvýšilo bezpečnost při hledání alternativní trasy za jízdy na kole.

photo
1

I´m not sure if I mean the same thing:

I don´t download tiles of Zoomlevel 16 since I don´t need that much detail and it takes up to much space. Now if I zoom in during a hike and then move the visible area, the surrounding map turns blank and says "not available". I just want to see the last available tile, level 15, just larger.

Locus map pro behaviour was a little better in that respect, but had that problem as well, just not as pronounced. I have not yet found if any/which settings between the two apps are not the same.

photo
1

Hello Flora,

The overlay layer should not display error messages over the base map. So "Not available" message should belong to the base map, not to the overlay.

photo
photo
1

Hi Menion,

is there any reason why this seemingly very simple feature has not been implemented in the last 8 years, while quite a few people think it could be very helpful?

In my case, it would help me automatically switching from world-raster maps to regional-vector maps.

A response would be very appreciated.

photo
1

Hello,

I knew it will be complicated, but with the changes in scaling system some years ago, it was even harder.

Anyway, in the next Beta version will be following option for testing (screenshot).

e275c6b2b1209399bd64d8adfc37fe5a

What it does? App does not use "zoom levels" as you probably know, but some kind of inner "scale" parameter. In case, you define min or max zoom limit, map itself won't be rescaled anymore. That's why "Max re-scale" parameter is disabled. Better than some more complicated description, give a try to the next Beta (end of the week) and let me know. Thanks.

photo
1

Great that you finally find a solution for this problem, even tho I cannot really grasp your description of the new UI.

Anyway, I am happy to test the new Beta version and report if it does what I expect it to do.

But this will probably not be backported to Locus Map Classic right?

photo
1

No, it won't sorry.

photo
1

Okay I get that

photo
1

Okay, so I downloaded the beta and got myself a silver license to make use of the overlay feature.

Maybe I'm not using it correctly, but as of right now, I cannot get it to work as I wish.

My default map is a vector map and the overlay a raster map that goes from zoom level 1-8 (as OpenAndroMaps states it: locus-actions://https/http://www.openandromaps.org/wp-content/users/michael/xml_world/OAM-World-1-8-min-J80.xml).
I configured the max zoom level to 21, because anything smaller is just good for looking at the whole world, but will hide the overlay completely if you zoom in just a little bit more.

While this is confusing already, for some reason the overlay activates and deactivates itself regularely when zooming out and in again.
It's hard to explain, so I created a small screencast: https://nc.horbach5x.de/s/5TLH7iBWEYqFejA

Can you recreate the problem or explain me what is going wrong exactly?

photo
1

Hi, thank you for the video, it helped me to understand the problem better.

It is complicated :/ ... even a "max. scale" does not work perfectly and with 100% or 200%, it sometimes causes an invisible map.

Anyway, the new Beta has been published. Now, it is possible to set the scale always, so set it to 400% or more, just for sure.

Btw. in your case, it is a lot better to use settings > maps > advanced > Pre-load global map. It is tested and it is also faster because, on the background, it disables the base map if the world map is active (at low zoom levels)

photo
1

Fantastic!

I downloaded the new beta and can confirm that both of the suggested approaches work as desired.

It is just important that the rescale value is set to 400%.

But i will probably stick to the global map setting, if that's the intended use case. I just didn't know that this setting exist.

photo
Leave a Comment
 
Attach a file