Appearance
Documentation / @geoverse/core-ol / TrafficLayerOptions
Interface: TrafficLayerOptions
Defined in: packages/core-ol/src/layers/trafficLayer.ts:11
Extends
Options<TileSource>
Properties
background?
ts
optional background?: BackgroundColor;Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/layer/BaseTile.d.ts:71
Background color for the layer. If not specified, no background will be rendered.
Inherited from
ts
TileLayerOptions.backgroundcacheSize?
ts
optional cacheSize?: number;Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/layer/BaseTile.d.ts:86
The internal tile cache size. This needs to be large enough to render two zoom levels worth of tiles.
Inherited from
ts
TileLayerOptions.cacheSizeclassName?
ts
optional className?: string;Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/layer/BaseTile.d.ts:10
A CSS class name to set to the layer element.
Inherited from
ts
TileLayerOptions.classNameextent?
ts
optional extent?: Extent;Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/layer/BaseTile.d.ts:23
The bounding extent for layer rendering. The layer will not be rendered outside of this extent.
Inherited from
ts
TileLayerOptions.extentisDynamic?
ts
optional isDynamic?: boolean;Defined in: packages/core-ol/src/layers/trafficLayer.ts:15
是否定时刷新,默认 false
map?
ts
optional map?: Map;Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/layer/BaseTile.d.ts:66
Sets the layer as overlay on a map. The map will not manage this layer in its layers collection, and the layer will be rendered on top. This is useful for temporary layers. The standard way to add a layer to a map and have it managed by the map is to use import ("../Map.js").default#addLayer map.addLayer().
Inherited from
ts
TileLayerOptions.mapmaxResolution?
ts
optional maxResolution?: number;Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/layer/BaseTile.d.ts:40
The maximum resolution (exclusive) below which this layer will be visible.
Inherited from
ts
TileLayerOptions.maxResolutionmaxZoom?
ts
optional maxZoom?: number;Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/layer/BaseTile.d.ts:50
The maximum view zoom level (inclusive) at which this layer will be visible.
Inherited from
ts
TileLayerOptions.maxZoomminResolution?
ts
optional minResolution?: number;Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/layer/BaseTile.d.ts:35
The minimum resolution (inclusive) at which this layer will be visible.
Inherited from
ts
TileLayerOptions.minResolutionminZoom?
ts
optional minZoom?: number;Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/layer/BaseTile.d.ts:45
The minimum view zoom level (exclusive) above which this layer will be visible.
Inherited from
ts
TileLayerOptions.minZoomopacity?
ts
optional opacity?: number;Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/layer/BaseTile.d.ts:14
Opacity (0, 1).
Inherited from
ts
TileLayerOptions.opacityorigin?
ts
optional origin?: TrafficOrigin;Defined in: packages/core-ol/src/layers/trafficLayer.ts:13
路况来源:GD 高德(默认)/ BD 百度
preload?
ts
optional preload?: number;Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/layer/BaseTile.d.ts:55
Preload. Load low-resolution tiles up to preload levels. 0 means no preloading.
Inherited from
ts
TileLayerOptions.preloadproperties?
ts
optional properties?: {
[x: string]: any;
};Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/layer/BaseTile.d.ts:79
Arbitrary observable properties. Can be accessed with #get() and #set().
Index Signature
ts
[x: string]: anyInherited from
ts
TileLayerOptions.propertiesrate?
ts
optional rate?: number;Defined in: packages/core-ol/src/layers/trafficLayer.ts:17
刷新间隔(秒),默认 90
source?
ts
optional source?: TileSource<Tile>;Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/layer/BaseTile.d.ts:59
Source for this layer.
Inherited from
ts
TileLayerOptions.sourceurlTemplate?
ts
optional urlTemplate?: string;Defined in: packages/core-ol/src/layers/trafficLayer.ts:22
自定义路况瓦片地址模板({x}/{y}/{z}/{time} 占位)。 旧库硬编码了高德/百度公网路况地址,此处保留为默认值、允许覆盖。
useInterimTilesOnError?
ts
optional useInterimTilesOnError?: boolean;Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/layer/BaseTile.d.ts:75
Deprecated. Use interim tiles on error.
Inherited from
ts
TileLayerOptions.useInterimTilesOnErrorvisible?
ts
optional visible?: boolean;Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/layer/BaseTile.d.ts:18
Visibility.
Inherited from
ts
TileLayerOptions.visiblezIndex?
ts
optional zIndex?: number;Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/layer/BaseTile.d.ts:30
The z-index for layer rendering. At rendering time, the layers will be ordered, first by Z-index and then by position. When undefined, a zIndex of 0 is assumed for layers that are added to the map's layers collection, or Infinity when the layer's setMap() method was used.
Inherited from
ts
TileLayerOptions.zIndex