-
Notifications
You must be signed in to change notification settings - Fork 74
v0.2.47..v0.2.48 changeset MapResource.java
Garret Voltz edited this page Sep 27, 2019
·
1 revision
diff --git a/hoot-services/src/main/java/hoot/services/controllers/osm/map/MapResource.java b/hoot-services/src/main/java/hoot/services/controllers/osm/map/MapResource.java
index 8213b72..6699a51 100644
--- a/hoot-services/src/main/java/hoot/services/controllers/osm/map/MapResource.java
+++ b/hoot-services/src/main/java/hoot/services/controllers/osm/map/MapResource.java
@@ -817,9 +817,11 @@ public class MapResource {
// the query that sent this in should have
// already handled filtering out invisible elements
+ boolean addChildren = elementType == ElementType.Way;
+
Users usersTable = record.get(QUsers.users);
Element elementXml = element.toXml(elementRootXml, usersTable.getId(),
- usersTable.getDisplayName(), multiLayerUniqueElementIds, true);
+ usersTable.getDisplayName(), multiLayerUniqueElementIds, addChildren);
elementRootXml.appendChild(elementXml);
}
}