Do you want to highlight specific buildings on your map? This can be easily achieved with filtering based on ID.
Select the building
First, go to the Customize tool and duplicate the Building layer (right-click > Duplicate). Find the building you want to highlight, switch to the Data tab, and click on it. Now, you can see the specific ID. You can click on the value to copy it to the clipboard.
Filter in JSON editor
Once you have the building ID, add a filter in the JSON Editor (Alt+E). The filter needs to be in the following format.
["==", [ "id" ], 1145174506]
To avoid duplications, you should remove the selected building from the first layer (in our case Building 3D).
["!=", [ "id" ], 1145174506]
Now, you can style the selected building any way you want. Change the color, opacity, or just anything!
Comments
2 comments
Did the Data tab not include the 3d extrusions previously? I do not remember it only being a flat green polygon once you enter the Data mode. Is this a new update and how can i change it back?
Hi Petar, the Data tab did not include the 3D extrusions previously. The Data tab view represents the original geometry of the data, which is polygon. Extrusion is rendered with the styling - it is a visualization technique for the polygon layers. You can find more details regarding geometry vs visualization in the second part of this article: https://documentation.maptiler.com/hc/en-us/articles/16440588792721-Add-a-new-style-layer.
Hope this helps. Let me know if you have any other questions.
Please sign in to leave a comment.