Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello experts,
we saw option of 'Opacity' in Geoqlik.
now we want to know is this option available also in GeoAnalytics?
we need it for different type of layer,specially for GeoData leyer which we use as our base map.
Thank you in advance.
Regards,
Matsa
There is no opacity setting but an semitransparent area layer in front can give a similar effect.
1. Add an area layer, set dim=1, location='[[[-180,-90],[-180,90],[180,90],[180,-90]]]'
2. Place the area layer in front of the background layer.
3. Set the color to white and change the opacity slider to a desired transparency.
Another option is to use a variable vWMSOpacity, a slider control and set the color of the area layer to =argb(vWMSOpacity,255,255,255).
Thanks,
Patric
No, there is no setting for opacity in the background layer.
As workaround place a area layer, covering the the backgound layer white + opacity to get the same effect.
Thanks,
Patric
Hi @Patric_Nordstrom ,
Thank you for the respond.I did not get the workaround.
as I mentioned before we have Geodata layer as Basemap.
what do you mean by place a area layer, covering the the backgound layer white + opacity ?
would you please explain it more.
Thank you in advance.
Regards.
Matsa
There is no opacity setting but an semitransparent area layer in front can give a similar effect.
1. Add an area layer, set dim=1, location='[[[-180,-90],[-180,90],[180,90],[180,-90]]]'
2. Place the area layer in front of the background layer.
3. Set the color to white and change the opacity slider to a desired transparency.
Another option is to use a variable vWMSOpacity, a slider control and set the color of the area layer to =argb(vWMSOpacity,255,255,255).
Thanks,
Patric
Thanks @Patric_Nordstrom , for the explanation. i did step 1 and 2 .
for step 3 do you mean putting Number in Transparency:
when I put different number in the mentioned range, It works , Just one question, is there any possibility to put variable as transparency? ( I tried , but It does not work with variable for me!( I tried =$(v1) and =v1 and '=$(v1)' as Transparency, but all 3 don't work and change to NaN.)
Thank you in advance.
Regards,
Matsa
I tested the second solution, It works perfect ,Thank you .
Here are some details related to my test , maybe they could be useful for others:
I created a slider as follow:
and a variable vSlider which get data from slider
I defined another variable in order to create value from 0 to 250:
vOpacity=floor (vSlider *10)
in area layer :
Dimensione=1
LocationId='[[[-180,-90],[-180,90],[180,90],[180,-90]]]'
in tab colore Color Mode=By Expression
Color Expression= argb(vOpacity,255,255,255)
In this way the slider change the color of area layer and it seems as level of Opacity of base Map are changing.
Again Thank you @Patric_Nordstrom .
Regards,
Matsa