Classes
Type Definitions
-
Options{Object}
-
Properties:
Name Type Argument Default Description cacheSizenumber <optional>
Initial tile cache size. Will auto-grow to hold at least the number of tiles in the viewport.
imageSmoothingboolean <optional>
true Enable image smoothing.
layerstring Layer name.
minZoomnumber <optional>
Minimum zoom.
maxZoomnumber <optional>
Maximum zoom.
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; };transitionnumber <optional>
250 Duration of the opacity transition for rendering. To disable the opacity transition, pass
transition: 0.urlstring <optional>
URL template. Must include
{x},{y}or{-y}, and{z}placeholders.wrapXboolean <optional>
true Whether to wrap the world horizontally.
OpenLayers