<script type="text/javascript"> dojo.require("esri.map"); var myMap, myTiledMapServiceLayer; function init() {
<script src="http://js.arcgis.com/3.6/"></script> <script> var map; require([ "esri/map", "esri/layers/FeatureLayer", "esri/tasks/query", "esri/tasks/QueryTask", "esri/tasks/GeometryService", "esri/tasks/BufferParameters", "esri/graphic", "esri/InfoTemplate", "esri/symbols/SimpleMarkerSymbol", "esri/symbols/SimpleLineSymbol", "esri/symbols/SimpleFillSymbol", "esri/config", "dojo/_base/Color", "dojo/dom", "dojo/domReady" ], function(
While some of the changes are fundamental and at first glance might be confusing, they are all there for good reasons to make your code be more efficient, run faster, better leverage JavaScript and make your code more maintainable.
Hey jsn,
It's a great time to start learning and using AMD syntax because DOJO 2.0 will soon be released and the legacy syntax will no longer be supported in newer versions of the API.
I think AMD style ends up making the code much more clean and readable from a programmer's perspective (not to mention, faster apps!)
I noticed that you are using version 1.6 of the JSAPI, from the other thread. That version was released in February 2010. Since then, many improvements and features have been added. You should check them out! They are fantastic.
in browser, if we use dojo, wo can go faster,AMD:just like we can do more things..thanks