Appearance
Documentation / @geoverse/core-libre / GMapOptions
Type Alias: GMapOptions
ts
type GMapOptions = Partial<Omit<MapOptions, "container" | "style">> & {
base?: BaseInput;
baseConfig?: BaseLayerConfig;
center?: LngLatLike;
container?: HTMLElement | string;
target?: HTMLElement | string;
zoom?: number;
};Defined in: packages/core-libre/src/map/gmap.ts:31
Type Declaration
base?
ts
optional base?: BaseInput;内置底图(默认 'osm');传 false 为空白底图
baseConfig?
ts
optional baseConfig?: BaseLayerConfig;底图配置(glyphs / 自定义瓦片地址等)
center?
ts
optional center?: LngLatLike;初始中心(WGS-84 经纬度),默认 [118.15, 24.56]
container?
ts
optional container?: HTMLElement | string;地图容器元素或其 id(必填)
target?
ts
optional target?: HTMLElement | string;容器别名(对齐 core 的 target 命名)
zoom?
ts
optional zoom?: number;初始层级,默认 12
