Skip to content
This repository

Cannot get bounds using albersUsa projection #987

milkypostman opened this Issue · 1 comment

2 participants

Donald Ephraim Curtis Mike Bostock
Donald Ephraim Curtis

I basically have a simple path object setup as follows, based on the

        projection = d3.geo.albersUsa()
          .translate([0, 0]);

        path = d3.geo.path()

On a "click" callback I am doing,


where d is what is passed to the callback, and I get the following exception,

Uncaught TypeError: Object function albersUsa(coordinates) {
      return projection(coordinates)(coordinates);
    } has no method 'stream' 

I wish I could help with this better but I have no idea where to begin.

Mike Bostock

Sorry about this. Fixed in 3.0.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.