Skip to content

Commit

Permalink
fix: map-maplibre relativ module paths
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-angermann committed Oct 22, 2024
1 parent 7ccb75e commit f314883
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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({
Expand Down Expand Up @@ -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 = [
Expand All @@ -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);
Expand Down

0 comments on commit f314883

Please sign in to comment.