UNPKG

1.4 kBJavaScriptView Raw
1"use strict";
2var core_1 = require('@angular/core');
3/**
4 * SebmGoogleMapPolylinePoint represents one element of a polyline within a {@link
5 * SembGoogleMapPolyline}
6 */
7var SebmGoogleMapPolylinePoint = (function () {
8 function SebmGoogleMapPolylinePoint() {
9 /**
10 * This event emitter gets emitted when the position of the point changed.
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 /** @nocollapse */
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}());
35exports.SebmGoogleMapPolylinePoint = SebmGoogleMapPolylinePoint;
36//# sourceMappingURL=google-map-polyline-point.js.map
\No newline at end of file