1 | "use strict";
|
2 | var core_1 = require('@angular/core');
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | var SebmGoogleMapPolylinePoint = (function () {
|
8 | function SebmGoogleMapPolylinePoint() {
|
9 | |
10 |
|
11 |
|
12 | this.positionChanged = new core_1.EventEmitter();
|
13 | }
|
14 | SebmGoogleMapPolylinePoint.prototype.ngOnChanges = function (changes) {
|
15 | if (changes['latitude'] || changes['longitude']) {
|
16 | var position = {
|
17 | lat: changes['latitude'].currentValue,
|
18 | lng: changes['longitude'].currentValue
|
19 | };
|
20 | this.positionChanged.emit(position);
|
21 | }
|
22 | };
|
23 | SebmGoogleMapPolylinePoint.decorators = [
|
24 | { type: core_1.Directive, args: [{ selector: 'sebm-google-map-polyline-point' },] },
|
25 | ];
|
26 |
|
27 | SebmGoogleMapPolylinePoint.ctorParameters = function () { return []; };
|
28 | SebmGoogleMapPolylinePoint.propDecorators = {
|
29 | 'latitude': [{ type: core_1.Input },],
|
30 | 'longitude': [{ type: core_1.Input },],
|
31 | 'positionChanged': [{ type: core_1.Output },],
|
32 | };
|
33 | return SebmGoogleMapPolylinePoint;
|
34 | }());
|
35 | exports.SebmGoogleMapPolylinePoint = SebmGoogleMapPolylinePoint;
|
36 |
|
\ | No newline at end of file |