Skip to main content

main

Members

GoogleMapsApi : Object | undefined

An independent Vue instance that helps us to know when the Google Maps API is loaded.

Constants

components : Object

Export all components and mixins

helpers : Object

Export all helpers

Functions

getGoogleMapsAPI()

This function helps you to get the Google Maps API when its ready on the window object

gmapVuePluginInstallFn(Vue, options)

GmapVue install function

GoogleMapsApi : Object | undefined

An independent Vue instance that helps us to know when the Google Maps API is loaded.

Kind: global variable

components : Object

Export all components and mixins

Kind: global constant
Properties

NameTypeDescription
HeatmapLayerObjectVue component HeatmapLayer
KmlLayerObjectVue component KmlLayer
MarkerObjectVue component Marker
PolylineObjectVue component Polyline
PolygonObjectVue component Polygon
CircleObjectVue component Circle
ClusterObjectVue component Cluster
RectangleObjectVue component Rectangle
DrawingManagerObjectVue component DrawingManager
InfoWindowObjectVue component InfoWindow
MapLayerObjectVue component MapLayer
PlaceInputObjectVue component PlaceInput
AutocompleteObjectVue component Autocomplete
StreetViewPanoramaObjectVue component StreetViewPanorama
MapElementMixinObjectVue component MapElementMixin
MountableMixinObjectVue component MountableMixin

helpers : Object

Export all helpers

Kind: global constant
Properties

NameTypeDescription
initGoogleMapsApifunctionfunction to initialize the Google Maps API
MapElementFactoryfunctionfunction to initialize the Google Maps API

getGoogleMapsAPI()

This function helps you to get the Google Maps API when its ready on the window object

Kind: global function

gmapVuePluginInstallFn(Vue, options)

GmapVue install function

Kind: global function

ParamTypeDefaultDescription
VueObjectthe vue instance
optionsObject | undefinedconfiguration object to initialize the GmapVue plugin
options.dynamicLoadbooleanfalseload the Google Maps API dynamically, if you set this to true the plugin doesn't load the Google Maps API
options.installComponentsbooleantrueinstall all components
options.autoBindAllEventsbooleanfalseauto bind all Google Maps API events
options.loadObject | undefinedoptions to configure the Google Maps API
options.load.keystringyour Google Maps API key
options.load.librariesstring"places"the Google Maps libraries that you will use eg: 'places,drawing,visualization'
options.load.vstring | undefinedthe Google Maps API version, default latest
options.load.callbackstring | undefined"GoogleMapsCallback"This must be ignored if have another callback that you need to run when Google Maps API is ready please use the customCallback option.
options.load.customCallbackstring | undefinedThis option was added on v3.0.0 but will be removed in the next major release. If you already have an script tag that loads Google Maps API and you want to use it set you callback in the customCallback option and our GoogleMapsCallback callback will execute your custom callback at the end; it must attached to the window object, is the only requirement.

gmapVuePluginInstallFn~GoogleMapsApi

Update the global GoogleMapsApi. This will allow components to use the google global reactively via: import { getGoogleMapsAPI } from 'gmap-vue' export default { computed: { google: getGoogleMapsAPI } }

Kind: inner property of gmapVuePluginInstallFn

gmapVuePluginInstallFn~promiseLazyCreator : function

Use a lazy to only load the API when a GMap component is loaded

Kind: inner constant of gmapVuePluginInstallFn

gmapVuePluginInstallFn~gmapApiPromiseLazy : function

The gmapApiPromiseLazy function to can wait until Google Maps API is ready

Kind: inner constant of gmapVuePluginInstallFn