kekscom / osmbuildings

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

Add GeoJSON data at leaflet.js #122

Closed CakirEfekan closed 3 years ago

CakirEfekan commented 3 years ago

Is that possible to add GeoJSON data with default osmbuildings datas. The "setData" deletes osmbuildings datas, but i want to use both of them. Are there any solution?

kekscom commented 3 years ago

Yes this is an exclusive function. Can't promise a change soon.

CakirEfekan commented 3 years ago

Hi again, i found a solution. these codes: https://github.com/kekscom/osmbuildings/blob/b6f8c1b6332255857428405673cbfb0ffaa3ff3c/dist/OSMBuildings-Leaflet.js#L681-L685 should be like these: https://github.com/kekscom/osmbuildings/blob/95311aafd10d5ae3bbb2feb9ac1198ef0dd1dff5/dist/OSMBuildings-Leaflet.js#L681-L689

These are from my forked repo but i don't know how can i embed code, for this reason i show code blocks as from your repo. Sorry for this mess.

kekscom commented 3 years ago

Official solution is here available now. Thank you for bringing this up.