1
1
import { Component , HostBinding , OnDestroy , OnInit , ViewEncapsulation } from '@angular/core' ;
2
2
import { CustomLayer , Layer , LayerGroup , LayersService , RasterLayer , StackedLayer , VectorLayer , WmsLayer , WmtsLayer } from '@dlr-eoc/services-layers' ;
3
3
import { MapStateService } from '@dlr-eoc/services-map-state' ;
4
- import { MapMaplibreService } from '@dlr-eoc/map-maplibre' ;
4
+ import { MapMaplibreService , MapMaplibreComponent } from '@dlr-eoc/map-maplibre' ;
5
5
import { StyleSpecification , TerrainControl } from 'maplibre-gl' ;
6
6
7
7
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';
11
11
import { Subscription } from 'rxjs' ;
12
12
13
13
import { ClarityIcons , layersIcon , worldIcon , cogIcon } from '@cds/core/icon' ;
14
- import { MapMaplibreComponent } from '../../../../../map-maplibre/src/lib/map-maplibre.component' ;
15
14
import { ClrVerticalNavModule , ClrIconModule } from '@clr/angular' ;
16
- import { LayerControlComponent } from '../../../../../layer-control/src/lib/layer-control/layer-control.component' ;
17
- import { BaseLayerControlComponent } from '../../../../../layer-control/src/lib/base-layer-control/base-layer-control.component' ;
15
+ import { LayerControlComponent , BaseLayerControlComponent } from '@dlr-eoc/layer-control' ;
18
16
ClarityIcons . addIcons ( ...[ layersIcon , worldIcon , cogIcon ] ) ;
19
17
20
18
@Component ( {
@@ -731,7 +729,7 @@ export class RouteExampleMaplibreComponent implements OnInit, OnDestroy {
731
729
const layer0 = water . custom_layer . layers [ 0 ] ;
732
730
layer0 . paint [ 'fill-color' ] = 'hsl(30, 14%, 53%)' ;
733
731
// layer0.maxzoom = 12;
734
-
732
+
735
733
if ( layer0 . type !== 'background' ) {
736
734
layer0 [ 'source-layer' ] = 'landuse'
737
735
/* layer0.filter = [
@@ -746,7 +744,7 @@ export class RouteExampleMaplibreComponent implements OnInit, OnDestroy {
746
744
747
745
this . layerSvc . updateLayer ( water ) ;
748
746
}
749
-
747
+
750
748
setViewAngle ( ) {
751
749
/** set map rotation with the MapStateService */
752
750
this . mapStateSvc . setViewAngle ( 45 ) ;
0 commit comments