question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

albersUsa Projection

See original GitHub issue

Thanks 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
marlonmantillacommented, Feb 16, 2020

@zimrick link to the example it’s broken, I’m getting an issue when using zoom with projection='geoAlbersUsa'

1reaction
zimrickcommented, Feb 22, 2018

With v0.11.0 you should now be able to use the albersUsa projection. Check out the albersUsa example.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found