// Load a webscene with its item id var scene = new WebScene({ portalItem: { id: '51c67be4a5ea4da6948a40210ddfab1a' } }); // Create a slide deck when the webscene is loaded scene.then(function() { var slidesDiv = document.getElementById('slidesDiv'); // slides are part of the webscene's presentation var slides = scene.presentation.slides; // For each slide, create a clickable thumbnail slides.forEach( function(slide) { var thumb = new Slide({ slide: slide }); thumb.on('click', function() { // apply the slide on the view slide.applyTo(view); }); slidesDiv.appendChild(thumb.domNode); } ); });
4.0 beta2
Loading WebScene