kekscom / osmbuildings

OSM Buildings Classic 2.5D
http://osmbuildings.org
BSD 2-Clause "Simplified" License
505 stars 140 forks source link

geometries of shadows? #77

Closed rajanski closed 9 years ago

rajanski commented 9 years ago

Hi I just stumbled upon this amazing leaflet plugin! Especially the shadows functionality is just great! Is there a way to return the geometries for the shadows ? best,

R

kekscom commented 9 years ago

There is no API for that, but check the source in https://github.com/kekscom/osmbuildings/blob/master/src/layers/Shadows.js

You'll need the sun position and buildings geometry. Then its just a projection.

If you need a specific solution, get in touch.