Class: RangeTheme3DLayer

RangeTheme3DLayer

三维分段专题图

new mapboxgl.supermap.RangeTheme3DLayer(id, layerOptions)

mapboxgl/overlay/RangeTheme3DLayer.js, line 4
Name Type Description
id string

专题图图层id

layerOptions Object

专题图图层配置项,参数继承自Theme3DLayer,新增参数如下:
heightStops -{Array} 数据高度分段数组
colorStops -{Array} 数据颜色分段数组
base -{number} 数据分段线性增量
legendRatio -{number} 图例数值扩大系数

Example
new mapboxgl.supermap.RangeTheme3DLayer(layerId, map, {
          enableHighlight:true,
          // 设置分段
          heightField: "floor",
          heightStops: [[1, 10], [10, 100]],
          colorStops: [
              [0, 'rgba(33, 41, 52, 0.8)'], [20, 'rgba(69,117,180, 0.7)'], [50, 'rgba(116,173,209, 0.7)'], [100, 'rgba(171,217,233, 0.7)']
          ],
          // 显示图例
          showLegend: true,
          legendTheme: 'dark',
          legendTitle: "图例"
      });

Members

basenumber

数据分段线性增量

colorStopsArray

数据颜色分段数组

heightStopsArray

数据高度分段数组

legendRationumber

图例数值扩大系数

Methods

getHighlightStyleOptions(){Object}

mapboxgl/overlay/RangeTheme3DLayer.js, line 99

获取高亮样式

Returns:
Type Description
Object mapbox gl样式对象

getLayerStyleOptions(){Object}

mapboxgl/overlay/RangeTheme3DLayer.js, line 57

获取图层样式

Returns:
Type Description
Object mapbox gl样式对象