TileLayer Force getTileData With updateTriggers? #9039
-
Hi! Do updateTriggers work with the TileLayer getTileData function? I am attempting to trigger the getTileData function on an interval basis using an updateTriggers variable. However, I never see network calls to retrieve tiles when the updateTrigger variable changes... Below is a simple CodePen where you can see the behavior... https://codepen.io/jfuehner/pen/BagzVjr I am able to get this to work if I call the TileLayer's updateState function directly passing in an params object
This feels like a hack though... |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You are changing the |
Beta Was this translation helpful? Give feedback.
-
I see… Thanks for clearing up my misunderstanding of updateTriggers. My interpretation was changing a value assigned to an updateTrigger property would force the layer assessor or layer function to fire re-rendering that portion of the layer automatically… I didn’t realize I would need to set decks array of layers again. |
Beta Was this translation helpful? Give feedback.
You are changing the
updateTileData
variable, not theupdateTriggers
prop.Update layers