Classes
Type Definitions
-
Properties:
-
Properties:
Name Type Argument Default Description attributionsmodule:ol/source/Source~AttributionLike <optional>
Attributions.
cacheSizenumber <optional>
2048 Cache size.
crossOriginnull | string <optional>
The
crossOriginattribute for loaded images. Note that you must provide acrossOriginvalue if you are using the WebGL renderer or 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.jsonpboolean <optional>
false Use JSONP with callback to load the TileJSON. Useful when the server does not support CORS..
reprojectionErrorThresholdnumber <optional>
0.5 Maximum allowed reprojection error (in pixels). Higher values can increase reprojection performance, but decrease precision.
tileJSONmodule:ol/source/TileJSON~Config <optional>
TileJSON configuration for this source. If not provided,
urlmust be configured.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>
URL to the TileJSON file. If not provided,
tileJSONmust be configured.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.