UNPKG

bcgis-type

Version:

The SDK is based on Cesium for secondary development of 2, 3D all-in-one WebGis application framework, the framework optimizes the use of Cesium and add some additional features, designed for developers to quickly build WebGis applications.

51 lines (50 loc) 1.28 kB
import Overlay from "../Overlay"; import Position from "../../position/Position"; import { T_Position } from "../../common/type"; /** * 自定义图标 * @noInheritDoc * @example * ```ts * let position = new BC.Position(120, 20) * let billboard = new BC.CustomBillboard(position, '*.png') * billboard.size = [20, 20] * ``` */ declare class CustomBillboard extends Overlay { _position: Position; _icon: any; _size: number[]; constructor(position: T_Position, icon: any); get type(): any; set position(position: Position); get position(): Position; set icon(icon: any); get icon(): any; set size(size: number[]); get size(): number[]; _mountedHook(): void; /** * Sets label * @param text * @param textStyle */ setLabel(text: string, textStyle: any): this; /** * 设置风格 * @param style */ setStyle(style: any): this; /** * Sets VLine style * @param style */ setVLine(style?: any): this; /** * @param {*} radius * @param {*} style * @param {*} rotateAmount */ setBottomCircle(radius: number, style?: {}, rotateAmount?: number): this; } export default CustomBillboard;