0.1.9 β€’ Published 11 months ago

v3-gmaps v0.1.9

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

v3-gmaps

This is a lightweight, fully typed library to simplify the use of Google Maps in Vue3 πŸ€πŸ—ΊοΈπŸ§©

For the (original) Vue 2 version check out x5-gmaps πŸ’ͺ

Guide / Demo / Tutorials

Installation

# npm
npm install v3-gmaps

Deployment

This plugin can be installed like any Vue plugin:

import v3gmaps from 'v3-gmaps'
import { createApp } from 'vue'
import App from './App.vue'

// Optional stylesheet needed for showing errors and the Popup component
import 'v3-gmaps/dist/style.css';

createApp(App)
  .use(gmaps, { key: 'GOOGLE_API_KEY', libraries: ['visualization'] })
  .mount('#app')

Usage

<template>
  <div style="height: 500px"> <!-- gmaps-map requires a height to fill -->
    <gmaps-map>
      <gmaps-marker :position="{ lat: -27, lng: 153 }" />
    </gmaps-map>
  </div>
</template>

<script>
import { defineComponent } from 'vue'
import { gmapsMap, gmapsMarker } from 'v3-gmaps';

export default defineComponent({
  components: { gmapsMap, gmapsMarker }
});
</script>

License

This project is licensed under the MIT License - see the LICENSE file for details

Authors

Support

0.1.9

11 months ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.4

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago