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

    類別 Tile

    For layer sources that provide pre-rendered, tiled images in grids that are organized by zoom levels for specific resolutions. Note that any property set in the options is set as a ol.Object property on the layer object; for example, setting title: 'My Title' in the options means that title is observable, and has get/set accessors.

    ol.render.Event

    Tile layer options.

    stable

    層級 (查看層級一覽)

    索引

    方法

    • Removes an event listener using the key returned by on() or once().

      參數

      • key: Object | Object[]

        The key returned by on() or once() (or an array of keys).

      回傳 void

      stable

    • Return the level as number to which we will preload tiles up to.

      回傳 number

      The level to preload tiles up to.

    • Set the level as number to which we will preload tiles up to.

      參數

      • preload: number

        The level to preload tiles up to.

      回傳 void

    • Whether we use interim tiles on error.

      回傳 boolean

      Use interim tiles on error.

    • Set whether we use interim tiles on error.

      參數

      • useInterimTilesOnError: boolean

        Use interim tiles on error.

      回傳 void

    • Get the layer source.

      回傳 Source

      The layer source (or null if not yet set).

      stable

    • Sets the layer to be rendered on top of other layers on a map. The map will not manage this layer in its layers collection, and the callback in ol.Map#forEachLayerAtPixel will receive null as layer. This is useful for temporary layers. To remove an unmanaged layer from the map, use #setMap(null).

      To add the layer to a map and have it managed by the map, use ol.Map#addLayer instead.

      參數

      回傳 void

    • Set the layer source.

      參數

      • source: Source

        The layer source.

      回傳 void

      stable

    • Return the extent of the layer or undefined if it will be visible regardless of extent.

      回傳 Extent

      The layer extent.

      stable

    • Return the maximum resolution of the layer.

      回傳 number

      The maximum resolution of the layer.

      stable

    • Return the minimum resolution of the layer.

      回傳 number

      The minimum resolution of the layer.

      stable

    • Return the opacity of the layer (between 0 and 1).

      回傳 number

      The opacity of the layer.

      stable

    • Return the visibility of the layer (true or false).

      回傳 boolean

      The visibility of the layer.

      stable

    • Return the Z-index of the layer, which is used to order layers before rendering. The default Z-index is 0.

      回傳 number

      The Z-index of the layer.

    • Set the extent at which the layer is visible. If undefined, the layer will be visible at all extents.

      參數

      • extent: Extent

        The extent of the layer.

      回傳 void

      stable

    • Set the maximum resolution at which the layer is visible.

      參數

      • maxResolution: number

        The maximum resolution of the layer.

      回傳 void

      stable

    • Set the minimum resolution at which the layer is visible.

      參數

      • minResolution: number

        The minimum resolution of the layer.

      回傳 void

      stable

    • Set the opacity of the layer, allowed values range from 0 to 1.

      參數

      • opacity: number

        The opacity of the layer.

      回傳 void

      stable

    • Set the visibility of the layer (true or false).

      參數

      • visible: boolean

        The visibility of the layer.

      回傳 void

      stable

    • Set Z-index of the layer, which is used to order layers before rendering. The default Z-index is 0.

      參數

      • zindex: number

        The z-index of the layer.

      回傳 void

    • Gets a value.

      參數

      • key: string

        Key name.

      回傳 any

      Value.

      stable

    • Get a list of object property names.

      回傳 string[]

      List of property names.

      stable

    • Get an object of all property names and values.

      回傳 { [k: string]: any }

      Object.

      stable

    • Sets a value.

      參數

      • key: string

        Key name.

      • value: any

        Value.

      • 可選opt_silent: boolean

        Update without triggering an event.

      回傳 void

      stable

    • Sets a collection of key-value pairs. Note that this changes any existing properties and adds new ones (it does not remove any existing properties).

      參數

      • values: { [k: string]: any }

        Values.

      • 可選opt_silent: boolean

        Update without triggering an event.

      回傳 void

      stable

    • Unsets a property.

      參數

      • key: string

        Key name.

      • 可選opt_silent: boolean

        Unset without triggering an event.

      回傳 void

      stable

    • Increases the revision counter and dispatches a 'change' event.

      回傳 void

    • 函數

      Dispatches an event and calls all listeners listening for events of this type. The event parameter can either be a string or an Object with a type property.

      參數

      回傳 void

    • Get the version number for this object. Each time the object is modified, its version number will be incremented.

      回傳 number

      Revision.

    • Listen for a certain type of event.

      參數

      • type: string | string[]

        The event type or array of event types.

      • listener: Function

        The listener function.

      • 可選opt_this: Object

        The object to use as this in listener.

      回傳 Object | Object[]

      Unique key for the listener. If called with an array of event types as the first argument, the return will be an array of keys.

      stable

    • Listen once for a certain type of event.

      參數

      • type: string | string[]

        The event type or array of event types.

      • listener: Function

        The listener function.

      • 可選opt_this: Object

        The object to use as this in listener.

      回傳 Object | Object[]

      Unique key for the listener. If called with an array of event types as the first argument, the return will be an array of keys.

      stable

    • Unlisten for a certain type of event.

      參數

      • type: string | string[]

        The event type or array of event types.

      • listener: Function

        The listener function.

      • 可選opt_this: Object

        The object which was used as this by the listener.

      回傳 void

      stable

    • 函數

      Removes an event listener using the key returned by on() or once(). Note that using the ol.Observable.unByKey static function is to be preferred.

      參數

      • key: Object | Object[]

        The key returned by on() or once() (or an array of keys).

      回傳 void

      stable

    構造函數

    • 參數

      回傳 ol.layer.Tile

      For layer sources that provide pre-rendered, tiled images in grids that are organized by zoom levels for specific resolutions. Note that any property set in the options is set as a ol.Object property on the layer object; for example, setting title: 'My Title' in the options means that title is observable, and has get/set accessors.

      ol.render.Event

      stable