convert "Show more map detail" from a property to an attribute

This commit is contained in:
sonora 2012-11-19 21:42:54 +01:00
parent 67ed7c8b03
commit 7139bf6d70
2 changed files with 10 additions and 3 deletions

View file

@ -10,8 +10,8 @@
-->
<!-- Types : string, int, boolean; possibleValues comma separated possible values for int/string -->
<renderingProperty attr="hmRendered" name="Show more map detail" description="Increase amount of map detail shown"
type="boolean" possibleValues=""/>
<!-- renderingProperty attr="hmRendered" name="Show more map detail" description="Increase amount of map detail shown"
type="boolean" possibleValues=""/ -->
<!-- renderingProperty attr="roadColors" name="Road color scheme" description="Select road color scheme for specific purpose"
type="string" possibleValues="Modified Mapnik,Road atlas style,High contrast roads,Experimental"/ -->
<renderingProperty attr="contourLines" name="Show contour lines" description="Select minimum zoom level to display in map if available. Separate SRTM-file may be needed."
@ -23,6 +23,11 @@
<renderingProperty attr="showRoadMaps" name="Show road maps" description="Select how to show maps that have only road information."
type="string" possibleValues="Always - never show regular maps,Where no regular map is available,Never"/>
<!-- This section instead of UI setting for the "Show more map detail" property, so it can be called from depends rendering styles -->
<renderingAttribute name="hmRendered">
<filter attrBoolValue="false"/>
</renderingAttribute>
<renderingAttribute name="defaultColor">
<filter noPolygons="true" attrColorValue="#00ffffff"/>
<filter nightMode="true" attrColorValue="#003333"/>

View file

@ -53,8 +53,10 @@
<filter attrColorValue="#B400FFFF"/>
</renderingAttribute>
<!-- TODO: Somehow set hmRendered="true" from here to replace "Show more map detail" setting in UI -->
<!-- maximize details: road inclusion as early as possible in low density areas -->
<renderingAttribute name="hmRendered">
<filter attrBoolValue="true"/>
</renderingAttribute>
<order>
</order>