Interface VectorTileOverlayInitSetting

Vector Tile疊加圖層初始化設定。

interface VectorTileOverlayInitSetting {
    isGeoJson?: boolean;
    layername?: string;
    lineWidth?: number;
    maxLevel?: number;
    minLevel?: number;
    occludedOpacity?: number;
    onTerrain?: boolean;
    opacity?: number;
    overlayWindow?: string;
    pointSetting?: {
        allowOverlapping?: boolean;
        fadeEffect?: boolean;
        fontLabel?: string;
        fontTable?: {
            [name: string]: {
                font?: string;
                fontBorderColor?: CSSColor;
                fontBorderSize?: number;
                fontColor?: CSSColor;
                fontSize?: number;
                groundLineColor?: CSSColor;
                groundLineWidth?: number;
                pullUpY?: number;
                pullUpYUnit?: number;
            };
        };
        showIfTextLabelNotExist?: boolean;
        textLabel?: string;
    };
    polygonSetting?: {
        colorLabel?: string;
        colorTable?: {
            [name: string]: {
                boundaryColor?: CSSColor;
                boundaryWidth?: number;
                fillColor?: CSSColor;
            };
        };
    };
    polylineSetting?: {
        colorLabel?: string;
        colorTable?: {
            [name: string]: {
                color?: string;
            };
        };
        dashScale?: number;
        fadeEffect?: boolean;
        lineWidthScale?: number;
        realWorldWidth?: boolean;
        simpleDraw?: boolean;
        widthLabel?: number;
    };
    show?: boolean;
    token?: string;
    url: string;
    urlTemplate?: string;
    visibleFactor?: number;
}

Hierarchy

Properties

isGeoJson?: boolean

資料格式是否為 GeoJSON,若非則是mapbox的pbf標準格式。

Default Value

false
layername?: string

名稱。

lineWidth?: number

指示線條粗細。

Default Value

1
maxLevel?: number

請求最大Level,大於此Level則不會載入疊加資料。

Default Value

23
minLevel?: number

請求最小Level,小於此Level則不會載入疊加資料。

Default Value

0
occludedOpacity?: number

圖層被遮擋的不透明度。

Default Value

0.25
onTerrain?: boolean

圖層是否顯示在地形上。

opacity?: number

圖層不透明度,0 ~ 1。

overlayWindow?: string

指定疊加要加的視窗名字,需先使用 ov.TerrainView.addOverlayWindow 創建視窗。

pointSetting?: {
    allowOverlapping?: boolean;
    fadeEffect?: boolean;
    fontLabel?: string;
    fontTable?: {
        [name: string]: {
            font?: string;
            fontBorderColor?: CSSColor;
            fontBorderSize?: number;
            fontColor?: CSSColor;
            fontSize?: number;
            groundLineColor?: CSSColor;
            groundLineWidth?: number;
            pullUpY?: number;
            pullUpYUnit?: number;
        };
    };
    showIfTextLabelNotExist?: boolean;
    textLabel?: string;
}

點圖資的顯示樣式,有給點圖資才會繪製。

Type declaration

  • Optional allowOverlapping?: boolean

    是否允許重疊。

    Default Value

    true
    
  • Optional fadeEffect?: boolean

    是否使用淡出淡入效果。

    Default Value

    true
    
  • Optional fontLabel?: string

    欲套用字型的參考欄位。

    Default Value

    ""
    
  • Optional fontTable?: {
        [name: string]: {
            font?: string;
            fontBorderColor?: CSSColor;
            fontBorderSize?: number;
            fontColor?: CSSColor;
            fontSize?: number;
            groundLineColor?: CSSColor;
            groundLineWidth?: number;
            pullUpY?: number;
            pullUpYUnit?: number;
        };
    }

    字型設定定義,以 fontLabel 欄位名稱當索引。 若為"DEFAULT",則會將所有未匹配文字套上此設定字型。

    • [name: string]: {
          font?: string;
          fontBorderColor?: CSSColor;
          fontBorderSize?: number;
          fontColor?: CSSColor;
          fontSize?: number;
          groundLineColor?: CSSColor;
          groundLineWidth?: number;
          pullUpY?: number;
          pullUpYUnit?: number;
      }
      • Optional font?: string

        指定字型。

        Default Value

        "Arial"
        
      • Optional fontBorderColor?: CSSColor

        指定字型邊框顏色。

        Default Value

        "#000000"
        
      • Optional fontBorderSize?: number

        指定字型邊框粗細。

        Default Value

        2
        
      • Optional fontColor?: CSSColor

        指定字型顏色。

        Default Value

        "#E0E0E0"
        
      • Optional fontSize?: number

        指定字型大小。

        Default Value

        14
        
      • Optional groundLineColor?: CSSColor

        落地線的顏色。

        Default Value

        "#000000"
        
      • Optional groundLineWidth?: number

        落地線的寬度。

        Default Value

        1
        
      • Optional pullUpY?: number

        指定圖釘最高高度,單位為pixel或公尺。

        Default Value

        50
        
      • Optional pullUpYUnit?: number

        指定圖釘最高高度的單位,0為pixel,1為公尺。

        Default Value

        0
        
  • Optional showIfTextLabelNotExist?: boolean

    是否在textLabel欄位未找到文字時顯示。

    Default Value

    true
    
  • Optional textLabel?: string

    欲顯示文字的參考欄位。

    Default Value

    ""
    
polygonSetting?: {
    colorLabel?: string;
    colorTable?: {
        [name: string]: {
            boundaryColor?: CSSColor;
            boundaryWidth?: number;
            fillColor?: CSSColor;
        };
    };
}

面圖資的顯示樣式,有給面圖資才會繪製。

Type declaration

  • Optional colorLabel?: string

    面圖資的樣式參考欄位。

  • Optional colorTable?: {
        [name: string]: {
            boundaryColor?: CSSColor;
            boundaryWidth?: number;
            fillColor?: CSSColor;
        };
    }

    面圖資的樣式定義,索引為圖資參考欄位之名稱。

    • [name: string]: {
          boundaryColor?: CSSColor;
          boundaryWidth?: number;
          fillColor?: CSSColor;
      }
      • Optional boundaryColor?: CSSColor

        面圖資的邊緣顏色。

        Default Value

        "#000000"
        
      • Optional boundaryWidth?: number

        面圖資的邊緣粗細。

        Default Value

        2
        
      • Optional fillColor?: CSSColor

        面圖資的顏色。

        Default Value

        "#FF0000"
        
polylineSetting?: {
    colorLabel?: string;
    colorTable?: {
        [name: string]: {
            color?: string;
        };
    };
    dashScale?: number;
    fadeEffect?: boolean;
    lineWidthScale?: number;
    realWorldWidth?: boolean;
    simpleDraw?: boolean;
    widthLabel?: number;
}

線圖資的顯示樣式,有給線圖資才會繪製。

Type declaration

  • Optional colorLabel?: string

    欲套用顏色的參考欄位。

    Default Value

    ""
    
  • Optional colorTable?: {
        [name: string]: {
            color?: string;
        };
    }

    線圖資的顯示定義,索引為顏色參考欄位之名稱。

    • [name: string]: {
          color?: string;
      }
      • Optional color?: string

        線圖資的顯示顏色。

        Default Value

        "#E8E8E8"
        
  • Optional dashScale?: number

    虛線設定,預設為實線 (-1),若等於0.0:系統自己切,大於0.0:以公尺為單位切。

    Default Value

    -1
    
  • Optional fadeEffect?: boolean
  • Optional lineWidthScale?: number

    指示線條粗細的縮放。

    Default Value

    1
    
  • Optional realWorldWidth?: boolean
  • Optional simpleDraw?: boolean

    使用輕便的繪圖模式,建議為false。

    Default Value

    false
    
  • Optional widthLabel?: number

    欲套用粗細的參考欄位,必須為數字。

show?: boolean

圖層是否顯示。

token?: string

若有需要提供,token。

url: string
urlTemplate?: string

網址字串模板,可給代理如PROXY_URL/{URL}。

Default Value

""
visibleFactor?: number

可視範圍參數,預設為1.0,越大則可視範圍越遠,在傾斜時更明顯,但無法超越LOD的限制。

Default Value

1.0

Generated using TypeDoc