- webpack config separation for development and production
- load only the necessary classes from leaflet
This commit is contained in:
parent
7857e2c5bb
commit
bc44385846
13 changed files with 883 additions and 209 deletions
|
|
@ -4,10 +4,6 @@ import { BrowserModule } from "@angular/platform-browser";
|
|||
import { AppComponent } from './app.component';
|
||||
import { MapComponent } from './map/map.component';
|
||||
|
||||
// import {
|
||||
// HelgolandServicesConnector
|
||||
// } from '@helgoland/core';
|
||||
|
||||
import { HttpClientModule, HttpClient } from '@angular/common/http'; //for http requests
|
||||
import { MarkerService } from './services/marker.service';
|
||||
import { DatasetApiService } from "./services/dataset-api.service";
|
||||
|
|
@ -16,10 +12,10 @@ import { HttpService } from "./services/http.service";
|
|||
// siehe https://52north.github.io/helgoland-toolbox/additional-documentation/how-tos/integrate-a-map-component.html
|
||||
// https://52north.github.io/helgoland-toolbox/components/LocateControlComponent.html#source
|
||||
|
||||
import {
|
||||
DatasetApiInterface, ApiV3InterfaceService, SplittedDataDatasetApiInterface, DatasetApiV3Connector, HelgolandServicesConnector
|
||||
} from '@helgoland/core';
|
||||
import { HelgolandCoreModule } from "@helgoland/core";
|
||||
// import {
|
||||
// DatasetApiInterface, ApiV3InterfaceService, SplittedDataDatasetApiInterface, DatasetApiV3Connector, HelgolandServicesConnector
|
||||
// } from '@helgoland/core';
|
||||
// import { HelgolandCoreModule } from "@helgoland/core";
|
||||
|
||||
// import 'core-js';
|
||||
|
||||
|
|
@ -27,7 +23,7 @@ import { HelgolandCoreModule } from "@helgoland/core";
|
|||
// declarations: The components, directives, and pipes that belong to this NgModule.
|
||||
declarations: [AppComponent, MapComponent],
|
||||
// imports: Other modules whose exported classes are needed by component templates declared in this NgModule.
|
||||
imports: [BrowserModule, HttpClientModule, HelgolandCoreModule],
|
||||
imports: [BrowserModule, HttpClientModule],
|
||||
providers: [
|
||||
MarkerService, HttpService, DatasetApiService,
|
||||
// {
|
||||
|
|
@ -36,11 +32,11 @@ import { HelgolandCoreModule } from "@helgoland/core";
|
|||
// deps: [HttpXhrBackend]
|
||||
// },
|
||||
|
||||
{
|
||||
provide: HelgolandServicesConnector,
|
||||
useClass: DatasetApiV3Connector,
|
||||
deps: [HttpClient]
|
||||
},
|
||||
// {
|
||||
// provide: HelgolandServicesConnector,
|
||||
// useClass: DatasetApiV3Connector,
|
||||
// deps: [HttpClient]
|
||||
// },
|
||||
|
||||
],
|
||||
// bootstrap: The main application view, called the root component, which hosts all other application views.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue