new ImageArcGISRest(opt_options)
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Image ArcGIS Rest Options.
|
Fires:
-
change
(module:ol/events/Event~Event) - Generic change event. Triggered when the revision counter is increased. -
imageloadend
- Triggered when an image finishes loading. -
imageloaderror
- Triggered if image loading results in an error. -
imageloadstart
- Triggered when an image starts loading. -
propertychange
(module:ol/Object.ObjectEvent) - Triggered when a property is changed.
Extends
Methods
-
Return the image load function of the source.
Returns:
The image load function.
-
getParams(){Object}
source/ImageArcGISRest.js, line 134 -
Get the user-provided params, i.e. those passed to the constructor through the "params" option, and possibly updated using the updateParams method.
Returns:
Params.
-
Get the projection of the source.
Returns:
Projection.
-
Get the state of the source, see
module:ol/source/State~State
for possible states.Returns:
State.
-
getUrl(){string|undefined}
source/ImageArcGISRest.js, line 252 -
Return the URL used for this ArcGIS source.
Returns:
URL.
-
Refreshes the source and finally dispatches a 'change' event.
-
Set the attributions of the source.
Name Type Description attributions
module:ol/source/Source~AttributionLike | undefined Attributions. Can be passed as
string
,Array<string>
,
, ormodule:ol/source/Source˜Attribution
undefined
. -
setImageLoadFunction(imageLoadFunction)
source/ImageArcGISRest.js, line 261 -
Set the image load function of the source.
Name Type Description imageLoadFunction
module:ol/Image~LoadFunction Image load function.
-
setUrl(url)
source/ImageArcGISRest.js, line 272 -
Set the URL to use for requests.
Name Type Description url
string | undefined URL.
-
updateParams(params)
source/ImageArcGISRest.js, line 285 -
Update the user-provided params.
Name Type Description params
Object Params.