Skip to content

Single MVT for multiple layers #5552

Discussion options

You must be logged in to vote

I recommend you use renderSubLayers (the first option). onViewportLoad is called very frequently and changing data prop value can be expensive.

when changing the data URL we see a flicker

You should avoid changing the data URL if possible. It is recommended to turn layers off/on with the visible prop, see https://deck.gl/docs/developer-guide/performance#favor-layer-visibility-over-addition-and-removal

layerB updates when layerA's updateTriggers change and visa-versa

Not sure what you are doing to cause this, but in your renderSubLayers you can specify updateTriggers for each sub layer separately.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@JacobSolomonUCF
Comment options

@ibesora
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
3 participants