In the coloring of the PLATEAU 3D city model, you can combine attributes and color-code buildings, not just using the "height" attribute as done on the previous page.

Here, in addition to the "height" attribute, the "use" attribute will also be used for coloring.

  1. Open your favorite text editor (Notepad is fine). Please paste the following code:
{
    "show": "true",
    "color": {
        "conditions": [
	    [
                "(${_height} > 50) && (${用途} === '業務施設')",
                "color('#f8a99c')"
            ],
            [
                "(${_height} < 10) && (${用途} === '商業施設')",
                "color('#923b2d')"
            ]
        ]
    }
}
  1. Save the file with the name of your choice and use the .json extension.

styljsonアイコン.png

  1. Select the style URL in the settings for the 3D Tiles layer.

1.png

  1. Once the file is added to the assets through file upload, click to select it.

2.png

Then, it will be displayed like this.

3.png