想要獲取一個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新聞熱點
疑難解答