improve GeometryBuffer API

This commit is contained in:
Hannes Janetzek
2013-04-24 15:15:33 +02:00
parent ae993eccce
commit 923019a34a
9 changed files with 80 additions and 64 deletions

View File

@@ -74,9 +74,9 @@ public final class LineLayer extends Layer {
}
public void addLine(GeometryBuffer geom) {
if (geom.mode == 3)
if (geom.isPoly())
addLine(geom.points, geom.index, -1, true);
else if (geom.mode == 2)
else if (geom.isLine())
addLine(geom.points, geom.index, -1, false);
}