vue-maplibre-gl
Version:
Vue 3 plugin for maplibre-gl
9 lines (8 loc) • 418 B
TypeScript
import { ComponentInternalInstance } from '@vue/runtime-core';
import { Map, Source } from 'maplibre-gl';
import { Ref, ShallowRef } from 'vue';
export declare function useDisposableLayer(type: string, sourceId: string | Source | undefined, layerId: string, props: any, ci?: ComponentInternalInstance): {
map: ShallowRef<Map | undefined>;
isLoaded: Ref<boolean>;
source: Ref<Source | null | undefined>;
};