add buildings too, not only ways

Signed-off-by: philippe lhardy <philippe.lhardy@astrolabe.coop>
This commit is contained in:
2025-11-01 19:33:20 +01:00
parent 9bb481d0b3
commit f3d1af1d45

View File

@@ -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);