angular2-google-maps
Version:
Angular 2 components for Google Maps
36 lines • 1.4 kB
JavaScript
var core_1 = require('@angular/core');
/**
* SebmGoogleMapPolylinePoint represents one element of a polyline within a {@link
* SembGoogleMapPolyline}
*/
var SebmGoogleMapPolylinePoint = (function () {
function SebmGoogleMapPolylinePoint() {
/**
* This event emitter gets emitted when the position of the point changed.
*/
this.positionChanged = new core_1.EventEmitter();
}
SebmGoogleMapPolylinePoint.prototype.ngOnChanges = function (changes) {
if (changes['latitude'] || changes['longitude']) {
var position = {
lat: changes['latitude'].currentValue,
lng: changes['longitude'].currentValue
};
this.positionChanged.emit(position);
}
};
SebmGoogleMapPolylinePoint.decorators = [
{ type: core_1.Directive, args: [{ selector: 'sebm-google-map-polyline-point' },] },
];
/** @nocollapse */
SebmGoogleMapPolylinePoint.ctorParameters = function () { return []; };
SebmGoogleMapPolylinePoint.propDecorators = {
'latitude': [{ type: core_1.Input },],
'longitude': [{ type: core_1.Input },],
'positionChanged': [{ type: core_1.Output },],
};
return SebmGoogleMapPolylinePoint;
}());
exports.SebmGoogleMapPolylinePoint = SebmGoogleMapPolylinePoint;
//# sourceMappingURL=google-map-polyline-point.js.map
;