@@ -2,6 +2,7 @@ import { Component, OnInit, HostBinding } from '@angular/core';
22import { LayersService , RasterLayer , TGeoExtent , VectorLayer , WmtsLayer } from '@dlr-eoc/services-layers' ;
33import { EPSG_3031_Def , EPSG_3995_Def , IProjDef , MapStateService , EPSG_3857_Def , EPSG_4326_Def , EPSG_3035_Def , adjustBBoxAxisToEnu } from '@dlr-eoc/services-map-state' ;
44import { MapOlService , IMapControls , MapOlComponent } from '@dlr-eoc/map-ol' ;
5+ import { ViewOptions as olViewOptions } from 'ol/View' ;
56import { OsmTileLayer } from '@dlr-eoc/base-layers-raster' ;
67
78import { ClarityIcons , layersIcon , mapIcon , compassIcon } from '@clr/angular/icon' ;
@@ -22,6 +23,7 @@ ClarityIcons.addIcons(...[layersIcon, mapIcon, compassIcon]);
2223export class RouteMap2Component implements OnInit {
2324 @HostBinding ( 'class' ) class = 'content-container' ;
2425 controls : IMapControls ;
26+ viewOptions : olViewOptions ;
2527 projections : IProjDef [ ] ;
2628
2729 projectionSet = false ;
@@ -36,6 +38,10 @@ export class RouteMap2Component implements OnInit {
3638 scaleLine : true
3739 } ;
3840
41+ this . viewOptions = {
42+ showFullExtent : true
43+ }
44+
3945 const SwissCH1903 : IProjDef = {
4046 code : `EPSG:21781` ,
4147 proj4js : '+proj=somerc +lat_0=46.9524055555556 +lon_0=7.43958333333333 +k_0=1 +x_0=600000 +y_0=200000 +ellps=bessel +towgs84=674.374,15.056,405.346,0,0,0,0 +units=m +no_defs +type=crs' ,
0 commit comments