UNPKG

ng2-heremaps

Version:
74 lines 2.35 kB
/** * @fileoverview added by tsickle * @suppress {checkTypes} checked by tsc */ // unsupported: template constraints. /** * Base class used to implement map extensions, e.g. markers, directions ... * @abstract * @template T */ var // unsupported: template constraints. /** * Base class used to implement map extensions, e.g. markers, directions ... * @abstract * @template T */ BaseMapComponent = /** @class */ (function () { function BaseMapComponent() { var _this = this; this.proxy = new Promise(function (resolve) { return (_this.proxyResolver = resolve); }); } /** * Override this method to notify when map become available to component/directive. * @return {?} */ BaseMapComponent.prototype.hasMapComponent = /** * Override this method to notify when map become available to component/directive. * @return {?} */ function () { return false; }; /** * Override this method to resolve your internal heremap objects * @param {?} component instance of map component * @param {?} map instance of heremap * @param {?} ui instance of ui overlay that is instanciated during map initialization * @return {?} */ BaseMapComponent.prototype.setMapComponent = /** * Override this method to resolve your internal heremap objects * @param {?} component instance of map component * @param {?} map instance of heremap * @param {?} ui instance of ui overlay that is instanciated during map initialization * @return {?} */ function (component, map, ui) { // Placeholder for fixing circular dependency, if not extended is noop. }; return BaseMapComponent; }()); // unsupported: template constraints. /** * Base class used to implement map extensions, e.g. markers, directions ... * @abstract * @template T */ export { BaseMapComponent }; function BaseMapComponent_tsickle_Closure_declarations() { /** * promise to your internal heremap object * @type {?} */ BaseMapComponent.prototype.proxy; /** * resolve callback that will be fired when heremap object become available * @type {?} */ BaseMapComponent.prototype.proxyResolver; /** @type {?} */ BaseMapComponent.prototype.delay; } //# sourceMappingURL=base-map-component.js.map