This project is a fork of the core module of Angular components for Google Maps and as such most of the components are still compatible with the original documentation
The differences are:
The original project relied on custom definitions of the types of the google maps javascript sdk, but in this project all the type definitions are based on @types/googlempas which is a more maintained and more complete set of definitions.
/**
* Placeholder for the search box input
*/
@Input() placeholder: string;
/**
* Position in which the control is going to placed
* This input is required otherwise the box won't be added to the map
*/
@Input() position: google.maps.ControlPosition;
/**
* Will automatically center the map to the clicked result
*/
@Input() autoBoundResults: boolean = true;
/**
* The area towards which to bias query predictions. Predictions are biased towards, but not restricted to, queries targeting these bounds.
*/
@Input() bounds: google.maps.LatLngBounds | google.maps.LatLngBoundsLiteral;
/**
* This event is fired when the user selects a query, will return the places matching that query.
*/
@Output() placesChange: EventEmitter<Array<google.maps.places.PlaceResult>> = new EventEmitter<Array<google.maps.places.PlaceResult>>();
<agm-control [position]="position">
<div content>
<!-- my markup -->
</div>
</agm-control>
Implementation of Directions Service
<agm-route [nodes]="nodes"></agm-route>
Update your api key at projects/demos/src/environments/environment.ts
npm install
npm run build:agmx
npm start