Skip to content

Commit

Permalink
Merge pull request #312 from jdev-org/issue-142
Browse files Browse the repository at this point in the history
Issue-142 : cohérence du zoom de la carte
  • Loading branch information
lecault authored Oct 22, 2024
2 parents 3759d4d + 6632f02 commit 5c631e6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions js/mviewerstudio.js
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,11 @@ var getConfig = () => {
maxextent = map.getView().calculateExtent();
maxextentStr = `maxextent="${maxextent}"`;
}

var extentStr = "";
extent = map.getView().calculateExtent();
extentStr = `extent="${extent}"`;

var center = map.getView().getCenter().join(",");
var zoom = map.getView().getZoom();
var mapoptions =
Expand All @@ -834,6 +839,8 @@ var getConfig = () => {
'" zoom="' +
zoom +
'" ' +
extentStr +
" " +
maxextentStr +
"/>";

Expand Down

0 comments on commit 5c631e6

Please sign in to comment.