2.1.9 • Published 3 years ago

google-maps-angular v2.1.9

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

Documentation

This library is use to render google maps in angular application. We will have to pass 'latLong' as an input to display google maps in our application. in case we want to add markers of our map neary by locations we 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 install google-maps-angular

import GoogleMapsAngularModule in app.module and inject as a Root

import { GoogleMapsAngularModule } from 'google-maps-angular';
imports: [
    GoogleMapsAngularModule.forRoot({googleMapsKey: 'your google maps api key'})
  ]

google-maps-angular library usage in our application

<lib-google-maps-angular (markerClicked)="markerClicked($event)" [markers]="markers"
    [latLong]="latLong" [googleMapDefaultIcon]="googleMapDefaultIcon"></lib-google-maps-angular>

latLong config format

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

markers config format

markers = [
    {
      lat: 'marker latitude',
      long: 'marker longitude',
      labelDetails: {
        text: 'Marker Text display on marker this is required',
        fontWeight: 'normal',
        fontSize: '12px',
        color: 'white'
      }
    }
  ];

Inputs

InputTypeRequired/OptionalUses
latLongobjectrequiredWe will pass lat/long to display map of that particular area
googleMapDefaultIconstringoptionalCustom icon path which we want to display as a marker icon
markersarrayoptionalWe will pass as an array in case we want to display nearby by markers in that particular map

Events

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

Demo

2.1.8

3 years ago

2.1.7

3 years ago

2.1.9

3 years ago

2.1.6

3 years ago

2.1.5

3 years ago

2.1.4

3 years ago

2.1.3

3 years ago

2.1.2

3 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.11.0

3 years ago

1.10.0

3 years ago

1.9.0

3 years ago

1.8.0

3 years ago

1.7.0

3 years ago

1.6.0

3 years ago

1.5.0

3 years ago

1.4.0

3 years ago

1.2.0

3 years ago

1.3.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago