kartoza / geosafe

InaSAFE package for Geonode
GNU General Public License v3.0
7 stars 16 forks source link

Analysis page layer legend #71

Closed MariaSolovyeva closed 7 years ago

MariaSolovyeva commented 7 years ago

After the layer is selected, the user needs to see the legend about the colors used in this layer.

layer_colors

Proposed solution: to add the legend in the bottom right corner with the possibility to minimize it and expand back up.

gubuntu commented 7 years ago

put legend with transparency slider from #101. Use GeoNode API (?) or WMS GetLegendGraphic request to obtain the legend, just like the GeoNode layer page does (except without GeoExt)

boney-bun commented 7 years ago

I'm working towards integrating Tim's WMS Legend into the code. find the library from here

boney-bun commented 7 years ago

here is the mockup for the legend (the legend is on the top right corner): legend71

two issues need to be sorted out:

what do you think of the mockup @gubuntu ?

Gustry commented 7 years ago

Every layers should have a legend, even if it's black and white. Are you using the getLegendGraphic ? The legend provided by the QGIS Server app in geonode works ?

boney-bun commented 7 years ago

Yes, I am. I use the API from qgis server. the legend comes from png obtained from the legend function on the backend.

gubuntu commented 7 years ago

Legen graphics working nicely.