kekscom / osmbuildings

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

building:levels are not working in classic 2.5D #99

Closed sanjeevyanala closed 8 years ago

sanjeevyanala commented 8 years ago

I have added a geojson, the properties of geojson is like below mentioned: "properties": { "color": "rgb(255,200,150)", "height": 250, "building:levels" :7, "minHeight": 50, "roofColor": "#FFDA33", "roofMaterial":"wood", "material": "material", "shape":"cylinder", "roofShape":"gabled", "roof:shape":"mansard" } But here building:levels are not working. How can i apply ?

kekscom commented 8 years ago

It's just 'levels'.

kekscom commented 8 years ago

Just in case: if height is available as well, it would take precedence.

sanjeevyanala commented 8 years ago

Hi, Help me, I have written like this, even though it is not working... "properties": { "color": "rgb(255,200,150)", "levels": 9, "height": 250 } Could you give me a working example of levels.

kekscom commented 8 years ago

I might be missing the point but this works perfectly fine: http://codepen.io/osmbuildings/pen/EyXwXv

sanjeevyanala commented 8 years ago

Thanks, it's working fine, but is it possible to show floors (levels) with different colors ?

kekscom commented 8 years ago

Alright. For styled levels you really need to provide different 3D objects. Properties minHeight or minLevel allow you to set the vertical position of an object. For a whole district this would of course blow the 3D engine.