Skip to content

Commit 10e907f

Browse files
committed
Fix sync edition map and view map
The edition map is managed by OL2 and view map by OL10. The sync is not well performed. Funded by EPF-HDF
1 parent 4c5d909 commit 10e907f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

assets/src/modules/map.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,8 @@ export default class map extends olMap {
630630

631631
this.on('moveend', () => {
632632
if (!this._newOlMap) {
633-
lizMap.map.setCenter(undefined,this.getView().getZoom(), false, false);
633+
//lizMap.map.setCenter(undefined,this.getView().getZoom(), false, false);
634+
this.refreshOL2View();
634635
}
635636
});
636637

0 commit comments

Comments
 (0)