From ddbd2c3550285f327810e19e6794a230e5dbedd2 Mon Sep 17 00:00:00 2001 From: jayd Date: Tue, 4 Dec 2018 14:32:32 +0700 Subject: [PATCH] Turn off debug mode for the editor demo --- examples/editor/index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/editor/index.js b/examples/editor/index.js index 3897f13..c0e4507 100644 --- a/examples/editor/index.js +++ b/examples/editor/index.js @@ -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(`
---- Log ----
`); tgeo.getTerrain(origin, radius, 12, { - onVectorDem: (mesh) => { - //!!!!! - }, + // onVectorDem: (mesh) => { /* just for debugging ajax */ }, onRgbDem: (meshes) => { const pt = new THREE.Vector3(0, 0, 0);