The following tables describe the required and optional parameters you can use to make your map request.
See example URLs for a variety of URL example requests you can use to help create REST maps using these parameters.
You can make REST map requests via HTTP or HTTPS.
Authentication (getToken or getUserID) and map are the main parameters for REST mapping URLs and are required. See Authentication for parameters for authentication requests.
| Map (actn=getMap) Gets a REST map | ||
|---|---|---|
|
Parameter |
Description |
Valid Values |
|
Authentication token returned from a getToken request |
Returned string from getToken request. Average length of string is 72–80 characters. Recommended authentication method. |
|
|
usrid |
Authentication returned from a getUserID request |
Returned string from getUserID request. Average length of string is 50–70 characters. To enable and disable userids, visit the ArcWeb UserID account page. ArcWeb recommends using UserIDs only during phases of development and testing, when they offer more flexibility and convenience. ESRI recommends that you change your account password, which invalidates any existing UserIDs, and switch to using tokens before making an application public. |
|
Map center point in x|y coordinates |
The x-coordinate of the center point and the y-coordinate of the center point in geographic coordinates (longitude/latitude), separated by a pipeline (|), for example, -117.1817|34.0556. See example URLs for details on using the c parameter to pan a map. |
|
|
Geographical scale of the map |
The distance ratio between two geographic locations and those two points represented on the map. The distance measured on the map can be any units, and that multiplied by the scale factor will give the actual distance in the measured units. For example, if the distance between two points on the map is 3 cm, for sf=100000, the geographic distance between the two points is 300,000 cm (3 multiplied by 100,000). |
|
|
ds |
Data source |
bam (best available map) |
|
w |
Map image width in pixels |
Default value is 400. Maximum width is 8192. |
|
h |
Map image height in pixels |
Default value is 400. Maximum height is 8192. |
|
a |
Angle to rotate the map |
Default value is 0. Values less than 360 rotate the map through that many degrees. Negative values are rotated in the opposite direction. |
|
fmt |
Map image format |
Valid values are svg, swf, jpg, or png. Default value is swf. |
|
stl |
Style sheet used in the map |
Style sheets are specific to a data source (ds). The default style for a data source is nt (Neutral). Other options are ce (Classic European), cs (Cool Steel), gs (Gray Scale), or tg (Tangerine). You can set a style for the following data sources: ArcWeb:AND.Roads.World uses nt, gs, or tg; ArcWeb:TA.Streets.EU uses nt, gs, tg, or ce; ArcWeb:TA.Streets.US uses nt, cs, gs, tg, or ce; and ArcWeb:TA.Streets.NA uses nt, gs, or tg. Use the Map Image Web Service Live Sample to preview style sheets in a map. |
|
Layer list |
List of layer IDs to turn on or off. Multiple layers can be listed at the same time if separated by a pipeline (|). Use with lv to set the layers visibility. See the layer examples for example URLs. |
|
|
Layer visibility |
Turn a layer on or off. Valid values are t or f. The scale factor determines which layers are available at various scales. To turn a layer on or off, you need to know the layer's scale factor. Multiple layers can be turned on and off at the same time if separated by a pipeline (|). |
|
You may use the following optional parameters in a REST mapping URL.
|
|
||
|
|
| Acetate point Adds an acetate point to the map | ||
|---|---|---|
Note: You must use the acetate point parameter p with either pl or pi. | ||
Parameter | Description | Valid Values |
p | Point location in x|y coordinates. | To display a point, set p=-117.1817|34.0556, where -117.1817 is the x-coordinate and 34.0556 is the y-coordinate of the center point, separated by a pipeline (|). Use with the pl and/or pi parameter. |
pl | Label for the point. Font format is Verdana, normal, 10 point. Label location is set by the point parameter. | Sets a label value for each point or icon on your map. Use with the p parameter if pi is not used. |
pi | Icon to use with the point. Icon location is set by the point parameter. | See REST icons for a list of valid values. For example, to display a red pushpin icon, set pi=pushpin_red.gif. Note that for SVG and SWF images to display, you must add pi to your URL so that it is not the last parameter listed. Use with the p parameter if pl is not used. |
See Projections for map projection parameters and information.
See Raster tile parameters for raster tile map parameters and information.
| ServiceInfo (actn=getMapServiceInfo) Gets layer name or scale information for a map | ||
|---|---|---|
Parameter | Description | Valid Values |
tkn | Authentication token returned from a getToken request | Returned string from getToken request. Average length of string is 72–80 characters. Recommended authentication method. |
usrid | Authentication returned from a getUserID request | Returned string from getUserID request. Average length of string is 50–70 characters. To enable and disable UserIDs, visit the ArcWeb UserID account page. ESRI recommends using UserIDs only during phases of development and testing, when they offer more flexibility and convenience. ESRI recommends that you change your account password, which invalidates any existing UserIDs, and switch to using tokens before making an application public. |
ds | Data source | Valid values are bam (best available map) |
Order | The response is sorted on the layer name or the scale. Valid values are name or scale. Default is name. | |
Visit the Feedback page to give comments or suggestions about the ArcWeb Developer's Guide.