var map = new esri.Map("map");
var app = {}; // This is an empty object, equivalient to window.app app.map = new esri.Map("map"); // map is now bound to window.app.map
In the print widjet example, all the application specific values are now in window.app (map, printer, symbols, toolbar).It's a method of organizing the code in the application.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.