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, })); }