Legend Examples Using REST

After you have installed the Spatial Module web services, you can try submitting the following REST interface URLs to request map legends.

Note: In the follow examples, the map legend data is returned in the form of a JSON object.
  • http://<yourserverandport>/rest/Spatial/MappingService/maps/NamedMaps /WorldMap/legends.json;w=16;h=16;t=png

  • http://<yourserverandport>/rest/Spatial/MappingService/maps/NamedMaps /WorldMap/legends.json;w=16;h=16;t=png?inlineSwatch=false

  • http://<yourserverandport>/rest/Spatial/MappingService/maps/NamedMaps /WorldMap/legends.json;w=16;h=16;t=png;r=50

  • http://<yourserverandport>/rest/Spatial/MappingService/maps/NamedMaps /WorldMap/legends.json;w=16;h=16;t=png;r=50;l=demo