2021-02-13 17:30:46 +01:00
2021-02-03 17:24:56 +01:00
2021-01-27 11:55:07 +01:00
2021-01-27 12:33:33 +01:00
2021-02-03 17:29:43 +01:00

Google maps Components for Vue.js 3

Set of mostly used Google Maps components for Vue.js.

Why this library exists?

We heavily use Google Maps in our projects, so I wanted to have a well maintained Google Maps library.

Documentation

Checkout https://vue-map.netlify.app for a detailed documentation

Installation

You can install it using npm

npm install -S @fawmi/vue-google-maps

Basic usage

You need an API Key. Learn how to get an Api key .

##Configure Vue to use the Components

In your main.js or inside a Nuxt plugin:

import { createApp } from 'vue'
import * as VueGoogleMaps from '@fawmi/vue-google-maps'

const app = createApp(App);
app.use(VueGoogleMaps, {
    load: {
        key: 'YOUR_API_KEY_COMES_HERE',
    },
}).mount('#app')

Use it anywhere in your components

<template>
  <GmapMap
      :center="{lat: 51.093048, lng: 6.842120}"
      :zoom="7"
      map-type-id="terrain"
  
Description
No description provided
Readme 1.4 MiB
Languages
JavaScript 75.7%
Vue 18.5%
HTML 5.8%