app.data.setCurrentPointByIndex(result.graphics.length ? 0 : -1);
var urlParams = esri.urlToObject(document.location.search).query || {}; var index = parseInt(urlParams.index); if( index && ! Number.isNaN(index) && index <= app.data.getTourPoints().length ) app.data.setCurrentPointByIndex(index - 1); else app.data.setCurrentPointByIndex(result.graphics.length ? 0 : -1);
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.