map.on('load', function() {

                map.addLayer({
                    "id": "guanzhou",
                    "type": "fill-extrusion",
                    "source": {
                        type: 'vector',
                        tiles: ['http://192.168.182.1:6767/{z}/{x}/{y}.pbf']
                    },
                    "source-layer": "广州",
                    'layout': {},
                    'paint': { 
                        'fill-extrusion-color': [
                            "interpolate",
                            ["exponential", 0.99],
                            ["get", "Floor"],
                            0,
                            "#FFF6B7",
                            100,
                            "#F6416C"
                        ],
                        'fill-extrusion-height': [
                            "interpolate", ["linear"],
                            ["zoom"],
                            15, 0,
                            15.05, ["get", "Floor"]
                        ],
                        'fill-extrusion-base': 0,
                        'fill-extrusion-opacity': 0.6
                    }
                });

            });

【Mapbox】建筑矢量切片加载显示

 

相关文章:

  • 2022-12-23
  • 2021-10-29
  • 2021-05-24
  • 2021-10-14
  • 2022-12-23
  • 2021-12-18
  • 2021-07-14
  • 2021-07-09
猜你喜欢
  • 2021-07-24
  • 2021-12-31
  • 2021-09-14
  • 2022-12-23
  • 2022-12-23
  • 2021-10-03
  • 2021-11-17
相关资源
相似解决方案