diff --git a/docs/api/components_directives/sebmGoogleMap.md b/docs/api/components_directives/sebmGoogleMap.md index 740317c45..da66f3ee4 100644 --- a/docs/api/components_directives/sebmGoogleMap.md +++ b/docs/api/components_directives/sebmGoogleMap.md @@ -32,10 +32,11 @@ import {SebmGoogleMap} from 'angular2-google-maps/core'; ### Events -| Event name | Arguments | Description | -|---------------|---------------------------------|----------------------------------------------------------| -| mapClick | [MapMouseEvent](#MapMouseEvent) | Gets emitted when the user clicks on the map | -| mapRightClick | [MapMouseEvent](#MapMouseEvent) | Get emitted when the user uses a right click on the map. | +| Event name | Arguments | Description | +|---------------|---------------------------------|-------------------------------------------------------------------------------------------------------------------------------------| +| mapClick | [MapMouseEvent](#MapMouseEvent) | Gets emitted when the user clicks on the map | +| mapRightClick | [MapMouseEvent](#MapMouseEvent) | Gets emitted when the user uses a right click on the map. | +| mapDblClick | [MapMouseEvent](#MapMouseEvent) | Gets emitted when the user double-clicks on the map. Note that the `mapClick` event emitter will also fire, right before this one. | ### Event Interfaces diff --git a/src/directives/google-map.ts b/src/directives/google-map.ts index fad8ff678..67f49a12a 100644 --- a/src/directives/google-map.ts +++ b/src/directives/google-map.ts @@ -30,6 +30,7 @@ export class SebmGoogleMap { @Output() mapClick: EventEmitter = new EventEmitter(); @Output() mapRightClick: EventEmitter = new EventEmitter(); + @Output() mapDblClick: EventEmitter = new EventEmitter(); constructor(elem: ElementRef, _mapsWrapper: GoogleMapsAPIWrapper, renderer: Renderer) { this._mapsWrapper = _mapsWrapper; @@ -106,7 +107,8 @@ export class SebmGoogleMap { const events: Event[] = [ {name: 'click', emitter: this.mapClick}, - {name: 'rightclick', emitter: this.mapRightClick} + {name: 'rightclick', emitter: this.mapRightClick}, + {name: 'dblclick', emitter: this.mapDblClick} ]; events.forEach((e: Event) => {