Repository navigation
feat(core): Support PROJJSON in coordinateSystem prop - #10894
Conversation
[Medium impact] The PR appears safe to merge, with a non-blocking correction needed in the migration table. Findings
SummaryAdds structured CRS support and shares resolved descriptors across projection, geometry, aggregation, and extensions.
|
ibgreen
left a comment
There was a problem hiding this comment.
Approved. One softer API design suggestion for a follow-up: consider keeping coordinateSystem as a finite enum and adding a crs prop plus a 'crs' mode. If coordinateSystem is omitted or 'default' and crs is supplied, resolve the effective mode to 'crs'; explicit local modes would keep their current behavior. This keeps mode selection type-safe while allowing PROJJSON and other math.gl CRS inputs. It would be useful to define whether supplying crs alongside an explicit non-default mode is ignored or rejected. This could be a separate follow-up if it would expand this PR too much.
For #10739
Change List
coordinateSystemto accept PROJJSON and other math.gl CRS definitions.projectionChanged.Layer.projectPositionto use resolved descriptors, eliminating per-vertex CRS resolution.