Skip to content

feat(editor): raise point limit to 150k for LOD-backed preview#86

Merged
techtimo merged 1 commit into
mainfrom
feat/increase-point-limit-150k
May 6, 2026
Merged

feat(editor): raise point limit to 150k for LOD-backed preview#86
techtimo merged 1 commit into
mainfrom
feat/increase-point-limit-150k

Conversation

@techtimo
Copy link
Copy Markdown
Owner

@techtimo techtimo commented May 6, 2026

Summary

  • Introduces EDITOR_POINT_LIMIT = 150000 constant in edit.jsx as single source of truth (replaces three hardcoded 50000 values)
  • Raises MAX_POINTS_PER_QUERY in class-spotmap-database.php from 50 000 to 150 000 to match

Why

The LOD manager (screen-space RDP simplification, #82) keeps the editor map preview smooth even with large datasets, making the old conservative 50k cap unnecessarily restrictive.

Test plan

  • Open block editor with a feed containing 25k–150k points — map preview should render without the "preview disabled" banner
  • Verify feeds exceeding 150k still show the banner and don't attempt to render

EDITOR_POINT_LIMIT constant (edit.jsx) and MAX_POINTS_PER_QUERY
(class-spotmap-database.php) both raised from 50 000 to 150 000.
The LOD manager keeps the editor preview smooth at this scale,
making the old conservative cap unnecessary.
@codecov
Copy link
Copy Markdown

codecov Bot commented May 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@techtimo techtimo merged commit 429e4d4 into main May 6, 2026
5 checks passed
@techtimo techtimo deleted the feat/increase-point-limit-150k branch May 10, 2026 20:14
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.

1 participant