var map; require(["esri/map", "esri/SpatialReference", "esri/geometry/Extent", "dojo/_base/connect", "app/populate", "dojo/ready"], function(Map, SpatialReference, Extent, connect, populate, ready) { ready(function() { var initialExtent = new Extent({ xmax: -11241653.995873693, xmin: -13198441.919973679, ymax: 5178320.359930991, ymin: 4453085.835561435, "spatialReference": { "wkid": 102100 }}); map = new Map("mapDiv", { extent: initialExtent, basemap: "streets" }); connect(map, "onLoad", function() { populate.addPoints(); }); }); }); }
Uncaught TypeError: Object is not a function.
Solved! Go to Solution.
You're welcome!
Where in the docs do we use connect()? It should be dojo.connect or connect.connect everywhere.
Thanks Jim, we'll get those fixed.