Hi,
Is there a way to set the transparency of a KMZ layer that is displayed via a script? I tried accessing the layer and then using
layer.setAlpha(0.4), however it does not update the display.
Thanks,
Joleen
Set Transparency of KMZ rgb
Re: Set Transparency of KMZ rgb
Hi Joleen -
Looking at the code, it looks like the transparency is being applied with setAlphaFromSlider(). So, you can run:
... which sets the layer as 40% transparent. Note that while the display itself updates, the slider in the Layer Controls doesn't update.
Let me know if this doesn't work, or if you have any questions.
Thanks -
Bob Carp
Looking at the code, it looks like the transparency is being applied with setAlphaFromSlider(). So, you can run:
Code: Select all
layer.setAlphaFromSlider(0.4)
... which sets the layer as 40% transparent. Note that while the display itself updates, the slider in the Layer Controls doesn't update.
Let me know if this doesn't work, or if you have any questions.
Thanks -
Bob Carp
Re: Set Transparency of KMZ rgb
Thanks, that worked.
Joleen
Joleen