-
Notifications
You must be signed in to change notification settings - Fork 638
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
For some cities only a square is displayed #339
Comments
I have looked into the Chrome Developer Tools and looked for something suspicious happening but didn't stumble upon anything that looks like it could be the cause for this. I don't think it is a problem with the data as others who also experience the problem told me they used to work before. |
Thanks, indeed, that seems to do the trick. See #342 for Bad Belzig. When this passes review I can also fix the others. |
I also detected a few more broken ones:
Those also have some polygons that are not in clockwise order, however I wasn't able to see that anything is broken in the web app:
|
re: the cities that aren't ordered right but display correct - I'm unfortunately not enough of a GIS/D3 expert to know exactly why the old version of d3 (v3) had no problem with these files and why the modern version of d3 (v7) does - I've not been able to find a documented change in d3 that says it's more strictly enforcing the order or some other change that would help us understand what exactly to look for. |
I guess it might have to do with @mbostock's reply further down on the thread you you linked to d3/d3-geo#79 (comment):
I'm also still not quite getting this yet. Spherical polygons, planar polygons, hmm, which one's do we have at hand? |
Right - but what I didn't understand was what changed in D3 between v3 and v7 - wasn't it always using spherical coordinates? |
For some cities, the expected suburb boundaries do not appear, instead there only a giant square on the map.
These are cities for which it doesn't work here:
for most other cities everything works fine.
I have the impression it might have something to do with the extend of the city, the ones above are all rather small ones, so that the zoom level is rather high (i.e. zoomed in).
The text was updated successfully, but these errors were encountered: