Skip to content

Documentation / @geoverse/vue / injectMap

Function: injectMap()

ts
function injectMap(): ShallowRef<GMap | null>;

Defined in: context.ts:17

取父级 <GvMap> 提供的地图(shallowRef)。 不在 <GvMap> 子树内时抛出清晰错误。

Returns

ShallowRef<GMap | null>