Replies: 2 comments 1 reply
-
This is an interesting idea. Thinking about the layers I look after on GeoServer the zoom based styling would really require the legend to be altered. That is, the layers are set to vanish when zoomed out, to conserve resources. If this was built I suppose I could use the legend to prompt the end user to zoom in. |
Beta Was this translation helpful? Give feedback.
-
What we have done with some stakeholders is have them produce a custom legend instead of using one autogenerated by Geoserver, but we don't change the legend at different zoom levels because when you view at an oblique angle you often see both styles at the same time, e.g.: You almost want to request a legend for all the zoom levels that you are actually displaying, but again that opens up so many corner cases, and considering when you view something and include the horizon you're nearly guranteed to have all zoom levels... |
Beta Was this translation helpful? Give feedback.
-
WMS
GetLegendGraphic
supports returning different legend for different scale based on the rendering elements (section 10.2 of SLD specification). I know that calculating the scale is very problematic in 3D, but we can calculate an approximate scale value and send it with the request (also a trait so admin can set this).It is happening quite often that user has different styling for different zoom levels and in those cases, legend contains a bunch of objects not visible on the map. What do others think about this?
Beta Was this translation helpful? Give feedback.
All reactions