new2jsapi

Basic Viewer - ArcGISDynamicMapServiceLayer where to place definition (newbie)

Discussion created by new2jsapi on Mar 25, 2013
Latest reply on Mar 25, 2013 by new2jsapi
I'm new to the JS api.  In looking at samples, I was wondering, where does one place the layer definitions and initial extent for a ArcGISDynamicMapServiceLayer in the 3.4 Basic Viewer template?  In older versions of the template, you just plopped them in the init() function in the index.html.  Do they go somewhere in the initMap function in the layout.js now?  Any direction or sample would be much appreciated.

Outcomes