This object is in archive! 

Blend "multiply" map layers instead of translucency

elmuSSo shared this idea 11 years ago
Completed

Hi.


Maps overlays option is great, it can be very useful and it was long awaited. Se we are all happy it works great now. But it is not ideal. Transparency/ translucency is not perfect, because even if the background of the layered map is white, it will cover a lot of details from the second layer. So my idea is to introduce "Multiply blend mode" which will make the layers perfect. All of this is shown on this picture, I hope it is readable:

Replies (27)

photo
0

Any commentS?

photo
0

yes - you already have some votes...

photo
0

I am still dreaming of rendering mapsforge transparently on top of sat pics or other raster maps. One problem is obviously projection, the other problem is blending. Maybe multiply-mode would help here, I am not sure. I also have no idea if different blending modes are available in Android API.


Maybe mapsforge can be configured to render background all white? Then multiply would be fine I guess.

photo
0

Multiply blending works with all colours. It is mixing colours from two layers. If you have white colour - it will dissapear totally, if you have light yellow - there will be very light yellow visible. You are not setting the one transparent colour. All are semi transparent ( darker - less transparent, lighter - more transparent, and white is full transparent)

photo
0

What is the status of this idea?

photo
0

status? implemented ;)

photo
0

You are joking or I`m blind. Where it is?

photo
0

just set opacity of overlay to 100%

photo
0

So it looks I`m blind.


https://dl.dropbox.com/u/4747589/vide...


I can`t see here a blending mode. Only translucency.


It should looks like that:


https://dl.dropbox.com/u/4747589/mult...


BTW, also look on the maps choosing dialog - maps has white colour, and they are invisible on the white background

photo
0

you have in your test version map manager screen, still as dialog?? Also for you see completely different style of texts on slider in map overlay screen. Are you for sure use last test version from dropbox?

photo
0

Ehh. You didn`t say it is implemented in test version. I`m still testing the official release. Please, be more specific next time. And sorry for my lack of supposition

photo
0

Anyway, thanks for that:)

photo
0

sorry, I usually write "implemented" in time I did it. So it`s available in next test version or in next release. Next time I`ll try not to forget to write also this info.


You`re welcome. Try it and let me know. Seems to works correctly. I`ll just add there some note like "set opacity to 100% to enable "Blend-multiply" mode", or something like this

photo
0

Thanks.


- You can also think about some button to quickly swap base layer with overlay layer.


- And when you are loading a map which is already used as overlay, you are getting error message "Map already used as Overlay" and you need to go and turn it off manually. So maybe you can implement some automatic mechanism to just turn it off automatically. It is in 2:34 in my film.

photo
0

- Changing the base layer from Map overlays window would be also very convenient

photo
0

From my first sight:


- you turned off translucency totally. Now the overlay is always in the blend mode. At 50%, 60%, 70% and so on, it is also a blend mode( very good)


- I can see that the overlay ( sqlite, the same as I used on film) is visible only at the cartain level (the one which is pixel 1:1 (100%),native zoom for this overlay). When zooming in or out it dissapeares and i can see only base layer


- when changing to 100% i can see "blend mode", but the base layer is dissapearing and I can see only black colour beneath my overlay:


https://dl.dropbox.com/u/4747589/2012...

photo
0

- Adding a option for saving the overlays configuration ( base map, layer map, opacity), to quickly load them later.

photo
0

eh this is really happening to you??? Hmm then probably forget on it because it should work completely different


- only for 100% is enabled blending, for 0 - 99% is old system of semi-transparency


- overlay is visible on all possible zooms no matter of percent, core is that overlay have current zoom level


I already forget what ROM you use. CM?


Anyway there is almost nothing I can do with it. I`ll also check it on 2.3 device I have here. Btw. is selecting of overlays and also map manager now OK?

photo
0

interesting, works correctly even on 2.3.7, CM7.2.0

photo
0

I have MIUI ( so based on CM) , android 2.3.7.


This is really strange. I see here a lot of strange behaviours. But I need to go now. I will try to post some video and screenshots with description, but on the evening or even at night.

photo
0

it`s really not necessary. There is only one tiny function that do this and it`s directly in android. When this not work for you, I have nothing to change here. I understand what it do for you, but I have no chance to do something with it now

photo
0

Ok. Mystery solved ( I hope so). It looks like I took by accident very specific map file. With transparency. Here it is for your tests: https://dl.dropbox.com/u/4747589/_Rai... - check how it works on your phone . So we have things to discuss here:


1. When transparency is on in the map:


a) on opacity 0-99 transparent colour is transparent - this is perfect ( there is no fog over the base map ( this looks like blend mode)).


b) on opacity 100% something strange is going on. probably your or android`s blending algorithm is confused how to interpret transparency, and it is interpreting it as black. Or something like that. Anyway, transparency is the key.


2. Lets say our base map has zooms: 10-13, and our overlays has only one zoom: 11. When Locus is showing level 11, everything is fine: overlay is visible over the base map:


-----------------


Base map: 11 (normal, native)


Overlay: 11 (normal, native)


-----------------


When we are zooming in to level 12, only base map has this zoom level, so only base map is visible. Overlay is totally disappearing and not visible in any form:


-----------------


Base map: 12 (normal, native)


Overlay: not visible (zoom 12 doesn`t exist for overlay map)


-----------------


This is bad. I think, Locus should take the maximum existing zoom level from the overlay map, and scale it to the base map level actually shown. Am I right? So then we will have this situation:


-----------------


Base map: 12 (normal, native)


Overlay: 12 (scaled from zoom 11)


-----------------


3. All my previous propositions from two post above:


- You can also think about some button to quickly swap base layer with overlay layer.


- When you are loading a map which is already used as overlay, you are getting error message "Map already used as Overlay" and you need to go and turn it off manually. So maybe you can implement some automatic mechanism to just turn it off automatically. It is in 2:34 in my film.


- Possibility to change the base layer in "Map overlays" window would be also very convenient


- Adding an option for saving the overlays configuration ( base map, layer map, opacity), to quickly load them later.


- If you really want to follow GIS trends, you should also add Color Intensity option for overlay ( and for base map too). Here is the screenshot from GlobalMapper: https://dl.dropbox.com/u/4747589/glob... . Colour intensity will make possible to make the overlay lighter or darker. This is very important when overlaying maps, because you can make one of the maps less invasive. All depends of the character of the maps. Without this option some of the base/overlay combinations can be unreadable.


I hope you will comment all my ideas. Cheers.

photo
0

new version is just heading on market ...


1) understand - so I added possibility to enable/disable blend mode


2) this topic is already here https://getsatisfaction.com/locus/top...


3) except saving configuration, I agree with these ideas. This is anyway on another "Idea". Here will be these ideas lost. Also currently have higher priority "Quick map switch". I just found a way by accident how to blend more images when drawing, so that`s reason why I started to do this idea :)

photo
0

So should I create separate topics for each of these ideas?


"1) understand - so I added possibility to enable/disable blend mode" - is this really the best option? what if i will find a map which is only partially transparent, but the majority is with light cream colour? this cream colour would be nicely blended with the base map, but if you will turn of blending - it won`t. maybe it would be better to render transparency as white, and then blend it. it would be much more secure and future-proof.

photo
0

if you want, you may create, hmm I think one big, with just "Map Overlays improvements"


ad 1) .. changing transparent to white and blend it, will really slow down a map. How it works in some for example GlobalMapper? As you wrote?

photo
0

Speaking about overlays: i get a "map can not be selected" when i try to choose a vector map via quickmapswitch and a vector map overlay is enabled before. Shouldnt this just disable the overlay like when selecting other (non-vector) maps?

photo
0

I don`t know how they do it, but it just works flawlessly:


Anyway, the list of possible blend modes in Locus ( the one you just added recently) is nice, but please put MULTIPLY on the top, not on the bottom. Another annoying thing, to scroll down every time I want to choose multiply.


"3) except saving configuration, I agree with these ideas." - why you dont agree?

Replies have been locked on this page!