From 35c42902323d5d0be0302d3d0939dbaf704a9f23 Mon Sep 17 00:00:00 2001 From: Filip Leitner Date: Tue, 20 Aug 2024 09:53:48 +0200 Subject: [PATCH] fix(map): EPSG:4087 definition --- projects/hslayers/services/map/map.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/hslayers/services/map/map.service.ts b/projects/hslayers/services/map/map.service.ts index a6df7fc1f4..73ecbfe4aa 100644 --- a/projects/hslayers/services/map/map.service.ts +++ b/projects/hslayers/services/map/map.service.ts @@ -573,14 +573,14 @@ export class HsMapService { proj4.defs( 'EPSG:4087', - '+proj=cea +lon_0=0 +lat_ts=0 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs', + '+proj=eqc +lat_ts=0 +lat_0=0 +lon_0=0 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', ); proj4.defs( 'http://www.opengis.net/gml/srs/epsg.xml#4087', proj4.defs('EPSG:4087'), ); - register(proj4); + if (this.hsConfig.componentsEnabled?.mapControls == false) { this.removeAllControls(); }