What  is the difference between webmap and appid in the basic viewer

5059
4
10-08-2013 03:46 AM
JoseSanchez
Occasional Contributor III
Hi all

what is the difference between  webmap and appid in the basic viewer?

Where do I find these values? 

   webmap: null,
       // webmap: "dbd1c6d52f4e447f8c01d14a691a70fe",
            //Modify this to point to your sharing service URL if you are using the portal
        sharingurl: "http://www.arcgis.com",
        //sharingurl: null,//for example: "http://www.arcgis.com",
        //The id for the web mapping application item that contains configuration info - in most
        ////When editing you need to specify a proxyurl (see below) if the service is on a different domain
        //Specify a proxy url if you will be editing, using the elevation profile or have secure services or web maps that are not shared with everyone.
        proxyurl: "",
        //cases this will be null.
        appid: "8746539d974c4f2c808d8d32582b100b",
        //appid: "",
  
Tags (2)
0 Kudos
4 Replies
AnttiKajanus1
Occasional Contributor III
You can see webmap id in Url when you navigate to the webmap in the ArcGIS Online.

Application id is something that you get when you register application with ArcGIS Online.
"If you are an application developer with an organizational account, you can register your application and obtain an app ID"
Read more: http://resources.arcgis.com/en/help/arcgisonline/index.html#//010q00000077000000
0 Kudos
KellyHutchins
Esri Frequent Contributor
The web map id is the unique id of an arcgis.com web map. To find the web map id, view your web map in ArcGIS.com and you can see the web map id in the URL.

The appid is the unique identifier for an application that is published using the Basic Viewer template. Follow the Publish steps in this help document to publish an app. Once the app is published the appid is a url parameter for that applciation.

http://resources.arcgis.com/en/help/arcgisonline/index.html#//010q0000008t000000
0 Kudos
JoseSanchez
Occasional Contributor III
Which one do you populate inside the index.html file in the Basic Viewer webmap or appid?

thanks


The web map id is the unique id of an arcgis.com web map. To find the web map id, view your web map in ArcGIS.com and you can see the web map id in the URL.

The appid is the unique identifier for an application that is published using the Basic Viewer template. Follow the Publish steps in this help document to publish an app. Once the app is published the appid is a url parameter for that applciation.

http://resources.arcgis.com/en/help/arcgisonline/index.html#//010q0000008t000000
0 Kudos
KellyHutchins
Esri Frequent Contributor
You can use either one. If you have a published application and have set various configuration options you can use the appid to ensure those configuration options are applied. If you don't have a published application you can use the webmap id for the web map you want to display.
0 Kudos