类
类型定义
-
Options{Object}
-
属性:
Name Type 描述 cacheSizenumber | undefined 已弃用。请改用图层上的 cacheSize 选项。
interpolateboolean
(defaults to true)在重采样过程中,默认采用线性插值;若设置为 false,则使用最近邻插值。
layerstring 图层名称。有效值:
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,和osm_bright.minZoomnumber | undefined 最小缩放。
maxZoomnumber | undefined 最大缩放。
reprojectionErrorThresholdnumber
(defaults to 0.5)最大允许重投影误差(以像素为单位)。较大的值可提升重投影性能,但会降低精度。
tileLoadFunctionLoadFunction | undefined 可选函数,用于通过给定URL加载瓦片。默认为
function(imageTile, src) { imageTile.getImage().src = src; };transitionnumber
(defaults to 250)渲染时的不透明度过渡持续时间。要禁用不透明度过渡,请传递。
transition: 0.urlstring | undefined URL模板必须包含
{x},{y}或{-y}, 和{z}占位符。wrapXboolean
(defaults to true)是否水平环绕世界。
zDirectionnumber | NearestDirectionFunction
(defaults to 0)选择在整数缩放级别之间是否使用更高或更低缩放级别的瓦片。请参阅
getZForResolution.apiKeystring | undefined Stadia Maps API 密钥。本地主机和大多数公共Web部署不需要此密钥。详情请参见文档(https://docs.stadiamaps.com/authentication/)。
retinaboolean | undefined 使用视网膜图块(如果可用;Stamen水彩不支持)。