Class: Stamen


import Stamen from 'ol/source/Stamen';

Layer source for the Stamen tile server.

new Stamen(options)

source/Stamen.js, line 116
Name Type Description

Stamen options.

Name Type Default Description
cacheSize number 2048

Cache size.

layer string

Layer name.

minZoom number

Minimum zoom.

maxZoom number

Maximum zoom.

reprojectionErrorThreshold number 0.5

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

tileLoadFunction module:ol/Tile~LoadFunction

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

function(imageTile, src) {
  imageTile.getImage().src = src;
url string

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

wrapX boolean true

Whether to wrap the world horizontally.