3liz / lizmap-web-client

Transfer a QGIS project on a server, Lizmap is providing the web interface to browse it
https://www.lizmap.com
Mozilla Public License 2.0
257 stars 143 forks source link

customization of popup/idenitfy dialog for rasters #1729

Open gioman opened 4 years ago

gioman commented 4 years ago

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.

Gustry commented 4 years ago

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 :

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

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

gioman commented 4 years ago

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).