setLayoutProperty, setFilter, setPaintProperty - does the order matter? #2396
-
To minimize the amount of work a browser has to do does the order of applying I've got 3 settings a user could change to change what they see. Sometimes changing all three of Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think |
Beta Was this translation helpful? Give feedback.
As far as I can tell, order does not matter.
And if you call them immediately one after another, not using setTimeout or requestAnimationFrame, they will be accomplished in the same render pass because of this "batching" logic:
maplibre-gl-js/src/ui/map.ts
Line 3060 in c03607b