fix(portrayal): place centred area symbols per S-52 §8.5.1#15
Merged
Conversation
Centred area symbols (anchorages, restricted/cable/pipeline areas) were placed by putting the S-101 catalogue pivot on the area's point. For the "…RES" fan-out symbols that pivot is authored at the SVG corner, so the glyph hung ~100px off its area: misplaced (sometimes over a building), the tap at the area missed it, and it read as the symbol "moving around". - Anchor at the pole of inaccessibility (Mapbox polylabel), hole-aware, so the representative point stays inside concave areas and off holes (S-52 §8.5.3 representative point of an area). - Centre the PRIMARY centred symbol's glyph on that point "so it is evident which area the symbol applies to"; additional symbols keep the catalogue offset and fan out "to prevent overwriting" (S-52 §8.5.1 — a centred symbol plus offset extras). Baked as a pivot_center tag; the client selects a glyph-centred "ctr:" sprite variant for it. Requires a re-bake. Not yet implemented: the §8.5.1 rule "if the centre of the symbol bounding box falls outside the area it must not be drawn" (zoom-dependent in a tiled renderer; needs a client render-time test). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Centred area symbols (anchorages, restricted/cable/pipeline areas) were placed by putting the S-101 catalogue pivot on the area's point. For the "…RES" fan-out symbols that pivot is authored at the SVG corner, so the glyph hung ~100px off its area: misplaced (sometimes over a building), the tap at the area missed it, and it read as the symbol "moving around".
Requires a re-bake. Not yet implemented: the §8.5.1 rule "if the centre of the symbol bounding box falls outside the area it must not be drawn" (zoom-dependent in a tiled renderer; needs a client render-time test).