Move olx.source.ImageArcGISRestOptions to ol/source/ImageArcGISRestOptions
This commit is contained in:
@@ -11,6 +11,34 @@ import {assign} from '../obj.js';
|
||||
import ImageSource, {defaultImageLoadFunction} from '../source/Image.js';
|
||||
import {appendParams} from '../uri.js';
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {Object} Options
|
||||
* @property {ol.AttributionLike} [attributions] Attributions.
|
||||
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
||||
* you must provide a `crossOrigin` value if you are using the WebGL renderer or if you want to
|
||||
* access pixel data with the Canvas renderer. See
|
||||
* {@link https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image} for more detail.
|
||||
* @property {boolean} [hidpi=true] Use the `ol.Map#pixelRatio` value when requesting the image from
|
||||
* the remote server.
|
||||
* @property {ol.ImageLoadFunctionType} [imageLoadFunction] Optional function to load an image given
|
||||
* a URL.
|
||||
* @property {Object.<string,*>} params ArcGIS Rest parameters. This field is optional. Service
|
||||
* defaults will be used for any fields not specified. `FORMAT` is `PNG32` by default. `F` is
|
||||
* `IMAGE` by default. `TRANSPARENT` is `true` by default. `BBOX, `SIZE`, `BBOXSR`, and `IMAGESR`
|
||||
* will be set dynamically. Set `LAYERS` to override the default service layer visibility. See
|
||||
* {@link http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Export_Map/02r3000000v7000000/}
|
||||
* for further reference.
|
||||
* @property {module:ol/proj~ProjectionLike} projection Projection.
|
||||
* @property {number} [ratio=1.5] Ratio. `1` means image requests are the size of the map viewport,
|
||||
* `2` means twice the size of the map viewport, and so on.
|
||||
* @property {Array.<number>} [resolutions] Resolutions. If specified, requests will be made for
|
||||
* these resolutions only.
|
||||
* @property {string} [url] ArcGIS Rest service URL for a Map Service or Image Service. The url
|
||||
* should include /MapServer or /ImageServer.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* @classdesc
|
||||
* Source for data from ArcGIS Rest services providing single, untiled images.
|
||||
@@ -23,7 +51,7 @@ import {appendParams} from '../uri.js';
|
||||
* @constructor
|
||||
* @fires ol.source.Image.Event
|
||||
* @extends {ol.source.Image}
|
||||
* @param {olx.source.ImageArcGISRestOptions=} opt_options Image ArcGIS Rest Options.
|
||||
* @param {module:ol/source/ImageArcGISRest~Options=} opt_options Image ArcGIS Rest Options.
|
||||
* @api
|
||||
*/
|
||||
const ImageArcGISRest = function(opt_options) {
|
||||
|
||||
Reference in New Issue
Block a user