Class Heatmap

热力图

Constructors

Properties

bounds: GeoBounds
h337: any
heatmap: any
mesh: Mesh<BufferGeometry<NormalBufferAttributes>, Material | Material[], Object3DEventMap>
size: [number, number]
texture: Texture

Methods

  • 创建

    Returns Promise<Mesh<PlaneGeometry, MeshBasicMaterial | ShaderMaterial, Object3DEventMap>>

  • 通过坐标值获取所在的值

    Parameters

    • pt: [number, number]

    Returns any

  • 通过uv值获取所在的值

    Parameters

    • uv: [number, number]

    Returns any

  • 设置数据

    Parameters

    • opts: {
          boundScale?: number;
          bounds?: [number, number][];
          clipPolygon?: [number, number][];
          data: {
              point: [number, number];
              value: number;
          }[];
          max?: number;
          min?: number;
      }
      • Optional boundScale?: number
      • Optional bounds?: [number, number][]

        边界范围 [[minx, minz],[maxx, maxz]]

      • Optional clipPolygon?: [number, number][]

        裁剪多边形

      • data: {
            point: [number, number];
            value: number;
        }[]

        数据项

      • Optional max?: number
      • Optional min?: number

    Returns void