<html> <head> <title>testmap</title> <script src="http://localhost:8080/arcgis_js_api/library/3.3/jsapi/init.js"></script> <script type="text/javascript"> dojo.require("esri.map"); var map; function init(){ map=new esri.Map("map",{logo: true}); var basemap = new esri.layers.ArcGISTiledMapServiceLayer("http://localhost:8080/arcgis/rest/services/BaseMaps/sampleBaseMap/MapServer"); map.addLayer(basemap); alert(""+basemap.description);//returns me a null } dojo.addOnLoad(init); </script> </head> <body> <div id="map"></div> </body> </html>
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.