kekscom / osmbuildings

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

buildings without map layer #47

Closed platlas closed 10 years ago

platlas commented 10 years ago

Is it possible to use osmbuildings without map layer?

Because whan I have no map layer all buildings are black and I'm not able to change their color.

kerncy commented 10 years ago

I have the same problem. Did you find a solution ?

kekscom commented 10 years ago

Just removed all tile layers and it still works. Could you set up a jsfiddle please?

kerncy commented 10 years ago

I can't achieve to get them to work in a fiddle, here is a sample of the code I made with an overlay image : http://cyril.kern.free.fr/OSMBuilding-v2/floorplan.html Thank you for your help.

kekscom commented 10 years ago

Ok, din't know it's you :-) Could you try the latest OSMB version from master please? Then you can play a bit with new OSMBuildings.each(function(feature) { ... }).setData(..)

Each should allow you to log and to play with colors.

kerncy commented 10 years ago

Yeah, I'm asking lots of questions :) It works well with the last master version from git. Thank you for your help !