想要获取一个MapServer图例很简单只需要在url后加上legend,并告知返回json数据
例如:
获取服务所有图层图例
https://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/legend?f=pjson
获取服务指定图层图例
https://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/0/legend?f=pjson
如有疑问,请联系:
QQ:592566207
E-Mail:jxdnsong@Foxmail.com新闻热点
疑难解答