diff --git a/src/main/java/dev/osm/mapsplit/MapSplit.java b/src/main/java/dev/osm/mapsplit/MapSplit.java index 6f5db76..81cdf82 100644 --- a/src/main/java/dev/osm/mapsplit/MapSplit.java +++ b/src/main/java/dev/osm/mapsplit/MapSplit.java @@ -515,10 +515,8 @@ private void addWayToMap(@NotNull Way way) { * @param way the Way we are processing * @param tileList the List of tiles, encoded with {@link TileCoord} */ - private void addExtraWayToMap(@NotNull Way way, @NotNull Collection tileList) { - + private void addWayNodesToMap(@NotNull Way way, @NotNull Collection tileList) { for (WayNode wayNode : way.getWayNodes()) { - // update map so that the node knows about any additional // tile it has to be stored in nmap.updateInt(wayNode.getNodeId(), tileList); @@ -806,7 +804,7 @@ public void process(EntityContainer ec) { Way w = ((WayContainer) ec).getEntity(); if (relationMemberWayIds.contains(w.getId())) { List tileList = wmap.getAllTiles(w.getId()); - addExtraWayToMap(w, tileList); + addWayNodesToMap(w, tileList); } } }