Join GitHub today
Fix issue #5248: don't redo placement for zoom changes of low-pitch m… #5284
However, I forgot that the transform parameter
When the cost of placement is relatively low, this is not a very substantial difference, because the throttling limits placement to once every 300ms anyway. When placement is significantly more expensive (as in #5208), the placement can end up running continuously during zoom operations, which is a waste (we should only have to re-do placement when we cross integer zoom levels).
This PR fixes the oversight and introduces one unit test to verify that
This will hopefully all be superseded soon by #5150.
The benchmarks don't really exercise the use case this PR addresses, so this is just a sanity check.