类
类型定义
-
一个函数,接受
ViewStateLayerStateExtent参数,返回表示源署名的字符串或字符串数组。 -
AttributionLike{string} {Array.<string>} {Attribution}
-
用于提供数据源署名信息的类型。
它表示一个简单字符串(例如
'© Acme Inc.')、一个简单字符串数组(例如['© Acme Inc.', '© Bacme Inc.']),或一个返回字符串或字符串数组的函数(Attribution)。 -
Options{Object}
-
属性:
Name Type 描述 attributionsAttributionLike | undefined 版权声明。
attributionsCollapsibleboolean
(defaults to true)版权信息可折叠。
projectionProjectionLike | undefined 投影:默认为视图投影。
stateState
(defaults to 'ready')状态。
wrapXboolean
(defaults to false)水平环绕。
interpolateboolean
(defaults to false)重采样时使用插值。默认情况下,重采样采用最近邻法。
-
State{'undefined'} {'loading'} {'ready'} {'error'}
-
数据源的状态为以下之一:'未定义'、'加载中'、'就绪'或'错误'。