Skip to content
This repository

Cannot get bounds using albersUsa projection #987

Closed
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 http://bl.ocks.org/4342045

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

        path = d3.geo.path()
          .projection(projection);

On a "click" callback I am doing,

            path.bounds(d)

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
Owner

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.