Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support All US Territories in Albers USA projection #195

Closed
curran opened this issue Jun 19, 2020 · 7 comments
Closed

Support All US Territories in Albers USA projection #195

curran opened this issue Jun 19, 2020 · 7 comments

Comments

@curran
Copy link

curran commented Jun 19, 2020

This projection by @almccon would be amazing to have as part of d3-geo-projection.

image

https://observablehq.com/@almccon/u-s-map-with-puerto-rico

@curran
Copy link
Author

curran commented Jun 19, 2020

@Fil
Copy link
Member

Fil commented Jun 19, 2020

Isn't it a duplicate of d3/d3-geo#152 ?

@mbostock
Copy link
Member

Yep, duplicate.

@curran
Copy link
Author

curran commented Jun 19, 2020

The distinction here is that it also includes US Virgin Islands, American Samoa, Guam, and Northern Mariana Islands.

@almccon
Copy link

almccon commented Jun 19, 2020

Here's another variant with US Virgin Islands, American Samoa, Guam, and Northern Mariana Islands, but where the Pacific possessions are on the left side of the map. This one seemed to be preferred by most people:

https://observablehq.com/@almccon/u-s-map-with-puerto-rico-us-virgin-islands-american-samoa-gua

Screen Shot 2020-06-19 at 1 30 33 PM

@curran curran changed the title Proposed Projection: Geo Albers USA with Territories Support All US Territories in Albers USA projection Jun 19, 2020
@armsp
Copy link

armsp commented Jun 28, 2020

I downloaded the geoshape json files - one projected and another un-projected - from Mike Bostock's example both of which have Puerto Rico.

I am trying to display them in the "albersUsa" projection in Vega or Vega-Lite which uses d3. However I don't see it at all. In the unprojected file, "albersUsa" projection filters Puerto Rico and never displays it. In the projected version there is no map, everything is a giant dark rectangle.

@curran @almccon Any idea how to get it to display in Vega/Vega-Lite?

I see that there are some js files with Puerto Rico too, how do I get them to replace the native d3 js file responsible for the "albersUsa" projection? Perhaps this technique may help me with displaying Puerto Rico too in "albersUsa" projection.

Update - GIS StackExchange Post

@curran
Copy link
Author

curran commented Jul 1, 2020

@armsp It's not recommended to cross-post like this. I responded over in d3/d3-geo#152

@d3 d3 locked as resolved and limited conversation to collaborators Jul 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

5 participants