From 3b3ab9eb9e01447734e99490e7ed5c6fe13abfc3 Mon Sep 17 00:00:00 2001 From: Lukas Martinelli Date: Tue, 10 Jan 2017 16:24:13 +0100 Subject: [PATCH] Support 3d buildings --- style.json | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/style.json b/style.json index b504130..50fb738 100644 --- a/style.json +++ b/style.json @@ -1134,6 +1134,8 @@ "metadata": {}, "source": "openmaptiles", "source-layer": "building", + "minzoom": 13, + "maxzoom": 14, "paint": { "fill-color": "hsl(35, 8%, 85%)", "fill-outline-color": { @@ -1149,6 +1151,32 @@ ] ] } + }, + "layout": { + "visibility": "visible" + } + }, + { + "id": "building-3d", + "type": "fill-extrusion", + "metadata": {}, + "source": "openmaptiles", + "source-layer": "building", + "minzoom": 14, + "paint": { + "fill-extrusion-color": "hsl(35, 8%, 85%)", + "fill-extrusion-height": { + "property": "render_height", + "type": "identity" + }, + "fill-extrusion-base": { + "property": "render_min_height", + "type": "identity" + }, + "fill-extrusion-opacity": 0.8 + }, + "layout": { + "visibility": "visible" } }, {