https://github.com/tomwayson/esri-amd-samples-js
AMD-Style Samples of Esri's ArcGIS API for JavaScript
https://github.com/tomwayson/esri-amd-samples-js
Last synced: about 1 year ago
JSON representation
AMD-Style Samples of Esri's ArcGIS API for JavaScript
- Host: GitHub
- URL: https://github.com/tomwayson/esri-amd-samples-js
- Owner: tomwayson
- Created: 2012-09-11T17:11:15.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2014-01-13T04:29:16.000Z (over 12 years ago)
- Last Synced: 2025-02-11T16:23:37.392Z (over 1 year ago)
- Language: CSS
- Homepage: http://tomwayson.github.io/esri-amd-samples-js/
- Size: 1.96 MB
- Stars: 1
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# esri-amd-samples-js
## AMD-Style Samples of Esri's ArcGIS API for JavaScript
The purpose of this project is to show modified versions of Esri's [ArcGIS API for JavaScript](http://developers.arcgis.com/en/javascript/) [sample pages](http://developers.arcgis.com/en/javascript/jssamples/) that use [Dojo's AMD-style loading](http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/inside_dojo_amd.html) instead of the pre-AMD dojo.require syntax.
**NOTE: [As of version 3.6](https://developers.arcgis.com/en/javascript/jshelp/new_v36.html) of the ArcGIS API for JavaScript, most of the sample pages use AMD style loading.**
The intended audience is ArcGIS developers that are either just getting started with AMD, or who might be struggling to adapt a particular sample to work in their AMD project.
[View it live](http://tomwayson.github.io/esri-amd-samples-js/)
This project does not aim to convert every sample page to AMD. I only convert samples to AMD when I need to incorporate them into my own projects.
For a comprehensive open source example that covers most of the common mapping operations (basemap, geocoding, etc) using the ArcGIS API for JavaScript with AMD, I recommend that you check out Allan Laframboise's excellent Quick Start Map guide:
- [Repository](https://github.com/alaframboise/quickstart-map-js)
- [Live samples](http://esri.github.com/quickstart-map-js/index.html)
Finally, The samples in this project do not presume to show the "right" way to implement an AMD solution to a given problem. Only the minimal amount of code needed to convert the sample to AMD is added/updated. Whenever possible, the original code is commented out instead of replaced.
## Contributing
Anyone and everyone is welcome to contribute. The next time you find yourself converting one of the sample pages to AMD, I encourage you to share it here!
## Licensing
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
A copy of the license is available in the repository's [license.txt](https://raw.github.com/Esri/dojo-bootstrap-ui-for-maps-js/master/license.txt) file.