ng2-bingmaps
Version:
Angular 2 components for Bing Maps
129 lines (127 loc) • 6.88 kB
JavaScript
/**
* ng2-bingmaps - Angular 2 components for Bing Maps
* @version v0.2.0
* @link https://github.com/youjustgo/ng2-bingmaps
* @license MIT
*/
/**
* This file is generated by the Angular 2 template compiler.
* Do not edit.
*/
/* tslint:disable */
import * as import1 from '@angular/core/src/linker/view';
import * as import2 from '@angular/core/src/linker/element';
import * as import3 from '../services/bing-maps-api-wrapper';
import * as import4 from './bing-map';
import * as import5 from '../services/marker-manager';
import * as import6 from '../services/info-window-manager';
import * as import7 from '@angular/core/src/linker/view_utils';
import * as import9 from '@angular/core/src/linker/view_type';
import * as import10 from '@angular/core/src/change_detection/change_detection';
import * as import11 from '@angular/core/src/zone/ng_zone';
import * as import12 from '../services/maps-api-loader/maps-api-loader';
import * as import13 from '../services/maps-api-loader/lazy-maps-api-loader';
import * as import14 from '@angular/core/src/linker/element_ref';
import * as import15 from '@angular/core/src/metadata/view';
import * as import16 from '@angular/core/src/linker/component_factory';
var renderType_BingMap_Host = null;
class _View_BingMap_Host0 extends import1.AppView {
constructor(viewUtils, parentInjector, declarationEl) {
super(_View_BingMap_Host0, renderType_BingMap_Host, import9.ViewType.HOST, viewUtils, parentInjector, declarationEl, import10.ChangeDetectorStatus.CheckAlways);
}
get _MarkerManager_0_6() {
if ((this.__MarkerManager_0_6 == null)) {
(this.__MarkerManager_0_6 = new import5.MarkerManager(this._BingMapsAPIWrapper_0_4, this.parentInjector.get(import11.NgZone)));
}
return this.__MarkerManager_0_6;
}
get _InfoWindowManager_0_7() {
if ((this.__InfoWindowManager_0_7 == null)) {
(this.__InfoWindowManager_0_7 = new import6.InfoWindowManager(this._BingMapsAPIWrapper_0_4, this.parentInjector.get(import11.NgZone)));
}
return this.__InfoWindowManager_0_7;
}
createInternal(rootSelector) {
this._el_0 = this.selectOrCreateHostElement('bing-map', rootSelector, null);
this._appEl_0 = new import2.AppElement(0, null, this, this._el_0);
var compView_0 = viewFactory_BingMap0(this.viewUtils, this.injector(0), this._appEl_0);
this._BingMapsAPIWrapper_0_4 = new import3.BingMapsAPIWrapper(this.parentInjector.get(import12.MapsAPILoader), this.parentInjector.get(import11.NgZone), this.parentInjector.get(import13.LazyMapsAPILoaderConfig));
this._BingMap_0_5 = new import4.BingMap(new import14.ElementRef(this._el_0), this._BingMapsAPIWrapper_0_4);
this._appEl_0.initComponent(this._BingMap_0_5, [], compView_0);
compView_0.create(this._BingMap_0_5, this.projectableNodes, null);
this._expr_0 = import10.UNINITIALIZED;
this.init([].concat([this._el_0]), [this._el_0], [], []);
return this._appEl_0;
}
injectorGetInternal(token, requestNodeIndex, notFoundResult) {
if (((token === import3.BingMapsAPIWrapper) && (0 === requestNodeIndex))) {
return this._BingMapsAPIWrapper_0_4;
}
if (((token === import4.BingMap) && (0 === requestNodeIndex))) {
return this._BingMap_0_5;
}
if (((token === import5.MarkerManager) && (0 === requestNodeIndex))) {
return this._MarkerManager_0_6;
}
if (((token === import6.InfoWindowManager) && (0 === requestNodeIndex))) {
return this._InfoWindowManager_0_7;
}
return notFoundResult;
}
detectChangesInternal(throwOnChange) {
if (((this.numberOfChecks === 0) && !throwOnChange)) {
this._BingMap_0_5.ngOnInit();
}
this.detectContentChildrenChanges(throwOnChange);
const currVal_0 = true;
if (import7.checkBinding(throwOnChange, this._expr_0, currVal_0)) {
this.renderer.setElementClass(this._el_0, 'bing-map-container', currVal_0);
this._expr_0 = currVal_0;
}
this.detectViewChildrenChanges(throwOnChange);
}
}
function viewFactory_BingMap_Host0(viewUtils, parentInjector, declarationEl) {
if ((renderType_BingMap_Host === null)) {
(renderType_BingMap_Host = viewUtils.createRenderComponentType('', 0, import15.ViewEncapsulation.None, [], {}));
}
return new _View_BingMap_Host0(viewUtils, parentInjector, declarationEl);
}
export const BingMapNgFactory = new import16.ComponentFactory('bing-map', viewFactory_BingMap_Host0, import4.BingMap);
const styles_BingMap = ['.bing-map-container-inner[_ngcontent-%COMP%] {\n width: inherit;\n height: inherit;\n }\n .bing-map-content[_ngcontent-%COMP%] {\n display:none;\n }'];
var renderType_BingMap = null;
class _View_BingMap0 extends import1.AppView {
constructor(viewUtils, parentInjector, declarationEl) {
super(_View_BingMap0, renderType_BingMap, import9.ViewType.COMPONENT, viewUtils, parentInjector, declarationEl, import10.ChangeDetectorStatus.CheckAlways);
}
createInternal(rootSelector) {
const parentRenderNode = this.renderer.createViewRoot(this.declarationAppElement.nativeElement);
this._text_0 = this.renderer.createText(parentRenderNode, '\n ', null);
this._el_1 = this.renderer.createElement(parentRenderNode, 'div', null);
this.renderer.setElementAttribute(this._el_1, 'class', 'bing-map-container-inner');
this._text_2 = this.renderer.createText(parentRenderNode, '\n ', null);
this._el_3 = this.renderer.createElement(parentRenderNode, 'div', null);
this.renderer.setElementAttribute(this._el_3, 'class', 'bing-map-content');
this._text_4 = this.renderer.createText(this._el_3, '\n ', null);
this.renderer.projectNodes(this._el_3, import7.flattenNestedViewRenderNodes(this.projectableNodes[0]));
this._text_5 = this.renderer.createText(this._el_3, '\n ', null);
this._text_6 = this.renderer.createText(parentRenderNode, '\n ', null);
this.init([], [
this._text_0,
this._el_1,
this._text_2,
this._el_3,
this._text_4,
this._text_5,
this._text_6
], [], []);
return null;
}
}
export function viewFactory_BingMap0(viewUtils, parentInjector, declarationEl) {
if ((renderType_BingMap === null)) {
(renderType_BingMap = viewUtils.createRenderComponentType('C:/Projects/git/youjustgo/ng2-bingmaps/src/directives/bing-map.ts class BingMap - inline template', 1, import15.ViewEncapsulation.Emulated, styles_BingMap, {}));
}
return new _View_BingMap0(viewUtils, parentInjector, declarationEl);
}
//# sourceMappingURL=bing-map.ngfactory.js.map