From 5feade7224a9d6e23b5880660dca5c0c326b0c0d Mon Sep 17 00:00:00 2001 From: NathanAP Date: Thu, 13 Oct 2022 09:53:49 -0300 Subject: [PATCH] Updated readme.md --- README.md | 178 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 93 insertions(+), 85 deletions(-) diff --git a/README.md b/README.md index a0cfb87..13225b4 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,40 @@ +# About this library + +VGM community fork is a repository to keep the original [Vue Google Maps repository](https://github.com/fawmi/vue-google-maps) alive. The original repository is great, but it wasn't maintained anymore, so the community decided to fork it because many of us depends on it. + +We tried to contact Fawmi many times in different ways, but we never got an answer. He did a great job and we hope to talk to him about all the situation. All we want is to keep this library alive and better. + +You can find more about the community decision [here](https://github.com/fawmi/vue-google-maps/issues/159). + +# How to contribute with us + +The best way to help this library to grow is reporting bugs throught issues and send PR's to improve it. I'm trying to understand everything that is happening yet, TBH I never had such an important library to keep alive, so if you want to help directly as a contribuitor, let me know! + +Issues and discussion will be more organic soon. +I'll create a Discord soon to make things more organized as well. + +For now you can contact me in my email: natspaludo@gmail.com + +### Original Readme.md ahead + # Vue 3 Google maps Components 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 [vue-map.netlify.app](https://vue-map.netlify.app) for a detailed documentation or [codesandbox for an example](https://codesandbox.io/s/vue-3-google-maps-ygpr4?file=/src/main.js) ## 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 ](https://developers.google.com/maps/documentation/javascript/get-api-key). ### Configure Vue to use the Components @@ -23,58 +43,48 @@ In your `main.js` ```js import { createApp } from 'vue' -import VueGoogleMaps from '@fawmi/vue-google-maps' +import VueGoogleMaps from '@fawmi/vue-google-maps' -const app = createApp(App); -app.use(VueGoogleMaps, { +const app = createApp(App) +app + .use(VueGoogleMaps, { load: { - key: 'YOUR_API_KEY_COMES_HERE', + key: 'YOUR_API_KEY_COMES_HERE', }, -}).mount('#app') - + }) + .mount('#app') ``` + ### Use it anywhere in your components ```vue - ``` + ## Components ### Markers If you need to add markers to the `Map`, add `GMapMarker` as child of `GMapMap` component. + ```vue ``` ### Cluster -If you have too many markers, it is helpful to cluster markers. You can easily cluster markers by wrapping your markers with `GMapCluster` component. +If you have too many markers, it is helpful to cluster markers. You can easily cluster markers by wrapping your markers with `GMapCluster` component. ```vue