1.6.0 • Published 3 years ago

google-maps-vue-library v1.6.0

Weekly downloads
12
License
MIT
Repository
-
Last release
3 years ago

Documentation

This library is use to render google maps in your application. you will have to pass 'latLong' as a input to display google maps in your application. in case you want to add markers of your map neary by locations you will have to pass markers data as per the below defined format. when user click on any particular marker an event will execute and user will notify on which marker user has been clicked

Installation

npm i google-maps-vue-library

How we use google-maps-vue library in our applications

<GoogleMaps @markerClicked="clickMarkerMethod($event)" :markers="markers" :latLong="latLong" :apiKey="apiKey" />

latLong will be input in the following format

latLong = { lat: your latitide, long: your longitude };

markers will be input and data format will be as per below format

markers = { lat: your latitude, long: your longitude, type: 'your text which will display in the marker' } ;

Inputinput purpose
apiKey: requiredYour google map key, you don't need to add key in your html file
latLong: requiredThis is an object in which we will pass lat/long to display map of that particular area
markers: optionalwe will pass as an array in case we want to display neary by markers in that particular map

Events

OutputOutput purpose
markerClickedThis emitter will trigger when user click on any particular marker and return that particular marker information

In Progress Features

Working on marker custom icons. user can pass custom icons for markers in case they don't want to display google default marker icons.