-
Notifications
You must be signed in to change notification settings - Fork 0
/
core.module.js
52 lines (52 loc) · 2.1 KB
/
core.module.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import { NgModule } from '@angular/core';
import { AgmMap } from './directives/map';
import { AgmCircle } from './directives/circle';
import { AgmRectangle } from './directives/rectangle';
import { AgmInfoWindow } from './directives/info-window';
import { AgmMarker } from './directives/marker';
import { AgmPolygon } from './directives/polygon';
import { AgmPolyline } from './directives/polyline';
import { AgmPolylinePoint } from './directives/polyline-point';
import { AgmKmlLayer } from './directives/kml-layer';
import { AgmDataLayer } from './directives/data-layer';
import { LazyMapsAPILoader } from './services/maps-api-loader/lazy-maps-api-loader';
import { LAZY_MAPS_API_CONFIG } from './services/maps-api-loader/lazy-maps-api-loader';
import { MapsAPILoader } from './services/maps-api-loader/maps-api-loader';
import { BROWSER_GLOBALS_PROVIDERS } from './utils/browser-globals';
import { AgmFitBounds } from '@agm/core/directives/fit-bounds';
/**
* @internal
*/
export function coreDirectives() {
return [
AgmMap, AgmMarker, AgmInfoWindow, AgmCircle, AgmRectangle,
AgmPolygon, AgmPolyline, AgmPolylinePoint, AgmKmlLayer,
AgmDataLayer, AgmFitBounds
];
}
/**
* The angular-google-maps core module. Contains all Directives/Services/Pipes
* of the core module. Please use `AgmCoreModule.forRoot()` in your app module.
*/
var AgmCoreModule = /** @class */ (function () {
function AgmCoreModule() {
}
/**
* Please use this method when you register the module at the root level.
*/
AgmCoreModule.forRoot = function (lazyMapsAPILoaderConfig) {
return {
ngModule: AgmCoreModule,
providers: BROWSER_GLOBALS_PROVIDERS.concat([
{ provide: MapsAPILoader, useClass: LazyMapsAPILoader },
{ provide: LAZY_MAPS_API_CONFIG, useValue: lazyMapsAPILoaderConfig }
]),
};
};
AgmCoreModule.decorators = [
{ type: NgModule, args: [{ declarations: coreDirectives(), exports: coreDirectives() },] },
];
return AgmCoreModule;
}());
export { AgmCoreModule };
//# sourceMappingURL=core.module.js.map