Select to view content in your preferred language

Whre are the source code samples witout AMD Module Require

872
5
09-25-2013 05:56 AM
JoseSanchez
Frequent Contributor
Hi all

I was able to download samples without the new notation AMD Module Require. These samples are very easy to follow and with a code that can be understood.

Where are this samples now?

Thanks
0 Kudos
5 Replies
BenFousek
Deactivated User
Jose,

You can download the SDK's http://www.esri.com/apps/products/download/index.cfm?fuseaction=download.all#ArcGIS_API_for_JavaScri... here.

Not sure what version switched to AMD. For sure 3.2 was still legacy.
0 Kudos
JonathanUihlein
Esri Regular Contributor
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.
0 Kudos
BenFousek
Deactivated User
Jon is right.

If you are just learning the api AMD is the way to go. I wasn't sold on it at first, but it's quickly growing on me.

Don't box yourself in by spending time writing a legacy app that will require migration in the near future to keep up with the api.
0 Kudos
JoseSanchez
Frequent Contributor
Ok!!!  You convinced me I am going to try the AMD syntax.

Could you recommend a "ready-to-use open source apps" in javascript using AMD syntax with the following functions :

Toolbar with the following buttons:
- Zoom in , Zoom Out, Pan, Zoom Full Extent, Previous Extent, Next Extent
- Select by Point, Select By Rectangle, By Polygon, by Circle,
- Buffer, Measure, Overview
- Find by address, Intersection
- Tracing, Printing, Help


Base map toolbar, shows custom maps instead of Esri base maps

Map section, shows map, overview window, loading map image, popup results window

Right panel with two content panels
- TOC, allows to interactwith the map  when the suer checks/unchecks layers the maps refreshes
- Legend

Multi search floating panel, search by address, intersection, folio, etc,

Footer, shows combo box to select active layer
0 Kudos
JonathanUihlein
Esri Regular Contributor
Glad you are trying AMD!

All of those features you listed should be achievable with the latest version of the JSAPI.

Various samples can be found here: https://developers.arcgis.com/en/javascript/jssamples/
0 Kudos