x5-gmaps
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
- Guide: x5-gmaps documentation
- Demo on codesandbox.io
- Tutorial creating a COVID Heatmap
- Address Autocomplete Example
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
- Map
- Marker
- Marker Cluster
- InfoWindow
- Popup
- Heatmap
- Polylines / Polygons
- Rectangles / Circles
- Data / GeoJSON
License
This project is licensed under the MIT License - see the LICENSE file for details
Authors
Support
Star History
Related Packages
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
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 | |
| 0.7.1 | MIT | |
| 0.7.0 | MIT | |
| 0.6.3 | MIT | |
| 0.6.2 | MIT | |
| 0.6.1 | MIT | |
| 0.6.0 | MIT | |
| 0.5.9 | MIT | |
| 0.5.8 | MIT | |
| 0.5.7 | MIT | |
| 0.5.6 | MIT | |
| 0.5.5 | MIT | |
| 0.5.4 | MIT | |
| 0.5.3 | MIT | |
| 0.5.2 | MIT | |
| 0.5.1 | MIT | |
| 0.5.0 | MIT | |
| 0.4.5 | MIT | |
| 0.4.4 | MIT | |
| 0.4.3 | MIT | |
| 0.4.2 | MIT | |
| 0.4.1 | MIT | |
| 0.4.0 | MIT | |
| 0.3.34 | MIT | |
| 0.3.33 | MIT | |
| 0.3.32 | MIT |
Showing the latest 30 of 66. See every release on npm
Pre-releases (3)
| Version | Released | License |
|---|---|---|
| 1.0.0-alpha.3 | MIT | |
| 1.0.0-alpha.2 | MIT | |
| 1.0.0-alpha.1 | MIT |