WMS opaque layers

79 views
Skip to first unread message

jsto...@gmail.com

unread,
Apr 8, 2015, 9:04:38 AM4/8/15
to cesiu...@googlegroups.com
The WMS that I am using supports opaque/transparent layers. An opaque layer is a layer which is generally translucent except where the image is. A dated but good analogy is an old overhead projector.

I believe that transparent layers are not part of the WMS spec, but are an extension.

Openlayers supported this by allowing the developer to pass a 'transparent' parameter at the time the layer is constructed.

Transparent layers are useful for showing information like borders, roads, ...

I am wondering if Cesium supports transparent layers? I have looked through the code and did not see any attributes or parameters which someone could set to indicate that the layer is transparent.

The behavior that I am seeing on a transparent layer is that the transparent part of the layer is appearing black on the globe meaning that I have to turn the alpha down, which affects the whole layer and not just the transparent part.

Thanks in advance

Jerry

Kevin Ring

unread,
Apr 8, 2015, 9:48:06 AM4/8/15
to cesiu...@googlegroups.com


--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

jsto...@gmail.com

unread,
Apr 8, 2015, 11:08:08 PM4/8/15
to cesiu...@googlegroups.com
Thanks Kevin for the pointer, I noticed that the sandcastle example specified png as the format. In my code I was specifying jpeg for the format. I changed my format to png and got the results that I wanted. Thanks!!
Reply all
Reply to author
Forward
0 new messages