Using JavaScript Templates without ArcGIS.com

547
2
08-15-2013 07:30 PM
BillBass
New Contributor II
There is a template we are interested in using (Story Telling Tabbed Viewer) for creating a mapping applications. However, we would rather not have to configure a series of maps in ArcGIS.com first as all of the map services we want to use are on our internal ArcGIS Server mapping server. Is the 'source code' that is downloaded as part of the template sufficient to retain the layout (e.g. a tabbed map viewer) but still allow for customization to have it directly reference our map services? I realize the popups are pulled from the map in ArcGIS.com, so I would assume that would need to be added. Or would we be better off building something from scratch?

Thanks.
0 Kudos
2 Replies
JakubMalec
New Contributor III
All what you would have to change is the way the map variable is initialized, implement some module/function for adding layers to the map and change the way of loading the legend.
Instead of creating map based on a webmap, you can initialize the map with an empty map, add a basemap to it (either from your server or any other source), some layers (also from any source), and load the legends from the layers. There would be nothing to do with the popups, because after the map is created from a webmap, it behaves the same way like it would be if you created it by yourself.

You could try to do everything from scratch - but it takes some time to create a customizable, multilingual app such as this one ;]
0 Kudos
JohnGravois
Frequent Contributor
you can also continue to use the webmap loading pattern and just define yours in JSON rather than authoring in arcgis.com
0 Kudos