-
Notifications
You must be signed in to change notification settings - Fork 817
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(SebmGoogleMap): support right click event
Now, you can subscribe to rightclick events: ``` <sebm-google-map [latitude]="lat" [longitude]="lng" (mapRightClick)="mapClicked($event)"> </sebm-google-map> ``` The $event is a `MapMouseEvent` type that contains the coords of the rightclick. ``` import {MapMouseEvent} from 'angular2-google-maps/core'; class App { mapClicked(event: MapMouseEvent) { console.log(event.coords.lat, event.coords.lng); } } ```
- Loading branch information
1 parent
a40053a
commit eab715e
Showing
2 changed files
with
25 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters