Extrusions default height, fix #409
This commit is contained in:
parent
0d7d75ccb5
commit
3b224d21fc
@ -236,6 +236,8 @@
|
||||
<xs:attribute name="line-color" type="tns:color" use="optional" />
|
||||
<xs:attribute name="side-color" type="tns:color" use="required" />
|
||||
<xs:attribute name="top-color" type="tns:color" use="required" />
|
||||
<!-- 12m default -->
|
||||
<xs:attribute name="default-height" default="12" type="xs:positiveInteger" use="optional" />
|
||||
</xs:complexType>
|
||||
|
||||
<!-- match elements -->
|
||||
|
@ -42,7 +42,6 @@ public class BuildingLayer extends Layer implements TileLoaderThemeHook {
|
||||
|
||||
private final static boolean POST_AA = false;
|
||||
public static boolean TRANSLUCENT = true;
|
||||
public static int DEFAULT_HEIGHT = 12;
|
||||
|
||||
private static final Object BUILDING_DATA = BuildingLayer.class.getName();
|
||||
|
||||
@ -86,9 +85,8 @@ public class BuildingLayer extends Layer implements TileLoaderThemeHook {
|
||||
if (v != null)
|
||||
minHeight = (int) Float.parseFloat(v);
|
||||
|
||||
/* 12m default */
|
||||
if (height == 0)
|
||||
height = DEFAULT_HEIGHT * 100;
|
||||
height = extrusion.defaultHeight * 100;
|
||||
|
||||
ExtrusionBuckets ebs = get(tile);
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2013 Hannes Janetzek
|
||||
* Copyright 2016 devemux86
|
||||
* Copyright 2016-2017 devemux86
|
||||
*
|
||||
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
|
||||
*
|
||||
@ -154,7 +154,7 @@ public class ExtrusionStyle extends RenderStyle<ExtrusionStyle> {
|
||||
colorSide = Color.TRANSPARENT;
|
||||
colorTop = Color.TRANSPARENT;
|
||||
colorLine = Color.TRANSPARENT;
|
||||
defaultHeight = 0;
|
||||
defaultHeight = 12; // 12m default
|
||||
return self();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user