umap icon indicating copy to clipboard operation
umap copied to clipboard

Layer-specific map overlays

Open eiclu opened this issue 2 years ago • 4 comments

Is your feature request related to a problem? Please describe. At our university we are provided with a floor map of all the buildings in WMS format. I can already embed the map of one specific floor at a time as an overlay, but we would like to place markers on multiple floors and for people to be able to simply switch between them.

Describe the solution you'd like To make switching between floors possible, i propose being able to add overlays to layers, which are only shown when the layer is shown. This enables us to place the POIs for each floor on one layer and for the users to switch between them.

For the best user experience I would also propose adding two more features:

  • Mutually exclusive layers, where only one can be active at a time, to make switching between floors seamless.
  • Opacity for disabled layers. Meaning that the contents of a disabled layer are optionally still shown with e.g. 10% opacity, to hint to users that there is content on another layer they might want to see.

Please tell me if I should add a separate issue for those.

Describe alternatives you've considered Currently we only show one floor and place the POIs for multiple floors on the map, but this way gets confusing with a high number of POIs.

Additional context Add any other context or screenshots about the feature request here.

eiclu avatar Nov 16 '23 09:11 eiclu

Nice suggestions!

If you want to work on it, please do :)

For my understanding, can you share the current map URL ?

yohanboniface avatar Nov 16 '23 09:11 yohanboniface

That's the external page: https://tuw-maps.tuwien.ac.at Note the floor indicator on the right side

That's the Overlay URL: https://tuw-maps.tuwien.ac.at/geoserver/indrz/floor_0_0/gwc/service/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=indrz:floor_0_0&STYLE=&FORMAT=image/png&tileMatrixSet=EPSG:900913&tileMatrix=EPSG:900913:{z}&TILEROW={y}&TILECOL={x}

Whereas you can replace floor_0_0 with other floors

eiclu avatar Nov 16 '23 12:11 eiclu

Thanks for the example!

This discussion makes me reactivate the idea of merging datalayer and tilelayers in a single Layer object, where a Layer:

  • could or not contain a tilelayer (with or without transparency)
  • could or not contain alternative tilelayers (so when one tilelayer is visible, the UI would suggest the alteratives, instead of the current long list of all available tilelayers)
  • could or not contain data, OR could or not contain remote data

This would allow things impossible as for now:

  • having more than one tilelayer and one overlay layer
  • controlling order of tilelayer/overlays
  • grouping some data with some related overlay layer (that could be shown or hidden together)

Certainly not actionable as s, but food for thoughts!

yohanboniface avatar Nov 18 '23 11:11 yohanboniface

Mutually exclusive layers, where only one can be active at a time, to make switching between floors seamless.

cf #621

yohanboniface avatar Nov 29 '23 21:11 yohanboniface