Skip to content

Conversation

@Kayd-06
Copy link

@Kayd-06 Kayd-06 commented Jan 30, 2026

Fixes #11832

This PR improves zoom and pan performance by reducing unnecessary work during SVG redraws:

  • Cache tag class computation based on entity version to avoid repeated recalculation
  • Reuse a persistent DOM node for text width measurement instead of recreating it
  • Avoid redundant tagClasses() calls by limiting them to enter selections
  • Stabilize tag handling for ways (e.g. multipolygons) so caching works correctly

These changes significantly reduce time spent in drawEditable and improve responsiveness during map interaction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Zoom and pan performance issues

1 participant