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);
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.