g3ortega / polygonzo

Automatically exported from code.google.com/p/polygonzo
Other
0 stars 0 forks source link

Cannot hover over or click on Alaska #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Load the demo (http://code.google.com/p/polygonzo/)
2. Make sure you're using the '50 States, DC & Puerto Rico' map
3. Roll over or click on Alaska

What is the expected output? What do you see instead?
Expect the status to display 'Alaska' when mousing over
Expect "Clicked Alaska" on click.
Nothing on hover
"Clicked nowhere" on click.

What version of the product are you using? On what operating system?
Github Commit 5db0d03ec471801e804e2d2a15deb3e2d9e9668a
Using Google Chrome 22.0.1229.92 m

Please provide any additional information below.
I see the problem in the demo and on my local copy.
Verified in all other major browsers (Firefox, IE9, Opera, Safari)
I can provide version numbers if necessary, but I don't think the problem is 
browser-specific.

Original issue reported on code.google.com by tom.piet...@gmail.com on 10 Oct 2012 at 5:11

GoogleCodeExporter commented 9 years ago
I did a little troubleshooting and this seems to be caused by an error in the 
bounding box: "bbox":[172.4613,51.2184,-129.9863,71.3516]

If this is changed to:
"bbox":[-172.4613,51.2184,-129.9863,71.3516]

Then it works.

Original comment by tom.piet...@gmail.com on 10 Oct 2012 at 7:57

GoogleCodeExporter commented 9 years ago
I should mention that's in the "us-states.json" file.

Original comment by tom.piet...@gmail.com on 10 Oct 2012 at 7:58

GoogleCodeExporter commented 9 years ago
Same applies to the county: "Aleutians West" in the file "ak-counties.json"

I'm not sure about any others - those are the only ones I'm using at the moment.

Original comment by tom.piet...@gmail.com on 10 Oct 2012 at 8:01

GoogleCodeExporter commented 9 years ago
Thanks for the investigation - that's very helpful!

The bbox values for Alaska and Aleutians West are actually correct, but there 
was an error in the code for bbox longitudes that crossed the 180 degree 
meridian. If you pick up the latest code (revision e7d4a4f93125) you can go 
back to the original bbox values in the .json files.

Original comment by m...@mg.to on 11 Oct 2012 at 5:38

GoogleCodeExporter commented 9 years ago
Thanks so much!  I'm glad I was able to help at least a little.  This is a 
great project and exactly what I was looking for.

On a totally unrelated note: Alaska is frickin' huge.

Original comment by tom.piet...@gmail.com on 11 Oct 2012 at 1:37