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

    類別 Style

    Container for vector feature rendering styles. Any changes made to the style or its children through set*() methods will not take effect until the feature or layer that uses the style is re-rendered.

    Style options.

    索引

    方法

    • Get the function used to generate a geometry for rendering.

      回傳 StyleGeometryFunction

      Function that is called with a feature and returns the geometry to render instead of the feature's geometry.

    • Get the fill style.

      回傳 Fill

      Fill style.

    • Get the image style.

      回傳 ol.style.Image

      Image style.

    • Get the stroke style.

      回傳 Stroke

      Stroke style.

    • Get the text style.

      回傳 Text

      Text style.

    • Get the z-index for the style.

      回傳 number

      ZIndex.

    • Set the fill style.

      參數

      • fill: Fill

        Fill style.

      回傳 void

    • Set a geometry that is rendered instead of the feature's geometry.

      參數

      回傳 void

    • Set the image style.

      參數

      回傳 void

    • Set the stroke style.

      參數

      回傳 void

    • Set the text style.

      參數

      • text: Text

        Text style.

      回傳 void

    • Set the z-index.

      參數

      • zIndex: number

        ZIndex.

      回傳 void

    構造函數

    • 參數

      回傳 Style

      Container for vector feature rendering styles. Any changes made to the style or its children through set*() methods will not take effect until the feature or layer that uses the style is re-rendered.