ng2-heremaps
Version:
Here Maps for Angular 6
137 lines • 4.58 kB
JavaScript
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
import { NgModule } from '@angular/core';
import { HereMapsManager } from './services/maps-manager';
import { MapPolylineDirective } from './directives/map-polyline';
import { MapComponent } from './directives/map';
import { MapMakerDirective } from './directives/map-marker';
import { MapDirectionsDirective } from './directives/map-directions';
import { LAZY_LOADER_OPTIONS } from './loaders/base-maps-api-loader';
import { LazyMapsApiLoader } from './loaders/lazy-maps-api-loader';
import { MapBubbleDirective } from './directives/map-bubble';
var HereMapsModule = /** @class */ (function () {
function HereMapsModule() {
}
/**
* Used to register in top level or shared module in your application. Loader Options are mandatory.
* {@expample
* import {NgModule} from '@angular/core';
*
* @NgModule({
* declarations: [...],
* imports: [
* ...
* HereMapsModule.forRoot(<LoaderOptions>{
* apiKey: "your heremaps API key
* libraries: ["places", "geometry"]
* }),
* ...
* ],
* // optional, you can import module like below if your module depends only on component and directives
* exports: [
* HereMapsModule
* ]
* })
* export class MySharedModule { }
* }
*
* @param loaderOptions
*/
/**
* Used to register in top level or shared module in your application. Loader Options are mandatory.
* {\@expample
* import {NgModule} from '\@angular/core';
*
* \@NgModule({
* declarations: [...],
* imports: [
* ...
* HereMapsModule.forRoot(<LoaderOptions>{
* apiKey: "your heremaps API key
* libraries: ["places", "geometry"]
* }),
* ...
* ],
* // optional, you can import module like below if your module depends only on component and directives
* exports: [
* HereMapsModule
* ]
* })
* export class MySharedModule { }
* }
*
* @param {?} loaderOptions
* @return {?}
*/
HereMapsModule.forRoot = /**
* Used to register in top level or shared module in your application. Loader Options are mandatory.
* {\@expample
* import {NgModule} from '\@angular/core';
*
* \@NgModule({
* declarations: [...],
* imports: [
* ...
* HereMapsModule.forRoot(<LoaderOptions>{
* apiKey: "your heremaps API key
* libraries: ["places", "geometry"]
* }),
* ...
* ],
* // optional, you can import module like below if your module depends only on component and directives
* exports: [
* HereMapsModule
* ]
* })
* export class MySharedModule { }
* }
*
* @param {?} loaderOptions
* @return {?}
*/
function (loaderOptions) {
return {
ngModule: HereMapsModule,
providers: [
{
provide: LAZY_LOADER_OPTIONS,
useValue: loaderOptions
},
LazyMapsApiLoader,
HereMapsManager
]
};
};
HereMapsModule.decorators = [
{ type: NgModule, args: [{
declarations: [
MapComponent,
MapDirectionsDirective,
MapMakerDirective,
MapPolylineDirective,
MapBubbleDirective
],
exports: [
MapComponent,
MapDirectionsDirective,
MapMakerDirective,
MapPolylineDirective,
MapBubbleDirective
]
},] }
];
return HereMapsModule;
}());
export { HereMapsModule };
function HereMapsModule_tsickle_Closure_declarations() {
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
HereMapsModule.decorators;
/**
* @nocollapse
* @type {function(): !Array<(null|{type: ?, decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>)})>}
*/
HereMapsModule.ctorParameters;
}
//# sourceMappingURL=here-maps.module.js.map