Classes
Type Definitions
-
Options{Object}
-
Properties:
Name Type Description cacheSizenumber | undefined Deprecated. Use the cacheSize option on the layer instead.
interpolateboolean
(defaults to true)Use interpolated values when resampling. By default, linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
layerstring Layer name. Valid values:
alidade_smooth,alidade_smooth_dark,outdoors,stamen_terrain,stamen_terrain_background,stamen_terrain_labels,stamen_terrain_lines,stamen_toner_background,stamen_toner,stamen_toner_labels,stamen_toner_lines,stamen_toner_lite,stamen_watercolor, andosm_bright.minZoomnumber | undefined Minimum zoom.
maxZoomnumber | undefined Maximum zoom.
reprojectionErrorThresholdnumber
(defaults to 0.5)Maximum allowed reprojection error (in pixels). Higher values can increase reprojection performance, but decrease precision.
tileLoadFunctionLoadFunction | undefined Optional function to load a tile given a URL. The default is
function(imageTile, src) { imageTile.getImage().src = src; };transitionnumber
(defaults to 250)Duration of the opacity transition for rendering. To disable the opacity transition, pass
transition: 0.urlstring | undefined URL template. Must include
{x},{y}or{-y}, and{z}placeholders.wrapXboolean
(defaults to true)Whether to wrap the world horizontally.
zDirectionnumber | NearestDirectionFunction
(defaults to 0)Choose whether to use tiles with a higher or lower zoom level when between integer zoom levels. See
getZForResolution.apiKeystring | undefined Stadia Maps API key. Not required for localhost or most public web deployments. See https://docs.stadiamaps.com/authentication/ for details.
retinaboolean | undefined Use retina tiles (if available; not available for Stamen Watercolor).