Skip to content

Instantly share code, notes, and snippets.

@jgravois
Last active December 24, 2015 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgravois/6802514 to your computer and use it in GitHub Desktop.
Save jgravois/6802514 to your computer and use it in GitHub Desktop.
load comparison
//legacy
dojo.require(“esri.layers.FeatureLayer”);
var featureLayer = new esri.layers.FeatureLayer("url");
//AMD
require([
"esri/map", … "esri/layers/FeatureLayer"
], function(
Map, …, FeatureLayer,
var featureLayer = new FeatureLayer("url");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment