GeoNode / geonode

GeoNode is an open source platform that facilitates the creation, sharing, and collaborative use of geospatial data.
https://geonode.org/
Other
1.45k stars 1.13k forks source link

Change PNG size on Uploaded Legend #11483

Open jeff-bradley opened 1 year ago

jeff-bradley commented 1 year ago

Expected Behavior

Legend in Geonode shows the proper size legend.

Actual Behavior

Legend displays as small pixels image

Steps to Reproduce the Problem

1.Uploaded Legend png to the style of the layer in geoserver

  1. Click auto-detect image size and type (correctly sets) 3.Validate and Save.
  2. Run update_layer
  3. check legend in Geonode

I am able to change the legend width and height when the layer is added to a map in the layer settings, but how can I do the same when viewing in the catalog?

Specifications

draunger commented 10 months ago

@jeff-bradley I want to work on this issue please assign me sir

jeff-bradley commented 10 months ago

@draunger sorry I am not sure I have the power to assign this issue to anyone.

simone-tilia commented 2 months ago

I found that the problem derives from the default width and height settings in geonode-mapstore-client:

https://github.com/GeoNode/geonode-mapstore-client/blob/1b10aaffa3f6f6549df4123df815e0e6a8192ad2/geonode_mapstore_client/client/js/plugins/layersettings/WMSLayerSettings.jsx#L50

Maybe the best solution could be completely remove these values as they are considered optional by GeoServer. Anyway, I think we should move this issue to geonode-mapstore-client repo