Module: ol/source/Stamen

ol/source/Stamen


Classes

Stamen

Type Definitions

Options{Object}

Properties:
Name Type Argument Default Description
cacheSize number <optional>

Initial tile cache size. Will auto-grow to hold at least the number of tiles in the viewport.

interpolate boolean <optional>
true

Use interpolated values when resampling. By default, linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.

layer string

Layer name.

minZoom number <optional>

Minimum zoom.

maxZoom number <optional>

Maximum zoom.

reprojectionErrorThreshold number <optional>
0.5

Maximum allowed reprojection error (in pixels). Higher values can increase reprojection performance, but decrease precision.

tileLoadFunction LoadFunction <optional>

Optional function to load a tile given a URL. The default is

function(imageTile, src) {
  imageTile.getImage().src = src;
};
transition number <optional>
250

Duration of the opacity transition for rendering. To disable the opacity transition, pass transition: 0.

url string <optional>

URL template. Must include {x}, {y} or {-y}, and {z} placeholders.

wrapX boolean <optional>
true

Whether to wrap the world horizontally.

zDirection number | NearestDirectionFunction <optional>
0

Choose whether to use tiles with a higher or lower zoom level when between integer zoom levels. See getZForResolution.