Skip to content

MVTLayer renderSubLayers Composite Layer issue #5827

Discussion options

You must be logged in to vote

TileLayer/MVTLayer toggles tile visibility by setting the visible prop. Your custom layer's sublayers need to inherit the parent layer's visibility, like so:

- visible: this.props.labelVisible
+ visible: this.props.visible && this.props.labelVisible

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JacobSolomonUCF
Comment options

Answer selected by JacobSolomonUCF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants