dexconor

centering in simple tiled map

Discussion created by dexconor on May 16, 2013
Latest reply on May 16, 2013 by JGravois-esristaff
Hello,
I made a very simple map but it won't change the initial map center.

can anyone give me some advice?

Thank you,

Jack
    <script>
      dojo.require("esri.map");

      var map;

      function init() {
        map = new esri.Map("mapDiv", { 
   center:[-96,30],
        });

        var dynamicMapServiceLayer = new esri.layers.ArcGISDynamicMapServiceLayer("http://localhost:6080/arcgis/rest/services/FCOR/BaseMapTileTest/MapServer", {
        });
        
        map.addLayer(dynamicMapServiceLayer);
      }

      dojo.ready(init);
    </script>
  </head>
  <body>
    <div id="mapDiv"></div>

  </body>
</html>

Outcomes