UNPKG

ng2-heremaps

Version:
47 lines 1.41 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 */ export class BaseMapComponent { constructor() { this.proxy = new Promise(resolve => (this.proxyResolver = resolve)); } /** * Override this method to notify when map become available to component/directive. * @return {?} */ hasMapComponent() { 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 {?} */ setMapComponent(component, map, ui) { // Placeholder for fixing circular dependency, if not extended is noop. } } 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