new ImageWMS(opt_options)
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
ImageWMS 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
-
getGetFeatureInfoUrl(coordinate, resolution, projection, params){string|undefined}
source/ImageWMS.js, line 160 -
Return the GetFeatureInfo URL for the passed coordinate, resolution, and projection. Return
undefinedif the GetFeatureInfo URL cannot be constructed.Name Type Description coordinatemodule:ol/coordinate~Coordinate Coordinate.
resolutionnumber Resolution.
projectionmodule:ol/proj~ProjectionLike Projection.
paramsObject GetFeatureInfo params.
INFO_FORMATat least should be provided. IfQUERY_LAYERSis not provided then the layers specified in theLAYERSparameter will be used.VERSIONshould not be specified here.Returns:
GetFeatureInfo URL.
-
Return the image load function of the source.
Returns:
The image load function.
-
getParams(){Object}
source/ImageWMS.js, line 201 -
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~Statefor possible states.Returns:
State.
-
getUrl(){string|undefined}
source/ImageWMS.js, line 339 -
Return the URL used for this WMS source.
Returns:
URL.
-
Refreshes the source and finally dispatches a 'change' event.
-
Set the attributions of the source.
Name Type Description attributionsmodule:ol/source/Source~AttributionLike | undefined Attributions. Can be passed as
string,Array<string>,, ormodule:ol/source/Source˜Attributionundefined. -
setImageLoadFunction(imageLoadFunction)
source/ImageWMS.js, line 348 -
Set the image load function of the source.
Name Type Description imageLoadFunctionmodule:ol/Image~LoadFunction Image load function.
-
setUrl(url)
source/ImageWMS.js, line 359 -
Set the URL to use for requests.
Name Type Description urlstring | undefined URL.
-
updateParams(params)
source/ImageWMS.js, line 372 -
Update the user-provided params.
Name Type Description paramsObject Params.
OpenLayers