Class: Stamen

ol/source/Stamen~Stamen


import Stamen from 'ol/source/Stamen';

Layer source for the Stamen tile server.

new Stamen(options)

source/Stamen.js, line 117
Name Type Description
options

Stamen options.

Name Type Default Description
cacheSize number 2048

Cache size.

layer string

Layer.

minZoom number

Minimum zoom.

maxZoom number

Maximum zoom.

opaque boolean

Whether the layer is opaque.

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.