MapServer獲取圖例,返回json資料
想要獲取一個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:[email protected]