diff --git a/js/map.js b/js/map.js index 4a009610c847567cc857e17ce5d4ad10ef7c290c..5e607ff5a1778745f8d7319174332480cbb3992d 100644 --- a/js/map.js +++ b/js/map.js @@ -107,4 +107,19 @@ map.on('load', function() { } }, labelLayerId); + map.addLayer({ + 'id': 'room-extrusion', + 'type': 'fill-extrusion', + 'source': { + 'type': 'geojson', + 'data': 'geojson/museum.geojson' + }, + 'paint': { + 'fill-extrusion-color': ['get', 'color'], + 'fill-extrusion-height': ['get', 'height'], + 'fill-extrusion-base': ['get', 'base_height'], + 'fill-extrusion-opacity': 0.5 + } + }); + });