Skip to content

plot.scale("projection")#2397

Open
Fil wants to merge 1 commit intomainfrom
fil/expose-projection-2
Open

plot.scale("projection")#2397
Fil wants to merge 1 commit intomainfrom
fil/expose-projection-2

Conversation

@Fil
Copy link
Copy Markdown
Contributor

@Fil Fil commented Mar 27, 2026

plot.scale("projection") exposes the materialized projection from a plot

The returned object exposes the resolved projection options, reflecting the actual values used to construct the projection, making it possible to create a new plot with the same projection. The projection object also exposes an apply method that projects a [longitude, latitude] point to [x, y] pixel coordinates, as well as an invert method.

closes #1191
supersedes #2038

@Fil Fil requested a review from mbostock March 27, 2026 14:38
@Fil Fil mentioned this pull request Mar 27, 2026
4 tasks
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.

expose the projection to make it reusable

1 participant