x5-gmaps

A lightweight Google Maps plugin for Vue 2
17,315 101
Install
npm install x5-gmaps
Latest Version:0.7.6
Vue:2
License:MIT
Last Updated:Mar 6, 2024
Links: GitHub  ·  npm
Maintainer: xon52

x5-gmaps (Docs)

This is a lightweight library to simplify the use of Google Maps in Vue 2 🤏🗺️🧩

For Vue 3 check out v3-gmaps 💪

Guide / Demo / Tutorials

Installation

# npm
npm install x5-gmaps

Deployment

This plugin can be installed like any Vue plugin:

import x5GMaps from 'x5-gmaps';
// Option 1: Just your key
Vue.use(x5GMaps, 'YOUR_GOOGLE_KEY');
// Option 2: With libraries
Vue.use(x5GMaps, { key: 'YOUR_GOOGLE_KEY', libraries: ['places'] });

new Vue({
  el: '#app',
  render: h => h(App)
});

Usage

<template>
  <gmaps-map>
    <gmaps-marker :position="{ lat: -27, lng: 153 }" />
  </gmaps-map>
</template>
import { gmapsMap, gmapsMarker } from 'x5-gmaps';

export default {
  components: { gmapsMap, gmapsMarker }
};

Provided components

License

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

Authors

Support

Star History

Star History Chart

Related Packages

v3-gmaps

Lightweight, typed, Google Maps components for Vue 3

7,824 11
googlemaps-vue3

Google Maps Javascript Library Api For Vue.js 3

2,235 17
vue-better-google-places-autocomplete

Google Places auto completion for Vue.js with better user experience

2,022 7
vue2-gmap-custom-marker

vue 2 google map custom marker component allowing display custom html content on...

97,753 133
vue3-gmap-custom-marker

vue 3 google map custom marker component allowing display custom html content on...

17,577 4

Version History

Version Released License
0.7.6 MIT
0.7.5 MIT
0.7.4 MIT
0.7.3 MIT
0.7.2 MIT
Pre-releases (3)
Version Released License
1.0.0-alpha.3 MIT
1.0.0-alpha.2 MIT
1.0.0-alpha.1 MIT