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.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.