UNPKG

ng2-bingmaps

Version:
69 lines (67 loc) 2.52 kB
/** * ng2-bingmaps - Angular 2 components for Bing Maps * @version v0.2.0 * @link https://github.com/youjustgo/ng2-bingmaps * @license MIT */ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; import { Directive, Input, Output, EventEmitter } from '@angular/core'; /** * BingMapInfoWindowAction renders an action in an info window {@link BingMapInfoWindow} * * ### Example * ```typescript * import {Component} from '@angular/core'; * import {NG2_BINGMAPS_DIRECTIVES} from 'ng2-bingmaps/core'; * * @Component({ * selector: 'my-map-cmp', * directives: [NG2_BINGMAPS_DIRECTIVES], * styles: [` * .bing-map-container { * height: 300px; * } * `], * template: ` * <bing-map [latitude]="lat" [longitude]="lng" [zoom]="zoom"> * <bing-map-marker [latitude]="lat" [longitude]="lng" [label]="'M'"> * <bing-map-info-window> * <bing-map-info-window-action [label]="actionlabel" (actionClicked)="actionClicked()></bing-map-info-window-action> * </bing-map-info-window> * </bing-map-marker> * </bing-map> * ` * }) * ``` */ export let BingMapInfoWindowAction = class BingMapInfoWindowAction { constructor() { /** * Emits an event when the action has been clicked */ this.actionClicked = new EventEmitter(); } }; __decorate([ Input(), __metadata('design:type', String) ], BingMapInfoWindowAction.prototype, "label", void 0); __decorate([ Output(), __metadata('design:type', EventEmitter) ], BingMapInfoWindowAction.prototype, "actionClicked", void 0); BingMapInfoWindowAction = __decorate([ Directive({ selector: 'bing-map-info-window-action' }), __metadata('design:paramtypes', []) ], BingMapInfoWindowAction); //# sourceMappingURL=bing-map-info-window-action.js.map