【问题标题】:Mapbox osm buildings extrude heightsMapbox osm 建筑物突出高度
【发布时间】:2018-04-13 17:18:50
【问题描述】:

此示例演示了具有恒定高度数据的建筑物多边形的挤压:jsfiddle.net/yedg641a/

另一个示例,在 mapbox 教程网站上,演示了基于矢量切片高度数据的挤压。 https://www.mapbox.com/mapbox-gl-js/example/3d-buildings/

是否有可能在不使用 mapbox 服务的情况下实现此效果,例如 js fiddle 上的示例?

【问题讨论】:

    标签: javascript mapbox-gl-js


    【解决方案1】:

    根据https://openmaptiles.org/schema/#building'fill-extrusion-height': 10 更改为'fill-extrusion-height': ['get', 'render_height']

    http://jsfiddle.net/1y8euv3d/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-04-26
      • 2018-01-02
      • 2017-04-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多