LoginSignup
0
0

More than 1 year has passed since last update.

【Harmoware-VIS】デフォルト表示の3D建築物を非表示にする

Last updated at Posted at 2021-12-09

Harmoware-VIS とは

デフォルト表示の3D建築物を非表示にする

HarmoVisLayers コンポーネントのpropsのmapboxAddLayerValueにnullを設定します。

<HarmoVisLayers
mapboxAddLayerValue={null} ..... />

mapboxAddLayerValueのデフォルト値は以下です。

    mapboxAddLayerValue: [{
      "id": '3d-buildings',
      "source": 'composite',
      "source-layer": 'building',
      "filter": ['==', 'extrude', 'true'],
      "type": 'fill-extrusion',
      "paint": {
          "fill-extrusion-color": '#888',
          "fill-extrusion-height": [
              "interpolate", ["linear"], ["zoom"],
              5, 0, 5.05, ["get", "height"] ],
          "fill-extrusion-base": [
              "interpolate", ["linear"], ["zoom"],
              5, 0, 5.05, ["get", "min_height"] ],
          "fill-extrusion-opacity": .6
      }
    }]

mapbox提供の他のレイヤーを使用する場合はここに設定します。
mapbox提供のレイヤーの詳細はmapboxのドキュメントを参照してください。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0