Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Matsa
Creator
Creator

Does Geoanalytics have option for changing Opacity of layers?

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

Labels (1)
1 Solution

Accepted Solutions
Patric_Nordstrom
Employee
Employee

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

View solution in original post

5 Replies
Patric_Nordstrom
Employee
Employee

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

Matsa
Creator
Creator
Author

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

Patric_Nordstrom
Employee
Employee

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

Matsa
Creator
Creator
Author

Thanks @Patric_Nordstrom , for the explanation. i did step 1 and 2 .

for step 3 do you mean putting Number in Transparency:

Transparency.png

 

 

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

Matsa
Creator
Creator
Author

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:

Slider.png

 

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