Class HeightResctriction

限高分析

HeightResctriction

const positions: Cesium.Cartesian3[] = [...];
const state = {
tiped: false,
loading: false,
height: 200,
baseHeight: 0,
upColor: 'rgba(243, 86, 25, 0.7)',
downColor: 'rgba(21, 170, 57, 0.7)',
};
const analyser = new HeightResctriction(viewer, {
height: state.height,
baseHeight: state.baseHeight,
upColor: state.upColor,
downColor: state.downColor,
extrudedHeight: 1000,
});
analyser.analyse(positions);

Constructors

Properties

baseHeight: number = 10
downColor: string = 'rgba(21, 170, 57, 0.7)'
extrudedHeight: number = 1000
height: number = 10
positions: Cartesian3[] = []
upColor: string = 'rgba(239, 78, 43, 0.7)'
viewer: Viewer

Methods

  • Parameters

    • positions: Cartesian3[]

    Returns void

    执行分析

    HeightResctriction

  • Returns Cartesian3[]

  • Parameters

    • height: number

    Returns any

    改变限高高度

    HeightResctriction

  • Returns void

    清除分析

    HeightResctriction