3D Buildings on Map

Hey everybody,

if someone is interessted in displaying 3D Buildings on your map:

go to your mapsettings.json

delete the lines: 496 - 549 and paste:

 {
      "id": "building",
      "type": "fill-extrusion",
      "metadata": {
        "mapbox:group": "1444849364238.8171"
      },
      "source": "vector_tiles",
      "source-layer": "building",
      "paint": {
          "fill-extrusion-color": "#aaa",
        
          "fill-extrusion-height": [
          "interpolate",
          ["linear"],
          ["zoom"],
          15,
          0,
          15.05,
          ["get", "render_height"]
          ],
          "fill-extrusion-base": [
          "interpolate",
          ["linear"],
          ["zoom"],
          15,
          0,
          15.05,
          ["get", "render_min_height"]
          ],
          "fill-extrusion-opacity": 0.6
          }
          },

2 Likes

Awesome, thanks Denis!

1 Like