Interface Marker3dOptions

interface Marker3dOptions {
    anchor?: Anchor;
    asSprite?: boolean;
    color?: string;
    createMaskObject?: boolean;
    disableOpacity?: number;
    element?: HTMLElement;
    fadeDistance?: number;
    height?: number;
    image?: {
        height?: number;
        src: string;
        width?: number;
    };
    isHide?: boolean;
    occlude?: boolean;
    occludeMaterial?: Record<string, any>;
    occlusionOpacity?: number;
    pixelHeight?: number;
    pixelWidth?: number;
    popupAnchor?: Anchor;
    popupOffset?: PopopOffset;
    rotation?: [number, number, number];
    width?: number;
}

Properties

anchor?: Anchor
asSprite?: boolean
color?: string
createMaskObject?: boolean
disableOpacity?: number
element?: HTMLElement
fadeDistance?: number
height?: number
image?: {
    height?: number;
    src: string;
    width?: number;
}

图片 element为空时有效

Type declaration

  • Optional height?: number

  • src: string

    图像地址,可以是svg

  • Optional width?: number

isHide?: boolean

开始时隐藏

occlude?: boolean
occludeMaterial?: Record<string, any>
occlusionOpacity?: number
pixelHeight?: number
pixelWidth?: number
popupAnchor?: Anchor
popupOffset?: PopopOffset
rotation?: [number, number, number]
width?: number