Classes
Type Definitions
-
Options{Object}
-
Properties:
Name Type Argument Default Description attributions
module:ol/source/Source~AttributionLike <optional>
Attributions.
cacheSize
number <optional>
Tile cache size. The default depends on the screen size. Will increase if too small.
crossOrigin
null | string <optional>
The
crossOrigin
attribute for loaded images. Note that you must provide acrossOrigin
value 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.params
Object.<string, *> <optional>
ArcGIS Rest parameters. This field is optional. Service defaults will be used for any fields not specified.
FORMAT
isPNG32
by default.F
isIMAGE
by default.TRANSPARENT
istrue
by default.BBOX
,SIZE
,BBOXSR
, andIMAGESR
will be set dynamically. SetLAYERS
to override the default service layer visibility. See http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Export_Map/02r3000000v7000000/ for further reference.hidpi
boolean <optional>
true Use the
ol/Map#pixelRatio
value when requesting the image from the remote server.tileGrid
module: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.
projection
module:ol/proj~ProjectionLike <optional>
Projection. Default is the view projection.
reprojectionErrorThreshold
number <optional>
0.5 Maximum allowed reprojection error (in pixels). Higher values can increase reprojection performance, but decrease precision.
tileLoadFunction
module:ol/Tile~LoadFunction <optional>
Optional function to load a tile given a URL. The default is
function(imageTile, src) { imageTile.getImage().src = src; };
url
string <optional>
ArcGIS Rest service URL for a Map Service or Image Service. The url should include /MapServer or /ImageServer.
wrapX
boolean <optional>
true Whether to wrap the world horizontally.
transition
number <optional>
Duration of the opacity transition for rendering. To disable the opacity transition, pass
transition: 0
.urls
Array.<string> <optional>
ArcGIS Rest service urls. Use this instead of
url
when the ArcGIS Service supports multiple urls for export requests.