[Geoserver-users] Getting the Legend as JSON

2016-03-19 Thread Deepti Puri
Form ArcMap service - we get JSON for Legend similar to this https://p.com/arcgis/rest/services/aaa/aaa/MapServer/Legend?f=pjson&token=d.&callback=angular.callbacks._0 angular.callbacks._0({ "layers": [ { "layerId": 1, "layerName": "abc", "layerType": "Feature Layer", "minScale": 0, "ma

Re: [Geoserver-users] Getting the Legend as JSON

2016-03-19 Thread Jonathan Moules
Note that there is the "GetStyles" request (it's part of the SLD spec) - this returns the Style used for the layer as XML. There are various convertors out there to convert XML to JSON - if you plugged one of them in as a piece of middleware between the client which needs JSON and GeoServer whi

Re: [Geoserver-users] Getting the Legend as JSON

2016-03-19 Thread Andrea Aime
Hi, there is no json support for GetLegendGraphics, the proposal you're linking to never got approved and implemented sorry! :-) Also see in the master proposal list, it's listed below the "deferred and rejected" proposals: https://github.com/geoserver/geoserver/wiki/Proposals#deferred-and-rej