Turn off debug mode for the editor demo

This commit is contained in:
jayd 2018-12-04 14:32:32 +07:00
parent 5b07ad051a
commit ddbd2c3550

View File

@ -55,7 +55,7 @@ const tgeo = new ThreeGeo({
tokenMapbox: '********', // <---- set your Mapbox API token here
});
const isDebug = 1;
const isDebug = 0;
if (isDebug) {
tgeo.tokenMapbox = 'zzzz';
tgeo.setApiVector(`../geo-viewer/cache/eiger/mapbox-terrain-vector`);
@ -92,9 +92,7 @@ if (tgeo.tokenMapbox.startsWith('****')) {
$msg.append(`<div>---- Log ----</div>`);
tgeo.getTerrain(origin, radius, 12, {
onVectorDem: (mesh) => {
//!!!!!
},
// onVectorDem: (mesh) => { /* just for debugging ajax */ },
onRgbDem: (meshes) => {
const pt = new THREE.Vector3(0, 0, 0);