Hi >From Geoserver 2.15 it is possible to request a WMS layer's legend as json: https://docs.geoserver.org/latest/en/user/services/wms/get_legend_graphic/index.html
This might be useful for a client, to read and construct a legend, I imagine. What seems to not be present in the json response (when the getLegendGraphic call is made without a scale parameter and otherwise) are the minscaledenominator and maxscaledenominators. The rules are elsewise returned wholly, it seems. So you get all the rules present in the SLD file but you can't tell which rules apply to which scale levels, if dealing with a scale-dependant style and not wishing to make the getLegendGraphic call every time the map is zoomed. Am I misunderstanding part of its purpose? Thanks for any enlightenment. -- Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html _______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
