-
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 map click event
Now, you can subscribe to map click events: ``` <sebm-google-map [latitude]="lat" [longitude]="lng" (mapClick)="mapClicked($event)"> </sebm-google-map> ``` The $event is a `MapMouseEvent` type that contains the coords of the click. ``` import {MapMouseEvent} from 'angular2-google-maps/core'; mapClicked(event: MapMouseEvent) { console.log(event.coords.lat, event.coords.lng); } ```
- Loading branch information
1 parent
5ed34be
commit c18640c
Showing
3 changed files
with
32 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export {SebmGoogleMap} from './directives/google-map'; | ||
export {SebmGoogleMap, MapMouseEvent} from './directives/google-map'; | ||
export {SebmGoogleMapMarker} from './directives/google-map-marker'; | ||
export {ANGULAR2_GOOGLE_MAPS_DIRECTIVES} from './directives-const'; |
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