Skip to content

Commit

Permalink
Fix: Shifted geometry during editing (#4731)
Browse files Browse the repository at this point in the history
When popup is displayed in the right dock and edition is launched, we have to synchronize OL maps only when right dock is closed as it changes the map size
Fix #4729
  • Loading branch information
nboisteault authored Sep 5, 2024
1 parent 1c0119b commit 69cefdf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions assets/src/legacy/edition.js
Original file line number Diff line number Diff line change
Expand Up @@ -1271,10 +1271,6 @@ var lizEdition = function() {
* @param aCallback
*/
function launchEdition( aLayerId, aFid, aParent, aCallback ) {

// Put old OL2 map on top and synchronize position with new OL map
lizMap.mainLizmap.newOlMap = false;

var editedFeature = new FeatureEditionData(aLayerId, null, null);

// Get parent relation
Expand Down Expand Up @@ -1460,6 +1456,9 @@ var lizEdition = function() {
// See "Check li (tabs) visibility" in displayEditionForm method
displayEditionForm( data );

// Put old OL2 map on top and synchronize position with new OL map
lizMap.mainLizmap.newOlMap = false;

if( aCallback )
aCallback( editionLayer['id'], featureId );
})
Expand Down

0 comments on commit 69cefdf

Please sign in to comment.