Skip to main content

main.ts

The root entrypoint exposes the Vue plugin factory and runtime utilities.

export { createGmapVuePlugin, utilities } from "@gmap-vue/v3";

Supported entrypoints

Import only from the documented package entrypoints. Deep imports into src/, generated dist/ internals other than the stylesheet, or component implementation files are unsupported.

PurposeEntrypointExample
Plugin factory and utilities@gmap-vue/v3import { createGmapVuePlugin, utilities } from '@gmap-vue/v3';
Components@gmap-vue/v3/componentsimport { MapLayer } from '@gmap-vue/v3/components';
Composables@gmap-vue/v3/composablesimport { usePluginOptions } from '@gmap-vue/v3/composables';
Injection keys@gmap-vue/v3/keysimport { $gmapOptions } from '@gmap-vue/v3/keys';
Interfaces@gmap-vue/v3/interfacesimport type { IGmapVuePluginOptions } from '@gmap-vue/v3/interfaces';
Types@gmap-vue/v3/typesimport type { TGlobalGoogleObject } from '@gmap-vue/v3/types';
Styles@gmap-vue/v3/dist/style.cssimport '@gmap-vue/v3/dist/style.css';

Compatibility policy

These entrypoints are the public package surface for Vue 3. Undocumented deep imports can change without notice.