UNPKG

ng2-bingmaps

Version:
55 lines (53 loc) 2.22 kB
/** * ng2-bingmaps - Angular 2 components for Bing Maps * @version v0.2.0 * @link https://github.com/youjustgo/ng2-bingmaps * @license MIT */ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; import { NgModule } from '@angular/core'; import { NG2_BINGMAPS_DIRECTIVES } from './directives'; import { MapsAPILoader } from './services/maps-api-loader/maps-api-loader'; import { LazyMapsAPILoader, LazyMapsAPILoaderConfig } from './services/maps-api-loader/lazy-maps-api-loader'; // main modules export * from './directives'; export * from './services'; /* deprecated */ export const NG2_BINGMAPS_PROVIDERS = [{ provide: MapsAPILoader, useClass: LazyMapsAPILoader }]; /** * The ng2-bing-maps core module. Contains all Directives/Services/Pipes * of the core module. Please use `BingMapsModule.forRoot(config)` in your app module. * * @experimental */ let BingMapsModule_1; export let BingMapsModule = BingMapsModule_1 = class BingMapsModule { static forRoot(config) { return { ngModule: BingMapsModule_1, providers: [ NG2_BINGMAPS_PROVIDERS, { provide: LazyMapsAPILoaderConfig, useValue: config } ], }; } }; BingMapsModule = BingMapsModule_1 = __decorate([ NgModule({ declarations: NG2_BINGMAPS_DIRECTIVES, exports: NG2_BINGMAPS_DIRECTIVES }), __metadata('design:paramtypes', []) ], BingMapsModule); //# sourceMappingURL=core.js.map