Skip to content

Documentation / @geoverse/core-ol / TiandituSourceOptions

Interface: TiandituSourceOptions

Defined in: packages/core-ol/src/sources/tianditu.ts:10

Extends

  • Options

Properties

attributions?

ts
optional attributions?: AttributionLike;

Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/source/ImageTile.d.ts:25

Attributions.

Inherited from

ts
ImageTileOptions.attributions

attributionsCollapsible?

ts
optional attributionsCollapsible?: boolean;

Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/source/ImageTile.d.ts:29

Attributions are collapsible.

Inherited from

ts
ImageTileOptions.attributionsCollapsible

crossOrigin?

ts
optional crossOrigin?: CrossOriginAttribute;

Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/source/ImageTile.d.ts:80

The crossOrigin property to pass to loaders for image data.

Inherited from

ts
ImageTileOptions.crossOrigin

gutter?

ts
optional gutter?: number;

Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/source/ImageTile.d.ts:48

The size in pixels of the gutter around data tiles to ignore. This allows artifacts of rendering at tile edges to be ignored. Supported data should be wider and taller than the tile size by a value of 2 x gutter.

Inherited from

ts
ImageTileOptions.gutter

interpolate?

ts
optional interpolate?: boolean;

Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/source/ImageTile.d.ts:76

Use interpolated values when resampling.

Inherited from

ts
ImageTileOptions.interpolate

layerType?

ts
optional layerType?: TiandituLayerType;

Defined in: packages/core-ol/src/sources/tianditu.ts:17

图层类型,默认 vec


loader?

ts
optional loader?: Loader;

Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/source/ImageTile.d.ts:21

Data loader. Called with z, x, and y tile coordinates. Returns an import ("../DataTile.js").ImageLike image for a tile or a promise for the same. The promise should not resolve until the image is loaded. If the url option is provided, a loader will be created.

Inherited from

ts
ImageTileOptions.loader

maxResolution?

ts
optional maxResolution?: number;

Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/source/ImageTile.d.ts:52

Optional tile grid resolution at level zero. Not used if tileGrid is provided.

Inherited from

ts
ImageTileOptions.maxResolution

maxZoom?

ts
optional maxZoom?: number;

Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/source/ImageTile.d.ts:33

Optional max zoom level. Not used if tileGrid is provided.

Inherited from

ts
ImageTileOptions.maxZoom

minZoom?

ts
optional minZoom?: number;

Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/source/ImageTile.d.ts:37

Optional min zoom level. Not used if tileGrid is provided.

Inherited from

ts
ImageTileOptions.minZoom

projection?

ts
optional projection?: ProjectionLike;

Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/source/ImageTile.d.ts:56

Tile projection.

Inherited from

ts
ImageTileOptions.projection

projectionType?

ts
optional projectionType?: TiandituProjection;

Defined in: packages/core-ol/src/sources/tianditu.ts:19

投影族,默认 w(EPSG:3857)


referrerPolicy?

ts
optional referrerPolicy?: ReferrerPolicy;

Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/source/ImageTile.d.ts:84

The referrerPolicy property for loaded images.

Inherited from

ts
ImageTileOptions.referrerPolicy

state?

ts
optional state?: State;

Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/source/ImageTile.d.ts:64

The source state.

Inherited from

ts
ImageTileOptions.state

tileGrid?

ts
optional tileGrid?: TileGrid;

Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/source/ImageTile.d.ts:60

Tile grid.

Inherited from

ts
ImageTileOptions.tileGrid

tileSize?

ts
optional tileSize?: number | Size;

Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/source/ImageTile.d.ts:42

The pixel width and height of the source tiles. This may be different than the rendered pixel size if a tileGrid is provided.

Inherited from

ts
ImageTileOptions.tileSize

token

ts
token: string;

Defined in: packages/core-ol/src/sources/tianditu.ts:15

天地图开发者 token(必填,去 https://console.tianditu.gov.cn/ 申请)。 旧版 vz-map 将 token 硬编码在源码中,GeoVerse 要求显式注入。


transition?

ts
optional transition?: number;

Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/source/ImageTile.d.ts:72

Transition time when fading in new tiles (in miliseconds).

Inherited from

ts
ImageTileOptions.transition

url?

ts
optional url?: UrlLike;

Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/source/ImageTile.d.ts:15

The image URL template. In addition to a single URL template, an array of URL templates or a function can be provided. If a function is provided, it will be called with z, x, y tile coordinates and loader options and should return a URL.

Inherited from

ts
ImageTileOptions.url

wrapX?

ts
optional wrapX?: boolean;

Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/source/ImageTile.d.ts:68

Render tiles beyond the antimeridian.

Inherited from

ts
ImageTileOptions.wrapX

zDirection?

ts
optional zDirection?: number | NearestDirectionFunction;

Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/source/ImageTile.d.ts:89

Choose whether to use tiles with a higher or lower zoom level when between integer zoom levels. See module :ol/tilegrid/TileGrid~TileGrid#getZForResolution.

Inherited from

ts
ImageTileOptions.zDirection