AnsweredAssumed Answered

Dynamic Layer not working

Question asked by hchapa89 on Apr 26, 2014
Latest reply on Apr 26, 2014 by hchapa89
Can anyone tell me why my Dynamic layer isn't showing up.
I am providing my code.
Website where you can check it out.
maps.lrgvdc911.org/lrgkids

 <!DOCTYPE HTML> <html> <head>   <meta charset="utf-8">   <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">   <title>LRG Kidz</title>   <link rel="stylesheet" type="text/css" href="http://js.arcgis.com/3.9/js/esri/css/esri.css">   <link rel="stylesheet" href="http://js.arcgis.com/3.9/js/dojo/dijit/themes/claro/claro.css">   <style>     html, body, #map {       padding:0;       margin:0;       height:100%;     }     #HomeButton {       position: absolute;       top: 245px;       left: 20px;       z-index: 10;     }   </style>   <script src="//js.arcgis.com/3.9/"></script>   <script>                      require([         "esri/map", "esri/layers/ArcGISDynamicMapServiceLayer",    "esri/dijit/BasemapGallery", "esri/arcgis/utils",   "esri/dijit/HomeButton",            "dojo/parser",          "dijit/layout/BorderContainer", "dijit/layout/ContentPane", "dijit/TitlePane",         "dojo/domReady!"       ], function(         Map, ArcGISDynamicMapServiceLayer, BasemapGallery, arcgisUtils,   HomeButton,            parser       ) {         parser.parse();         var  map = new Map("map", {           basemap: "topo",     logo: false,     sliderStyle: 'large',           center: [-98.185272, 26.282376],           zoom: 9         });   var dynamicMapServiceLayer = new ArcGISDynamicMapServiceLayer("http://maps.lrgvdc911.org:6080/arcgis/rest/services/STEAR/STEAR_DYNAMIC/MapServer", {    });    map.addLayer(dynamicMapServiceLayer);       var home = new HomeButton({         map: map       }, "HomeButton");       home.startup();             var basemapGallery = new BasemapGallery({           showArcGISBasemaps: true,           map: map         }, "basemapGallery");         basemapGallery.startup();                  basemapGallery.on("error", function(msg) {           console.log("basemap gallery error:  ", msg);         });          });     </script>                   </script> </head> <body class="claro"> <div data-dojo-type="dijit/layout/BorderContainer"           data-dojo-props="design:'headline', gutters:false"           style="width:100%;height:100%;margin:0;">   <div id="map" class="map"           data-dojo-type="dijit/layout/ContentPane">     <div id="HomeButton"></div>              <div style="position:absolute; right:20px; top:10px; z-Index:999;">           <div data-dojo-type="dijit/TitlePane"                 data-dojo-props="title:'Switch Basemap', closable:false,  open:false">             <div data-dojo-type="dijit/layout/ContentPane" style="width:380px; height:280px; overflow:auto;">             <div id="basemapGallery" ></div>                                        </div>           </div>         </div>         <div style="position:absolute; right:20px; top:55px;width:130px; z-Index:999;">           <div data-dojo-type="dijit/TitlePane"                 data-dojo-props="title:'Editing Tools', closable:false,  open:false">             <div data-dojo-type="dijit/layout/ContentPane" style="width:380px; height:280px; overflow:auto;">         </div>   </div> </body> </html>  

Outcomes