This commit is contained in:
Karl Wright 2016-04-16 10:14:35 -04:00
commit 7b6423c2c7
1 changed files with 5 additions and 0 deletions

View File

@ -27,6 +27,7 @@ import org.apache.lucene.util.SloppyMath;
public class EarthDebugger {
final StringBuilder b = new StringBuilder();
private int nextShape;
private boolean finished;
public EarthDebugger() {
b.append("<!DOCTYPE HTML>\n");
@ -177,6 +178,10 @@ public class EarthDebugger {
}
public String finish() {
if (finished) {
throw new IllegalStateException("already finished");
}
finished = true;
b.append(" WE.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',{\n");
b.append(" attribution: '© OpenStreetMap contributors'\n");
b.append(" }).addTo(earth);\n");