lizmap-web-client icon indicating copy to clipboard operation
lizmap-web-client copied to clipboard

customization of popup/idenitfy dialog for rasters

Open gioman opened this issue 5 years ago • 3 comments

Lizmap 3.3.8

Not sure this is a bug of a feature request, also unsure if the right place to file this ticket was the LM plugin tracker.

In Lizmap plugin a user can activate the "popup" for raster layers, choose "lizmap" as source and proceed to the customization. But there do not seems to be a way to get the raster value as one would do for vector attributes (at least I can't find any reference in docs). In general seems that this configuration is completely ignored in LMWC.

So... if it is not supposed to work I guess that the customization dialog in LM plugin should be disabled for raster layers, in this case this ticket could also serve as feature request for LMWC.

gioman avatar Jul 20 '20 08:07 gioman

If someone from the LWC team can tell us if it was supported for raster. Does it work using the auto mode @gioman ? If it was really supported, it's clearly missing which variable to use to refer to band 1, band 2 etc ...

The plugin is missing a few lines of codes to disable options which are vector only such as :

  • copy drag/drop form
  • having QGIS popup available
  • ....

Screenshot from 2020-07-20 11-07-26

https://github.com/3liz/lizmap-plugin/issues/278

Gustry avatar Jul 20 '20 09:07 Gustry

Does it work using the auto mode @gioman ?

@Gustry it works, it show a very simple (as expected) pop up with the raster value.

It would be very nice to be able to style the popup also for rasters, and even nicer would be to be able to apply some function to this value like "round" (as QGIS Server always returns a large number of decimals for float rasters).

gioman avatar Jul 20 '20 10:07 gioman

It might be better with QGIS >= 3.36 thanks to https://github.com/qgis/QGIS/pull/55680 and https://github.com/qgis/QGIS/pull/50854

Gustry avatar Apr 16 '25 15:04 Gustry