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

use geoAlbers (#36) #43

Merged
merged 2 commits into from
Jan 15, 2018
Merged

Conversation

aappling-usgs
Copy link
Member

@aappling-usgs aappling-usgs commented Jan 13, 2018

Resolves the problem with projecting in d3.geoAlbers from #36. See notes in that issue for explanation.

image

// Projection
var projection = d3.geoAlbers()
    .scale([1800])
    // default is .rotate([96,0]) to center on US
    .center([96-91.34397, 32.25196]) // adjust longitude relative to rotation
    .translate([chart_width / 2, chart_height / 2]);

.center([-91.34397, 32.25196])
var projection = d3.geoAlbers()
.scale([1800])
// default is .rotate([96,0]) to center on US

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ahhhhhhh 👍

@lindsayplatt lindsayplatt merged commit 48659c4 into USGS-VIZLAB:d3 Jan 15, 2018
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.

2 participants