From 182635ca3582a62b295288446d6d4ad3c704e018 Mon Sep 17 00:00:00 2001 From: Laurent Lienher Date: Tue, 18 May 2021 15:52:50 +0200 Subject: [PATCH] Fix scale selector and constraint zoom to integer values --- .../geoportailv3_geoportal/static-ngeo/js/apps/MainController.js | 1 + .../static-ngeo/js/catalog/CatalogController.js | 1 + 2 files changed, 2 insertions(+) diff --git a/geoportal/geoportailv3_geoportal/static-ngeo/js/apps/MainController.js b/geoportal/geoportailv3_geoportal/static-ngeo/js/apps/MainController.js index 52b54b7e1..85f984dd6 100644 --- a/geoportal/geoportailv3_geoportal/static-ngeo/js/apps/MainController.js +++ b/geoportal/geoportailv3_geoportal/static-ngeo/js/apps/MainController.js @@ -1393,6 +1393,7 @@ MainController.prototype.createMap_ = function() { minZoom: 8, enableRotation: true, extent: this.maxExtent_, + constrainResolution: true, rotation, }) }); diff --git a/geoportal/geoportailv3_geoportal/static-ngeo/js/catalog/CatalogController.js b/geoportal/geoportailv3_geoportal/static-ngeo/js/catalog/CatalogController.js index c7921304d..051956539 100644 --- a/geoportal/geoportailv3_geoportal/static-ngeo/js/catalog/CatalogController.js +++ b/geoportal/geoportailv3_geoportal/static-ngeo/js/catalog/CatalogController.js @@ -202,6 +202,7 @@ exports.prototype.setThemeZooms = function(tree) { center: currentView.getCenter(), enableRotation: true, zoom: currentView.getZoom(), + constrainResolution: true, rotation, })); }