mrmap-community / Mapbender2.8

Other
3 stars 1 forks source link

Mapbender Session WMC not written after initialization of WMC / MobileMap opens without layers switching viewer #26

Closed holsandre closed 1 year ago

holsandre commented 3 years ago

Describe the bug

When loading a WMC document to a mapbender native map viewer GUI and switching the viewer to mobile there is no map.

To Reproduce

Steps to reproduce the behavior:

  1. Go to a GeoPortal instance (e.g. geoportal.saarland)
  2. Click on Map collections
  3. Load in an arbritrary WMC document
  4. Switch viewer to mobile without causing the WMC causing to update (e.g. moving the extent).
  5. See error in empty map container

Expected behavior

The current WMC should be transfered as it is rendered in the Browser.

Additional context

The current WMC seems not to be written after loading the WMC from the database. Therefor mobilemap2 has nothing to load. If you move the map the current WMC is saved and the functionality is as expected.

SvenTUM commented 2 years ago

I've heard this issue is supposed to be fixed. It seems to be fixed on geoportal.rlp.de.

The issue is still open and I have no intel on which commits / merges are related to the issue. In our instance the issue is not solved after merging.

@armin11 Do you have any more information regarding this issue? I've searched for commits from Sebastian Pauli, didn't find any. However you did this commit and mentioned him: d9b711a18b239b6b0d9ece2cf4727bb1270e38f8

We still have #17 unsolved on our system, that might be the reason why it's still not working for us.

SvenTUM commented 2 years ago

I tried removing some of the differences in the JS files in https://github.com/LVGL-SL/mapbender-sl/commit/d3cc0536ef71853fcb4e2136af241922bd75396a yet that didn't seem to help.

In our system the mobile client is opened in a new tab. If I search and load another service into the map the base map suddenly appears, yet it does not contain the WMC from the previous GUI.