mirror of
https://github.com/cfpwastaken/planetiler-openmaptiles.git
synced 2026-02-04 04:21:08 +00:00
feat: add maxspeed to transport layer
This commit is contained in:
@@ -497,6 +497,7 @@ public class Transportation implements
|
|||||||
.setAttr(Fields.CLASS, highwayClass)
|
.setAttr(Fields.CLASS, highwayClass)
|
||||||
.setAttr(Fields.SUBCLASS, highwaySubclass(highwayClass, element.publicTransport(), highway))
|
.setAttr(Fields.SUBCLASS, highwaySubclass(highwayClass, element.publicTransport(), highway))
|
||||||
.setAttr(Fields.NETWORK, networkType != null ? networkType.name : null)
|
.setAttr(Fields.NETWORK, networkType != null ? networkType.name : null)
|
||||||
|
.setAttr("maxspeed", element.source().getTag("maxspeed"))
|
||||||
.setAttrWithMinSize(Fields.BRUNNEL, brunnel(element.isBridge(), element.isTunnel(), element.isFord()), 4, 4, 12)
|
.setAttrWithMinSize(Fields.BRUNNEL, brunnel(element.isBridge(), element.isTunnel(), element.isFord()), 4, 4, 12)
|
||||||
// z8+
|
// z8+
|
||||||
.setAttrWithMinzoom(Fields.EXPRESSWAY, expressway ? 1 : null, 8)
|
.setAttrWithMinzoom(Fields.EXPRESSWAY, expressway ? 1 : null, 8)
|
||||||
|
|||||||
@@ -201,7 +201,7 @@ class OpenMapTilesTest {
|
|||||||
), 14, 828, LineString.class);
|
), 14, 828, LineString.class);
|
||||||
assertNumFeatures("transportation", Map.of(
|
assertNumFeatures("transportation", Map.of(
|
||||||
"class", "primary"
|
"class", "primary"
|
||||||
), 14, 249, LineString.class);
|
), 14, 262, LineString.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
Reference in New Issue
Block a user