You are here: Using REST > v2006.1 services > Getting a REST v2006.1 map

Getting a REST v2006.1 map

With the ArcWeb Services implementation of REST, you make direct calls to the API through a Web browser. Create a URL that contains all the mapping criteria you want, and get back a map.

There are three steps involved in getting a REST map:

  1. Authentication

    Obtain a REST authentication token or UserID using the following in your Web browser.

    https://www.arcwebservices.com/services/v2006_1/restmap?actn=<getToken OR getUserID>&usr=<username>&pswd=<password>

    Replace <getToken OR getUserID> with getToken or getUserID. Replace <username> and <password> with your ArcWeb Services user name and password.

  2. Getting a Map

    Make a REST map request using the following in your Web browser; you can use HTTPS for added security:

  3. http://www.arcwebservices.com/services/v2006_1/restmap?actn=getMap&<&tkn=ArcWeb Token OR &usrid=ArcWeb usrid>&ds=ArcWeb:TA.Streets.NA&c=-117.1817|34.0556&sf=52500

    Replace <&tkn=ArcWeb Token OR &usrid=ArcWebusrid> with &tkn=token generated by your getToken request or &UserID=userID generated by your getUserID request.

    This URL represents an example of the required parameters for requesting a map. Every map request must include a token (tkn) or UserID (usrid), data source (ds), center point (c), and scale factor (sf). See the map parameters for details.

  4. Customizing a map

    Once you have a REST map, you can use additional map parameters to pan and zoom, turn layers on and off, and perform other functions.

See also


Visit the Feedback page to give comments or suggestions about the ArcWeb Developer's Guide.

ArcWeb site | ArcWeb support | support.esri.com

Copyright © ESRI