close polygons implicitly when using OSciMap2 database
This commit is contained in:
@@ -17,6 +17,7 @@ package org.oscim.renderer.layer;
|
||||
import org.oscim.core.Tile;
|
||||
import org.oscim.renderer.GLRenderer;
|
||||
import org.oscim.theme.renderinstruction.Line;
|
||||
import org.oscim.view.MapView;
|
||||
|
||||
import android.graphics.Paint.Cap;
|
||||
|
||||
@@ -82,6 +83,10 @@ public final class LineLayer extends Layer {
|
||||
short v[] = si.vertices;
|
||||
int opos = si.used;
|
||||
|
||||
// FIXME: remove this when switching to oscimap MapDatabase
|
||||
if (!MapView.enableClosePolygons)
|
||||
closed = false;
|
||||
|
||||
for (int i = 0, pos = 0, n = index.length; i < n; i++) {
|
||||
|
||||
int length = index[i];
|
||||
@@ -100,9 +105,6 @@ public final class LineLayer extends Layer {
|
||||
continue;
|
||||
}
|
||||
|
||||
// FIXME: remove this when switching to oscimap MapDatabase
|
||||
closed = false;
|
||||
|
||||
// amount of vertices used
|
||||
// + 2 for drawing triangle-strip
|
||||
// + 4 for round caps
|
||||
|
||||
Reference in New Issue
Block a user