Skip to content

Documentation / @geoverse/core-libre / GVectorTileLayerOptions

Interface: GVectorTileLayerOptions

Defined in: packages/core-libre/src/layers/vectorTileLayer.ts:13

Properties

attribution?

ts
optional attribution?: string;

Defined in: packages/core-libre/src/layers/vectorTileLayer.ts:33

版权信息


beforeId?

ts
optional beforeId?: string;

Defined in: packages/core-libre/src/layers/vectorTileLayer.ts:35

插入到该 style 图层之前(控制叠放次序;不传则置顶)


id?

ts
optional id?: string;

Defined in: packages/core-libre/src/layers/vectorTileLayer.ts:15

图层 id(默认自动生成)


layout?

ts
optional layout?: Record<string, unknown>;

Defined in: packages/core-libre/src/layers/vectorTileLayer.ts:27

layout 属性(按 type 对应 maplibre layout 规格)


maxzoom?

ts
optional maxzoom?: number;

Defined in: packages/core-libre/src/layers/vectorTileLayer.ts:31

源最大层级


minzoom?

ts
optional minzoom?: number;

Defined in: packages/core-libre/src/layers/vectorTileLayer.ts:29

源最小层级


paint?

ts
optional paint?: Record<string, unknown>;

Defined in: packages/core-libre/src/layers/vectorTileLayer.ts:25

paint 属性(按 type 对应 maplibre paint 规格)


sourceLayer

ts
sourceLayer: string;

Defined in: packages/core-libre/src/layers/vectorTileLayer.ts:21

矢量瓦片内的 source-layer 名(渲染必填)


tiles?

ts
optional tiles?: string[];

Defined in: packages/core-libre/src/layers/vectorTileLayer.ts:17

矢量瓦片地址模板(如 https://host/{z}/{x}/{y}.pbf),与 url 二选一


type?

ts
optional type?: VectorTileLayerType;

Defined in: packages/core-libre/src/layers/vectorTileLayer.ts:23

渲染类型,默认 'line'


url?

ts
optional url?: string;

Defined in: packages/core-libre/src/layers/vectorTileLayer.ts:19

TileJSON 端点地址,与 tiles 二选一(提供时优先,自动读取 source-layer/zoom 等)