EarthSDK
    正在准备搜索索引...

    类型别名 ESJPoi2DStyleType

    二维兴趣点样式类型的接口,定义了样式配置的可选属性。

    type ESJPoi2DStyleType = {
        fontSize?: number;
        image?: string;
        imageSize?: ESJVector2D;
        text?: string;
        textBackground?: string;
        textBackgroundColor?: ESJVector4D;
        textBackgroundSize?: ESJVector2D;
        textBoxAlign?: "start" | "center" | "end";
        textBoxMode?: "default" | "hover";
        textBoxOffset?: ESJVector2D;
        textBoxShow?: boolean;
        textColor?: ESJVector4D;
        textOffset?: ESJVector2D;
    }
    索引

    属性

    fontSize?: number

    字体大小,单位为像素。

    image?: string

    图片地址。

    imageSize?: ESJVector2D

    图片大小,单位为像素。

    text?: string

    文本内容。

    textBackground?: string

    文本背景。

    textBackgroundColor?: ESJVector4D

    文本背景颜色,使用 RGBA 格式。

    textBackgroundSize?: ESJVector2D

    文本背景大小,单位为像素。

    textBoxAlign?: "start" | "center" | "end"

    文本框对齐方式,可选值为 'start'、'center' 或 'end'。

    textBoxMode?: "default" | "hover"

    文本框显示模式,可选值为 'default' 或 'hover'。

    textBoxOffset?: ESJVector2D

    文本框偏移,单位为像素。

    textBoxShow?: boolean

    是否显示文本框。

    textColor?: ESJVector4D

    文本颜色,使用 RGBA 格式。

    textOffset?: ESJVector2D

    文本偏移,单位为像素。