|Mapping Service / Render Named Map|
Returns an image of a map in the format specified at a specified location and scale value.
The following format is used for HTTP GET requests:
HTTP GET /maps/map name/image.image type;w=width;h=height;c=x,y,srs; s=scale;[r=resolution];[l=locale]/
For information on the parameter types listed below, see Request URL Data Types.
|map name||String||yes||The name of the map to render. The map is specified by a regex for the named map to render based on the location of the named map in the repository. The name of the named map is defined between the /maps portion of the URL and the /image.image type portion of the URL. For example, to render a named map located at /earth/Europe in the repository, the following URL would be used: http://.../maps/earth/Europe/image.png;...|
|image type||String||yes||The type of image to return (gif, png, jpg, bmp, jpeg, or tiff)|
|w=width||Integer||yes||Width of the image in pixels|
|h=height||Integer||yes||Height of the image in pixels|
|c=x, y, srs||Double, Double, String||yes||The center of the view in geographic coordinates consisting of a x, y position and the srs name (spatial reference system).|
|s=scale||Integer||yes||The map view will be zoomed to the specified scale. The scale value is used to compare map and real world distance values. For example, if a value of 1000 is specified, the map scale is 1:1000 (1 map unit is equal to 1000 real world units).|
|r=resolution||Integer||no||The DPI resolution of the map as an integer. DPI measures the resolution of map images in dots per inch (the number of individual dots that can be placed within the span of one linear inch). If not specified then assumes server default.|
|l=locale||String||no||The locale in which to render the map. Uses the Java Locale format consisting of an ISO two letter language code and an ISO two letter country code. If not specified then assumes server default.|
|rd=rendering||String||no||The type of rendering to perform, which can be either s (Speed,without anti-aliasing) or q (Quality, with anti-aliasing). The default value is s.|
|bc=background color||String||no||The background color to use for the map image, as expressed in RRGGBB format. If not supplied, the background color will be transparent.
Note: Unlike with the SOAP API, a leading # should not precede the hexadecimal web color.
The opacity of the background color. If the background and backgroundOpacity attributes are specified, these values will be used to draw the background. If the background is not used, then the background will be totally transparent regardless of the backgroundOpacity attribute. If the background is used but no opacity is specified, then the background will be totally opaque.
Returns an image in the specified format.
Render a named map as a PNG that is 640 x 480 pixels in dimension, the map is centered at (-2.5, 28.5) in WGS 84, the view has a scale of 10000000, the DPI is 96 and the Locale is English (US).
GET http://<server>:<port>/rest/Spatial/MappingService/maps/Samples/NamedMaps/WorldMap/image.png;w=640;h=480;c=-2.5,38.5,epsg:4326;s=10000000;r=96;l=en-US Content-type: application/json Authorization: <Basic or Spectrum Token>