Skip to content

Documentation / geoverse / UnifiedMapOptions

Interface: UnifiedMapOptions

Defined in: types.ts:73

统一建图入参:两核心构造项的并集。引擎相关字段(base / baseConfig 等)按引擎 透传,类型放宽为 unknown,由各适配器内部收窄。

Properties

base?

ts
optional base?: unknown;

Defined in: types.ts:81

底图引用(按引擎语义不同:ol 为 'gd-vec' 等字面量;libre 为 ref/URL/StyleSpec)


baseConfig?

ts
optional baseConfig?: unknown;

Defined in: types.ts:83

底图配置(离线地址 / token / glyphs 等)


center?

ts
optional center?: LngLat;

Defined in: types.ts:85

初始中心(WGS-84 [lng, lat])


container?

ts
optional container?: string | HTMLElement;

Defined in: types.ts:77

地图容器(ol 习惯 target,libre 习惯 container,两者皆可)


engine?

ts
optional engine?: Engine;

Defined in: types.ts:75

引擎选择;子路径入口(geoverse/ol、geoverse/libre)已锁定,主入口默认 'ol'


fullScreen?

ts
optional fullScreen?: boolean;

Defined in: types.ts:93

全屏控件(ol: FullScreen;libre: FullscreenControl)


maxZoom?

ts
optional maxZoom?: number;

Defined in: types.ts:89


minZoom?

ts
optional minZoom?: number;

Defined in: types.ts:88


overview?

ts
optional overview?: boolean;

Defined in: types.ts:95

鹰眼控件(仅 ol;libre 无原生等价物,忽略)


scaleLine?

ts
optional scaleLine?: boolean;

Defined in: types.ts:91

比例尺控件(ol: ScaleLine;libre: ScaleControl)


target?

ts
optional target?: string | HTMLElement;

Defined in: types.ts:79

同 container 的别名


zoom?

ts
optional zoom?: number;

Defined in: types.ts:87

初始缩放