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
260 stars 143 forks source link

Add GetLegendGraphics WMS request #1571

Open SygPi opened 4 years ago

SygPi commented 4 years ago

I want to overwrite the legend in layer panel. In QGIS we can pass an url in properties layer and when we request a GetCapabilities the new url is good :

<Style>
  <Name>défaut</Name>
  <Title>défaut</Title>
  <LegendURL>
    <Format>image/png</Format>
    <OnlineResource xlink:type="simple" xlink:href="http://mydomain/media/themes/default/css/img/legend.png>
  </LegendURL>
</Style>

But in Lizmap there is no effect

Thanks

Gustry commented 4 years ago

Related issue on GIS-SE : https://gis.stackexchange.com/questions/354751/lizmap-legend-layer/354885#354885

nboisteault commented 3 years ago

@SygPi Hi, we have customer who might be interested in funding this feature. Are you interested in funding this feature too?

carekapt commented 2 years ago

@SygPi Hi, we have customer who might be interested in funding this feature. Are you interested in funding this feature too?

How much would cost funding this feature?

nboisteault commented 2 years ago

@carekapt Can you contact me at nboisteault@3liz.com?

carekapt commented 2 years ago

@carekapt Can you contact me at nboisteault@3liz.com?

Cheers! I did that, on December, still waiting for some feedback from you.

carekapt commented 2 years ago

If anyone gets to this issue , I managed a manual workaround to load a legend from a external WMS source...it's not pretty or efficient, but a think that for small projects with a few layers will work fine....if someone is interested, reply me here for the solution.

nboisteault commented 1 year ago

@carekapt Sorry for the delay

This QGIS Server issue might be related : https://github.com/qgis/QGIS/issues/42063

carekapt commented 1 year ago

No problem, I found a way to get the legend from a wms source, but it's not an efficient code.

Any idea for the cost for this development?

Kind regards, Nuno Silva

A quinta, 20/04/2023, 16:07, Nicolas Boisteault @.***> escreveu:

@carekapt https://github.com/carekapt Sorry for the delay

This QGIS Server issue might be related : qgis/QGIS#42063 https://github.com/qgis/QGIS/issues/42063

— Reply to this email directly, view it on GitHub https://github.com/3liz/lizmap-web-client/issues/1571#issuecomment-1516499687, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJEBNZYBZKDIJGVZJAPO42DXCFGKVANCNFSM4LSOOMDQ . You are receiving this because you were mentioned.Message ID: @.***>