How to style individual buildings
Map design Highlighting features on maps
This set of articles represents a recommended selection of Highlighting features on maps examples.
- How to style individual buildings
- How to highlight specific national boundary on your map
- How to highlight specific country on your map
- Masking features in MapTiler Cloud
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!
Next steps
Continue to How to highlight specific national boundary on your map to learn how to highlight a specific country’s national boundary.
Related guides
- Add a new style layer
- Add custom watermark to your map
- Change language in a map
- Choose a map style
- Contours and mountain peaks in feet
- Creating a custom vector dataset (GeoJSON)
- Data sources
- Disputed borders on your maps
- Download datasets in GeoJSON for desktop GIS
- Edit style: Quick customization of the map (Roads and traffic)