模块:ol/source/Source

ol/source/Source


Source

类型定义

Attribution()

一个函数,接受 ViewStateLayerStateExtent 参数,返回表示源署名的字符串或字符串数组。

AttributionLike{string} {Array.<string>} {Attribution}

用于提供数据源署名信息的类型。

它表示一个简单字符串(例如 '© Acme Inc.')、一个简单字符串数组(例如 ['© Acme Inc.', '© Bacme Inc.']),或一个返回字符串或字符串数组的函数(Attribution)。

Options{Object}

属性:
Name Type 描述
attributions AttributionLike | undefined

版权声明。

attributionsCollapsible boolean
(defaults to true)

版权信息可折叠。

projection ProjectionLike | undefined

投影:默认为视图投影。

state State
(defaults to 'ready')

状态。

wrapX boolean
(defaults to false)

水平环绕。

interpolate boolean
(defaults to false)

重采样时使用插值。默认情况下,重采样采用最近邻法。

State{'undefined'} {'loading'} {'ready'} {'error'}

数据源的状态为以下之一:'未定义'、'加载中'、'就绪'或'错误'。