Source for data from ArcGIS Rest services providing single, untiled images. Useful when underlying map service has labels.

If underlying map service is not using labels, take advantage of ol image caching and use module:ol/source/TileArcGISRest~TileArcGISRest data source.

module:ol/source/Image.ImageSourceEvent

Hierarchy (view full)

Constructors

Properties

disposed: boolean

The object has already been disposed.

loader: Loader
loading: boolean

This source is currently loading data. Sources that defer loading to the map's tile queue never set this to true.

on: ImageSourceOnSignature<EventsKey>
once: ImageSourceOnSignature<EventsKey>
projection: null | Projection
un: ImageSourceOnSignature<void>
viewRejector: ((arg0: Error) => void)
viewResolver: ((arg0: ViewOptions) => void)

Methods

  • Parameters

    • key: string

      Key name.

    • listener: Listener

      Listener.

    Returns void

  • Parameters

    • type: string

      Type.

    • listener: Listener

      Listener.

    Returns void

  • Protected

    Apply any properties from another object without triggering events.

    Parameters

    • source: Object

      The source object.

    Returns void

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

    Returns 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.

    Parameters

    • event: string | BaseEvent

      Event object.

    Returns undefined | boolean

    false if anyone called preventDefault on the event object or if any of the listeners returned false.

  • Clean up.

    Returns void

  • Protected

    Extension point for disposable objects.

    Returns void

  • Protected

    Parameters

    • resolution: number

      Resolution.

    Returns number

    Resolution.

  • Gets a value.

    Parameters

    • key: string

      Key name.

    Returns any

    Value.

  • Get the attribution function for the source.

    Returns null | Attribution

    Attribution function.

  • Returns boolean

    Attributions are collapsible.

  • Parameters

    • extent: Extent

      Extent.

    • resolution: number

      Resolution.

    • pixelRatio: number

      Pixel ratio.

    • projection: Projection

      Projection.

    Returns external.ol.Image

    Single image.

  • Protected

    Parameters

    • extent: Extent

      Extent.

    • resolution: number

      Resolution.

    • pixelRatio: number

      Pixel ratio.

    • projection: Projection

      Projection.

    Returns external.ol.Image

    Single image.

  • Return the image load function of the source.

    Returns LoadFunction

    The image load function.

  • Returns boolean

    Use linear interpolation when resampling.

  • Get a list of object property names.

    Returns string[]

    List of property names.

  • Get the listeners for a specified event type. Listeners are returned in the order that they will be called in.

    Parameters

    • type: string

      Type.

    Returns undefined | Listener[]

    Listeners.

  • Get the user-provided params, i.e. those passed to the constructor through the "params" option, and possibly updated using the updateParams method.

    Returns any

    Params.

  • Get the projection of the source.

    Returns null | Projection

    Projection.

  • Get an object of all property names and values.

    Returns {
        [x: string]: any;
    }

    Object.

    • [x: string]: any
  • Get an object of all property names and values.

    Returns null | {
        [x: string]: any;
    }

    Object.

  • Returns null | number[]

    Resolutions.

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

    Returns number

    Revision.

  • Get the state of the source, see import("./Source.js").State for possible states.

    Returns State

    State.

  • Return the URL used for this ArcGIS source.

    Returns undefined | string

    URL.

  • Returns Promise<ViewOptions>

    A promise for view-related properties.

  • Returns undefined | boolean

    Wrap X.

  • Protected

    Handle image change events.

    Parameters

    • event: BaseEvent

      Event.

    Returns void

  • Parameters

    • Optionaltype: string

      Type. If not provided, true will be returned if this event target has any listeners.

    Returns boolean

    Has listeners.

  • Returns boolean

    The object has properties.

  • Parameters

    • key: string

      Key name.

    • oldValue: any

      Old value.

    Returns void

  • Protected

    Parameters

    • type: string | string[]

      Type.

    • listener: ((arg0: Event | BaseEvent) => unknown)

      Listener.

        • (arg0): unknown
        • Parameters

          • arg0: Event | BaseEvent

          Returns unknown

    Returns EventsKey | EventsKey[]

    Event key.

  • Protected

    Parameters

    • type: string | string[]

      Type.

    • listener: ((arg0: Event | BaseEvent) => unknown)

      Listener.

        • (arg0): unknown
        • Parameters

          • arg0: Event | BaseEvent

          Returns unknown

    Returns EventsKey | EventsKey[]

    Event key.

  • Refreshes the source. The source will be cleared, and data from the server will be reloaded.

    Returns void

  • Parameters

    • key: string

      Key name.

    • listener: Listener

      Listener.

    Returns void

  • Parameters

    • type: string

      Type.

    • listener: Listener

      Listener.

    Returns void

  • Sets a value.

    Parameters

    • key: string

      Key name.

    • value: any

      Value.

    • Optionalsilent: boolean

      Update without triggering an event.

    Returns void

  • Set the attributions of the source.

    Parameters

    • attributions: undefined | AttributionLike

      Attributions. Can be passed as string, Array<string>, module:ol/source/Source~Attribution, or undefined.

    Returns void

  • Set the image load function of the source.

    Parameters

    • imageLoadFunction: LoadFunction

      Image load function.

    Returns void

  • 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).

    Parameters

    • values: {
          [x: string]: any;
      }

      Values.

      • [x: string]: any
    • Optionalsilent: boolean

      Update without triggering an event.

    Returns void

  • Parameters

    • resolutions: null | number[]

      Resolutions.

    Returns void

  • Set the state of the source.

    Parameters

    • state: State

      State.

    Returns void

  • Set the URL to use for requests.

    Parameters

    • url: undefined | string

      URL.

    Returns void

  • Protected

    Unlisten for a certain type of event.

    Parameters

    • type: string | string[]

      Type.

    • listener: ((arg0: Event | BaseEvent) => unknown)

      Listener.

        • (arg0): unknown
        • Parameters

          • arg0: Event | BaseEvent

          Returns unknown

    Returns void

  • Unsets a property.

    Parameters

    • key: string

      Key name.

    • Optionalsilent: boolean

      Unset without triggering an event.

    Returns void

  • Update the user-provided params.

    Parameters

    • params: any

      Params.

    Returns void