hslayers / hslayers-ng

User interface and map building extensions for OpenLayers
https://ng.hslayers.org/
MIT License
34 stars 20 forks source link

WMS-t broken #5059

Open jmacura opened 2 weeks ago

jmacura commented 2 weeks ago

Bug

Describe the bug WMS-t layer stuck with "Fetching available times..." in LayerManager

To Reproduce Steps to reproduce the behavior:

  1. Go to test-app
  2. Go to LayerManager
  3. See layer "Optical satellite basemap" stucks at loading times

Expected behavior Available times shall be fetched and displayed.

Screenshots image

image

Additional context Works fine in v13.1 as can be seen e.g. at https://hub4everybody.com/map/

FilipLeitner commented 1 week ago

For the 'Optical satellite basemap' it is the timing issue. layerDimensionDefinitionChanges is emitted before subscriber is setup in HsLayerManagerService image When increasing timeout of emittion to 1s one more caveat to consider appears - layerDesriptor is created late image

Maybe we could wait for mapEventHandlersSet before the emittion but I am not really familiar with the dimensions part of the code so maybe it needs to be handled more robustly not just this hack.

jmacura commented 1 week ago

Thanks for investigating this, @FilipLeitner ! I wil try to look at that.