Select to view content in your preferred language

Basic viewer, how to point to a local map service instead or an ArcGIs Online map

2049
1
10-08-2013 11:50 AM
JoseSanchez
Frequent Contributor
Hi all

I downloaded the Basic Viewer pointing to a map in ArcGIS Online. Is thre a way to configure the source code to point to a map service in local?

Thanks
Tags (2)
0 Kudos
1 Reply
KellyHutchins
Esri Notable Contributor
Not easily. The Basic Viewer uses the createMap method to build a map based on a web map id. You'll have to search the source to find createMap then modify the code to just create the map and add the layers. Alternatively you can build a web map using json and supply that to createMap. Here's a sample that shows how to create the web map json:

https://developers.arcgis.com/en/javascript/jssamples/ags_createwebmapitem.html
0 Kudos