PilotGaea 3D O'view
    正在準備搜尋索引...

    新增標籤文字自畫疊加圖素指令參數。

    interface AddTextEntityCommandParameter {
        geo: window.GeoJSON.Point;
        layerName: string;
        entityName: string;
        epsg?: number;
        tooltip?: null | string;
        onClick?:
            | null
            | EntityOnClickCallback<
                window.ov.TerrainCustomTileOverlayTextEntity.Parameter,
            >;
        fill?: boolean;
        text: string;
        font?: string;
        lineWidth?: number;
        stroke?: boolean;
        fillStyle?: string;
        strokeStyle?: string;
        visibleLevel?: number;
        lngLatScale?: number;
    }

    層級 (查看層級一覽)

    索引

    屬性

    幾何。

    layerName: string

    自畫custom tile圖層名稱

    entityName: string

    自畫custom tile圖素名稱

    epsg?: number

    幾何的EPSG。

    tooltip?: null | string

    提示文字。

    onClick?:
        | null
        | EntityOnClickCallback<
            window.ov.TerrainCustomTileOverlayTextEntity.Parameter,
        >

    自畫疊加圖素點擊回呼。

    fill?: boolean

    是否要填充顏色。

    true
    
    text: string

    標籤文字。

    font?: string

    文字的字形或大小。

    "10x sans-serif"
    
    lineWidth?: number

    線寬。

    0.5
    
    stroke?: boolean

    是否要畫線。

    false
    
    fillStyle?: string

    填充的樣式。

    "#FFF"
    
    strokeStyle?: string

    筆刷的樣式。

    "#000"
    
    visibleLevel?: number

    最小可視層級。

    0
    
    lngLatScale?: number

    每像素比經緯的比例,若為負值則使用圖面大小。

    -1