developmentseed / worldpop

Get the population of regions that you draw!
http://developmentseed.github.io/worldpop
BSD 2-Clause "Simplified" License
12 stars 7 forks source link

Adding multipolygon geojson causes loader to wig out #52

Closed DylanMoriarty closed 9 years ago

DylanMoriarty commented 9 years ago

Dropping a geojson with multiple polygons seems to cause some issues at the moment. I'm adding two quick geojsons I put together which cause consistent errors when added.

3-Polygon geojson https://drive.google.com/a/developmentseed.org/file/d/0B4gmhcCVsfP4YnNqWUNwa19EVEU/view?usp=sharing

Dragging this one in causes the app to wig out. loading dance

5-Polygon geojson https://drive.google.com/a/developmentseed.org/file/d/0B4gmhcCVsfP4Rl9leS1RbHo0NGs/view?usp=sharing

Dragging this one in causes it to initially act like the first geojson, but then it settles on just displaying one of the five polygons.

DylanMoriarty commented 9 years ago

Turns out just reloading the page when there's multiple polygons drawn on it causes a similar wig out, so it's probably how the code is processing multiple areas rather than something with the geojson processing.

anandthakker commented 9 years ago

Good call @DylanMoriarty