add buildings too, not only ways
Signed-off-by: philippe lhardy <philippe.lhardy@astrolabe.coop>
This commit is contained in:
@@ -307,9 +307,11 @@ public class Maze {
|
|||||||
OsmReader reader = new OsmReader(infile.getCanonicalPath());
|
OsmReader reader = new OsmReader(infile.getCanonicalPath());
|
||||||
reader.read();
|
reader.read();
|
||||||
OsmToDrawing converter = new OsmToDrawing(reader, mulx,muly);
|
OsmToDrawing converter = new OsmToDrawing(reader, mulx,muly);
|
||||||
Drawing drawing = converter.getDrawing(reader.getWays());
|
Drawing ways = converter.getDrawing(reader.getWays());
|
||||||
|
Drawing buildings = converter.getDrawing(reader.getBuildings());
|
||||||
setStatusEnable(false);
|
setStatusEnable(false);
|
||||||
addDrawing(drawing,add);
|
addDrawing(ways,add);
|
||||||
|
addDrawing(buildings,add);
|
||||||
setStatusEnable(true);
|
setStatusEnable(true);
|
||||||
} catch (IOException io) {
|
} catch (IOException io) {
|
||||||
io.printStackTrace(System.err);
|
io.printStackTrace(System.err);
|
||||||
|
|||||||
Reference in New Issue
Block a user