Module: ol/source/UTFGrid

ol/source/UTFGrid


Classes

UTFGrid

Type Definitions

Options{Object}

Properties:
Name Type Description
preemptive boolean
(defaults to true)

如果为 true,UTFGrid 数据源根据瓦片的"可见性"加载瓦片。这提高了响应速度,但增加了流量。注意如果设置为 false(懒加载),您需要向 forDataAtCoordinateAndResolution 方法传递 true 作为 request,否则永远不会加载数据。

jsonp boolean
(defaults to false)

使用带回调的 JSONP 加载 TileJSON。当服务器不支持 CORS 时有用。

tileJSON Config | undefined

此数据源的 TileJSON 配置。如果未提供,必须配置 url

url string | undefined

提供此数据源配置的 TileJSON 端点。请求将通过 JSONP 进行。如果未提供,必须配置 tileJSON

wrapX boolean
(defaults to true)

是否水平环绕世界。

zDirection number | NearestDirection函数
(defaults to 0)

选择在整数缩放级别之间使用更高还是更低缩放级别的瓦片。参见 getZForResolution

UTFGridJSON{Object}

Properties:
Name Type Description
grid Array.<string>

网格。

keys Array.<string>

键。

data 对象。<string, Object> | undefined

可选数据。