valhalla / demos

demos
MIT License
98 stars 58 forks source link

this fixes some issues with rendering transparent polygons over eachother #178

Closed kevinkreiser closed 7 years ago

kevinkreiser commented 7 years ago

there are lots of problems with rendering contour data as polygons. specifically, contours arent strictly polygons. but it turns out that people like to view them that way when they take the form of isochrones. this presents a hard problem. for any given polygon we need to know which polygons from the next contour smaller are inside of said polygon. i thought of a pretty clever way to do this (as seen in previous commits) but i couldnt get it working properly. so i gave up and used turf.js to do the differencing for me #lazy..

@meghanhade let me know if this is agredious. if not feel free to use as example for explorer.