You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've built a custom MVTLayer that renders a set of sublayers (GeoJSONLayers and a TextLayer). I'd like them to be opaque to each other but semi-transparent as a unit. Is this possible with the basic layer config options? I've set the getLineColor and getFillColor of each sublayer to use opaque colors, and explicitly set the opacity: 1 for each sublayer. This does make the sublayers opaque to each other, but setting opacity: 0.6 on the parent layer doesn't seem to have an effect. Is this expected? If so, is it possible to override this behavior?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I've built a custom
MVTLayer
that renders a set of sublayers (GeoJSONLayer
s and aTextLayer
). I'd like them to be opaque to each other but semi-transparent as a unit. Is this possible with the basic layer config options? I've set thegetLineColor
andgetFillColor
of each sublayer to use opaque colors, and explicitly set theopacity: 1
for each sublayer. This does make the sublayers opaque to each other, but settingopacity: 0.6
on the parent layer doesn't seem to have an effect. Is this expected? If so, is it possible to override this behavior?Beta Was this translation helpful? Give feedback.
All reactions