Module: ol/source/Source

ol/source/Source


Classes

Source

Type Definitions

Attribution()

接受 ViewStateLayerStateExtent 并返回表示数据源归属的字符串或字符串数组的函数。

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

可用于提供数据源归属信息的类型。

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

Options{Object}

Properties:
Name Type Description
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'}

数据源状态,可选值为 'undefined'、'loading'、'ready' 或 'error'。