Classes
Type Definitions
-
Options{Object}
-
Properties:
Name Type Argument Default Description attributionsmodule:ol/source/Source~AttributionLike <optional>
Attributions.
cacheSizenumber <optional>
Initial tile cache size. Will auto-grow to hold at least the number of tiles in the viewport.
crossOriginnull | string <optional>
The
crossOriginattribute for loaded images. Note that you must provide acrossOriginvalue if you want to access pixel data with the Canvas renderer. See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.imageSmoothingboolean <optional>
true Enable image smoothing.
paramsObject.<string, *> <optional>
ArcGIS Rest parameters. This field is optional. Service defaults will be used for any fields not specified.
FORMATisPNG32by default.FisIMAGEby default.TRANSPARENTistrueby default.BBOX,SIZE,BBOXSR, andIMAGESRwill be set dynamically. SetLAYERSto override the default service layer visibility. See https://developers.arcgis.com/rest/services-reference/export-map.htm for further reference.hidpiboolean <optional>
true Use the
ol/Map#pixelRatiovalue when requesting the image from the remote server.tileGridmodule:ol/tilegrid/TileGrid~TileGrid <optional>
Tile grid. Base this on the resolutions, tilesize and extent supported by the server. If this is not defined, a default grid will be used: if there is a projection extent, the grid will be based on that; if not, a grid based on a global extent with origin at 0,0 will be used.
projectionmodule:ol/proj~ProjectionLike <optional>
Projection. Default is the view projection. The projection code must contain a numeric end portion separated by : or the entire code must form a valid ArcGIS SpatialReference definition.
reprojectionErrorThresholdnumber <optional>
0.5 Maximum allowed reprojection error (in pixels). Higher values can increase reprojection performance, but decrease precision.
tileLoadFunctionmodule:ol/Tile~LoadFunction <optional>
Optional function to load a tile given a URL. The default is
function(imageTile, src) { imageTile.getImage().src = src; };urlstring <optional>
ArcGIS Rest service URL for a Map Service or Image Service. The url should include /MapServer or /ImageServer.
wrapXboolean <optional>
true Whether to wrap the world horizontally.
transitionnumber <optional>
Duration of the opacity transition for rendering. To disable the opacity transition, pass
transition: 0.urlsArray.<string> <optional>
ArcGIS Rest service urls. Use this instead of
urlwhen the ArcGIS Service supports multiple urls for export requests.zDirectionnumber | module:ol/array~NearestDirectionFunction <optional>
0 Choose whether to use tiles with a higher or lower zoom level when between integer zoom levels. See
module:ol/tilegrid/TileGrid~TileGrid#getZForResolution.
OpenLayers