geonode
geonode copied to clipboard
Change PNG size on Uploaded Legend
Expected Behavior
Legend in Geonode shows the proper size legend.
Actual Behavior
Legend displays as small pixels
Steps to Reproduce the Problem
1.Uploaded Legend png to the style of the layer in geoserver 2. Click auto-detect image size and type (correctly sets) 3.Validate and Save. 4. Run update_layer 5. 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
- GeoNode version: 4.1.x
- Installation type (vanilla, geonode-project): vanilla
- Installation method (manual, docker): docker
- Platform: wsl ubuntu
- Additional details: network tab for legend call shows http://localhost/geoserver/ows?service=WMS&request=GetLegendGraphic&format=image%2Fpng&height=12&width=12&layer=geonode%3Ae_transln&style=geonode%3Ae_trnsln_css&version=1.3.0&SLD_VERSION=1.1.0&LEGEND_OPTIONS=forceLabels%3Aon&v=1694641491101&access_token=2WMnl4Hyd5GXt2UtFST00YjoVU7H1k
@jeff-bradley I want to work on this issue please assign me sir
@draunger sorry I am not sure I have the power to assign this issue to anyone.
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