kartoza / least-cost-electrification-somaliland

0 stars 0 forks source link

Duplicate legends for map layers #13

Closed vermeulendivan closed 2 years ago

vermeulendivan commented 3 years ago

Two legends are shown for the 'Small scale hydrological power' map layer. Only one should be shown, and a legend request only shows one legend: image

The same happens with the 'OSM Roads' map layer. There is 4 legends, the other legends are not visible due to a large number of legend entries image

lkwalke4 commented 3 years ago

@meomancer could you please glance at this issue too? Don't spend too much time, but if you could glance at it I would appreciate it!

meomancer commented 3 years ago

hi @vermeulendivan @lkwalke4 the Small Scale Hydrology has been fixed

Here how to fix it

go to https://somaliland.gep.kartoza.com/en/admin/base/link/ and filter by the layer name

After that we can see on the column name "Legend" Those line are used for rendering legend Selection_306

I haven't fixed the OSM Roads, because the legend is different

Link: https://somaliland.gep.kartoza.com/en/admin/base/link/?o=-5&q=OSM+Road There are 4 legend Selection_307

But there are different style for the legend 3 of it using https://somaliland.gep.kartoza.com/geoserver/ows?service=WMS&request=GetLegendGraphic&format=image/png&WIDTH=20&HEIGHT=20&LAYER=geonode:somaliland_osm_roads&STYLE=somaliland_osm_roads&legend_options=fontAntiAliasing:true;fontSize:12;forceLabels:on Selection_308

and 1 of it using https://somaliland.gep.kartoza.com/geoserver/ows?service=WMS&request=GetLegendGraphic&format=image/png&WIDTH=20&HEIGHT=20&LAYER=geonode:somaliland_osm_roads&STYLE=roads_admire&legend_options=fontAntiAliasing:true;fontSize:12;forceLabels:on

not sure which one should we use

could you help me fix it @vermeulendivan just delete the legend that we don't need

vermeulendivan commented 3 years ago

@meomancer I have deleted the no longer required style from the styles in the geoserver. Anywhere else I need to make changes?

vermeulendivan commented 3 years ago

image

vermeulendivan commented 3 years ago

@lkwalke4 both of these tasks has been fixed. The osm roads only now displays as in the above example. The symbology I'm using is the same as Abi used for kenya osm roads. It looks too black, but when zooming in it looks much better. This is due to the large number of unclassified roads - how we received the data.

meomancer commented 3 years ago

Could we close this @vermeulendivan @lkwalke4 ? I think the original problem has been fixed?

vermeulendivan commented 2 years ago

@meomancer @lkwalke4 Yes, this issue has been resolved.