albersUsa Projection
See original GitHub issueThanks for this great library!
I’m using with the albersUsa projection and ran into a small issue I thought I would share. albersUsa doesn’t have a rotate function and ZoomableGroup expects rotate to exist. One possible workaround would be to add a rotate function that doesn’t actually rotate.
I’m not using Zooming and Panning for this map so removed ZoomableGroup. ComposableMap seems to expect a single child so my workaround for now was creating a quick child component to pass the projection props along to it’s children.
const GeoGroup = ({ projection, children }) => ( children.map((child, i) => React.cloneElement(child, { projection, key: i, zoom: 1 })) );
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:13 (5 by maintainers)
Top Results From Across the Web
Albers USA projection style - Mapbox
Albers USA projection style containing all 50 US states + Puerto Rico, and their counties. When covering the US elections, not all map...
Read more >Using Albers USA projection – amCharts 4 Documentation
Using Albers USA projection. The most common depiction of a map of the United States is one that shows Alaska and Hawaii placed...
Read more >Albers projection - Wikipedia
The Albers equal-area conic projection, or Albers projection is a conic, equal area map projection that uses two standard parallels.
Read more >Albers USA Projection · GitHub
Albers USA Projection. GitHub Gist: instantly share code, notes, and snippets.
Read more >albersUsa projection? - Google Groups
d3 has a fabulous US projection, albersUsa http://bl.ocks.org/mbostock/4090848. It enables us to easily see Alaska and Hawaii in the same view as the ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@zimrick link to the example it’s broken, I’m getting an issue when using zoom with
projection='geoAlbersUsa'
With
v0.11.0
you should now be able to use the albersUsa projection. Check out the albersUsa example.