changeSubpage("Gallery", false); // Show the site by hiding the loading background configIndependentInitReady = true; hideLoading();
// Get the gallery data. We'll chain the three calls (for the Most Popular & Most Recent // sections of the main page and for the Gallery page) so that we can use one fetch of // data for all three. Otherwise, all three fetch calls are made before the data arrives // and we end up making three fetches. galleryData.fetch({ sort: [{attribute: "numViews", descending: true}], start: 0, count: 7, onComplete: function(items, request){ // Most Popular showPopular(items, request); galleryData.fetch({ sort: [{attribute: "modified", descending: true}], start: 0, count: 4, onComplete: function(items, request){ // Most Recent showRecent(items, request); // Gallery page updateGallery(null, null, null); } }); } });
updateGallery("Elections & Voting", "Web", null);
updateGallery("Community Activities", null, null);
currentType = "Web"; dijit.byId("searchBox").set("value", "park");
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.