From f3148837811543361ded52a094146965b8580350 Mon Sep 17 00:00:00 2001 From: lucas-angermann Date: Tue, 22 Oct 2024 09:03:27 +0200 Subject: [PATCH] fix: map-maplibre relativ module paths --- .../route-example-maplibre.component.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/projects/demo-maps/src/app/route-components/route-example-maplibre/route-example-maplibre.component.ts b/projects/demo-maps/src/app/route-components/route-example-maplibre/route-example-maplibre.component.ts index d88f9c7a..9d3706cc 100644 --- a/projects/demo-maps/src/app/route-components/route-example-maplibre/route-example-maplibre.component.ts +++ b/projects/demo-maps/src/app/route-components/route-example-maplibre/route-example-maplibre.component.ts @@ -1,7 +1,7 @@ import { Component, HostBinding, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core'; import { CustomLayer, Layer, LayerGroup, LayersService, RasterLayer, StackedLayer, VectorLayer, WmsLayer, WmtsLayer } from '@dlr-eoc/services-layers'; import { MapStateService } from '@dlr-eoc/services-map-state'; -import { MapMaplibreService } from '@dlr-eoc/map-maplibre'; +import { MapMaplibreService, MapMaplibreComponent } from '@dlr-eoc/map-maplibre'; import { StyleSpecification, TerrainControl } from 'maplibre-gl'; import { OsmTileLayer, EocLitemap, BlueMarbleTile, EocBaseoverlayTile } from '@dlr-eoc/base-layers-raster'; @@ -11,10 +11,8 @@ import testData from '@dlr-eoc/shared-assets/geojson/test.collection.json'; import { Subscription } from 'rxjs'; import { ClarityIcons, layersIcon, worldIcon, cogIcon } from '@cds/core/icon'; -import { MapMaplibreComponent } from '../../../../../map-maplibre/src/lib/map-maplibre.component'; import { ClrVerticalNavModule, ClrIconModule } from '@clr/angular'; -import { LayerControlComponent } from '../../../../../layer-control/src/lib/layer-control/layer-control.component'; -import { BaseLayerControlComponent } from '../../../../../layer-control/src/lib/base-layer-control/base-layer-control.component'; +import { LayerControlComponent, BaseLayerControlComponent } from '@dlr-eoc/layer-control'; ClarityIcons.addIcons(...[layersIcon, worldIcon, cogIcon]); @Component({ @@ -731,7 +729,7 @@ export class RouteExampleMaplibreComponent implements OnInit, OnDestroy { const layer0 = water.custom_layer.layers[0]; layer0.paint['fill-color'] = 'hsl(30, 14%, 53%)'; // layer0.maxzoom = 12; - + if (layer0.type !== 'background') { layer0['source-layer'] = 'landuse' /* layer0.filter = [ @@ -746,7 +744,7 @@ export class RouteExampleMaplibreComponent implements OnInit, OnDestroy { this.layerSvc.updateLayer(water); } - + setViewAngle() { /** set map rotation with the MapStateService */ this.mapStateSvc.setViewAngle(45);