Popup: Keep position on close

Step to reproduce:
1) open map.geo.admin.ch
2) open a legend (or help etc..)
3) move the popup
4) close the popup
5) reopen the popup

Result:
popup position is reset

Expected result:
popup position is persistent

This PR solves this issue.