|
@@ -25,7 +25,6 @@ import {AdjusterLegendService} from './adjuster/adjuster-legend.service';
|
|
|
import {AdjusterService} from './adjuster/adjuster.service';
|
|
import {AdjusterService} from './adjuster/adjuster.service';
|
|
|
import {AdjusterSimplePanelComponent} from './adjuster/adjuster-simple-panel/adjuster-simple-panel.component';
|
|
import {AdjusterSimplePanelComponent} from './adjuster/adjuster-simple-panel/adjuster-simple-panel.component';
|
|
|
import {AppConfig, nuts2Layer, nuts3IndexLayer} from './app.config';
|
|
import {AppConfig, nuts2Layer, nuts3IndexLayer} from './app.config';
|
|
|
-import {nuts} from './nuts';
|
|
|
|
|
|
|
|
|
|
@Injectable({providedIn: 'root'})
|
|
@Injectable({providedIn: 'root'})
|
|
|
export class AppService {
|
|
export class AppService {
|
|
@@ -46,6 +45,7 @@ export class AppService {
|
|
|
},
|
|
},
|
|
|
source: new VectorSource({
|
|
source: new VectorSource({
|
|
|
format: new GeoJSON(),
|
|
format: new GeoJSON(),
|
|
|
|
|
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
|
url: require('./data/pilot_regions.geojson').default,
|
|
url: require('./data/pilot_regions.geojson').default,
|
|
|
}),
|
|
}),
|
|
|
visible: true,
|
|
visible: true,
|
|
@@ -112,7 +112,7 @@ export class AppService {
|
|
|
map.on('click', this.debugMe);
|
|
map.on('click', this.debugMe);
|
|
|
});*/
|
|
});*/
|
|
|
/*this.adjusterEventService.methodChanged.subscribe((method) => {
|
|
/*this.adjusterEventService.methodChanged.subscribe((method) => {
|
|
|
- //TODO: prettify this
|
|
|
|
|
|
|
+ //TODO prettify this
|
|
|
this.nuts3ClustersLayer.set(
|
|
this.nuts3ClustersLayer.set(
|
|
|
'title',
|
|
'title',
|
|
|
`NUTS3 regions: ${method.replaceAll(/\((.+?)\)/g, '')} Clusters`
|
|
`NUTS3 regions: ${method.replaceAll(/\((.+?)\)/g, '')} Clusters`
|
|
@@ -155,6 +155,7 @@ export class AppService {
|
|
|
source: new VectorSource({
|
|
source: new VectorSource({
|
|
|
//features: new GeoJSON().readFeatures(nuts3).map((f) => f.clone()),
|
|
//features: new GeoJSON().readFeatures(nuts3).map((f) => f.clone()),
|
|
|
format: new TopoJSON({dataProjection: 'EPSG:3857'}),
|
|
format: new TopoJSON({dataProjection: 'EPSG:3857'}),
|
|
|
|
|
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
|
url: require('./data/NUTS_RG_20M_2016_3857_LEVL_3.topojson').default,
|
|
url: require('./data/NUTS_RG_20M_2016_3857_LEVL_3.topojson').default,
|
|
|
overlaps: false,
|
|
overlaps: false,
|
|
|
}),
|
|
}),
|