small simplification for color selection

This commit is contained in:
sonora 2012-10-05 00:35:18 +02:00
parent c575ae7ccb
commit e0fb258899
2 changed files with 46 additions and 165 deletions

View file

@ -12,12 +12,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=""/>
<!-- Make all colors aligned in the whole application and configurable for normal user (only via custom.render.xml)
<renderingProperty attr="defMapnikRoads" name="Previous road colors" description="Default Mapnik road colors"
type="boolean" possibleValues=""/>
<renderingProperty attr="hmRoadColor" name="Hm road colors" description="Default Mapnik road colors"
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."
type="string" possibleValues="--,13,12,11"/>
<renderingProperty attr="appMode" name="Rendering mode" description="Map optimization for respective User Profile"
@ -25,6 +21,12 @@
<renderingProperty attr="noPolygons" name="No polygons" description="Make all areal land features on map transparent"
type="boolean" possibleValues=""/>
<renderingAttribute name="defaultColor">
<filter noPolygons="true" attrColorValue="#00ffffff"/>
<filter nightMode="true" attrColorValue="#003333"/>
<filter attrColorValue="#f1eae4"/>
</renderingAttribute>
<!-- 0 - no shadow, 1 - one step, 2 - blur shadow, 3 - solid shadow -->
<renderingAttribute name="shadowRendering">
<!-- next line corrects for shadowColor appearing very dark with solid shadow in day view -->
@ -34,47 +36,53 @@
<filter attrIntValue="0"/>
</renderingAttribute>
<!-- Bug in filter - the last will be used by default -->
<!-- group roadColors="Modified Mapnik" -->
<group>
<renderingConstant name="motorwayRoadColor" value="#809bff"/>
<renderingConstant name="trunkRoadColor" value="#FF8095"/>
<renderingConstant name="primaryRoadColor" value="#FFAA80"/>
<renderingConstant name="secondaryRoadColor" value="#ffd080"/>
<renderingConstant name="tertiaryRoadColor" value="#ffff80"/>
</group>
<!-- group roadColors="Road atlas style">
<renderingConstant name="motorwayRoadColor" value="#809bff"/>
<renderingConstant name="trunkRoadColor" value="#ed154b"/>
<renderingConstant name="primaryRoadColor" value="#ff80a0"/>
<renderingConstant name="secondaryRoadColor" value="#ffd080"/>
<renderingConstant name="tertiaryRoadColor" value="#ffff80"/>
</group -->
<!-- group roadColors="High contrast roads">
<renderingConstant name="motorwayRoadColor" value="#3838B0"/>
<renderingConstant name="trunkRoadColor" value="#A01060"/>
<renderingConstant name="primaryRoadColor" value="#C00828"/>
<renderingConstant name="secondaryRoadColor" value="#FF8000"/>
<renderingConstant name="tertiaryRoadColor" value="#F0C810"/>
</group -->
<!-- group roadColors="Experimental">
<renderingConstant name="motorwayRoadColor" value="#6666CC"/>
<renderingConstant name="trunkRoadColor" value="#A02067"/>
<renderingConstant name="primaryRoadColor" value="#C04D61"/>
<renderingConstant name="secondaryRoadColor" value="#F7D131"/>
<renderingConstant name="tertiaryRoadColor" value="#F0CE30"/>
</group -->
<renderingAttribute name="routeColor">
<filter roadColors="Road atlas style" attrColorValue="#CCFF6600"/>
<filter nightMode="false" attrColorValue="#960000FF"/>
<filter attrColorValue="#CCFF6600"/>
</renderingAttribute>
<renderingAttribute name="gpxColor">
<!-- filter roadColors="Road atlas style" attrColorValue="#B400FFFF"/ -->
<filter nightMode="false" attrColorValue="#B400FFFF"/>
<filter attrColorValue="#B400FFFF"/>
</renderingAttribute>
<renderingAttribute name="defaultColor">
<filter noPolygons="true" attrColorValue="#00ffffff"/>
<filter nightMode="true" attrColorValue="#003333"/>
<filter attrColorValue="#f1eae4"/>
</renderingAttribute>
<!-- The last will be used by default -->
<!-- HM road colors -->
<renderingConstant name="secondaryRoadColor" value="#ffd080" valuePale="#fdd6a4"/>
<renderingConstant name="motorwayRoadColor" value="#809bff" valuePale="#809bff"/>
<renderingConstant name="trunkRoadColor" value="#ed154b" valuePale="#df1346"/> //
<renderingConstant name="primaryRoadColor" value="#ff80a0" valuePale="#eb989a"/>
<renderingConstant name="tertiaryRoadColor" value="#ffff80" valuePale="#fefeb3"/>
<!-- vi color -->
<renderingConstant name="secondaryRoadColor" value="#F7D131"/>
<renderingConstant name="motorwayRoadColor" value="#6666CC"/>
<renderingConstant name="trunkRoadColor" value="#A02067"/>
<renderingConstant name="primaryRoadColor" value="#C04D61"/>
<renderingConstant name="tertiaryRoadColor" value="#F0CE30"/>
<!-- Default mapnik colors with changed trunk -->
<renderingConstant name="secondaryRoadColor" value="#ffd080"/>
<renderingConstant name="motorwayRoadColor" value="#809bff"/>
<renderingConstant name="trunkRoadColor" value="#FF8095"/>
<renderingConstant name="primaryRoadColor" value="#FFAA80"/>
<renderingConstant name="tertiaryRoadColor" value="#ffff80"/>
<!--
All-Purpose Renderer (with attr="hmRendered" name="Show more map detail") (by Hardy Mueller), v023:
- some roads already rendered at lower zooms (travel/orienteering)
- motorways shown blue and trunk roads red to assimilate primaries, aligned with conventional road atlas
(road color scheme intensified and unfied to Saturation=50, Brightness=100 on 2012-08-10. Old values commented with PALE-SCHEME)
- roadColors="Road atlas style" scheme aligned with conventional road atlas, Saturation=50, Brightness=100, except trunk is considered special case of primary (same hue)
- map rendering is aligned to typical map use for all zoom levels (scales), to always give a complete and reliable map.
Typical zoom level use (zX) and alignment of features displayed:
- z7 = "Rough Region Level Overview": Shows motorways, trunks, primary roads and city names

View file

@ -1,127 +0,0 @@
<renderingStyle name="test-road-colors_vX" depends="default" defaultColor="#f1eae4" version="1">
<!--
Depends on All-Purpose Renderer (by Hardy Mueller), based on production version 2012-01-04
-->
<!--
2012-08-27 to facilitate color customization
Orig: motorway=809bff, trunk=ed154b, primary=ff80a0, secondary=ffd080, tertiary=ffff80
Saturation=50, Brightness=100, except trunk is considered special case of primary (same hue)
-->
<order>
</order>
<text>
</text>
<point>
</point>
<polygon>
</polygon>
<line>
<group>
<filter tag="highway" value="motorway" maxzoom="13" color="#809bff"/>
<filter tag="highway" value="motorway_link" maxzoom="13" color="#809bff"/>
<filter tag="highway" value="trunk" maxzoom="13" color="#ed154b"/>
<filter tag="highway" value="trunk_link" maxzoom="13" color="#ed154b"/>
<groupFilter cap="ROUND">
<filter minzoom="5" maxzoom="9" strokeWidth="5"/>
<filter minzoom="10" maxzoom="10" strokeWidth="6"/>
<filter minzoom="11" maxzoom="11" strokeWidth="7"/>
<filter minzoom="12" maxzoom="12" strokeWidth="8"/>
<filter minzoom="13" maxzoom="13" strokeWidth="9"/>
</groupFilter>
</group>
<group>
<filter tag="highway" value="primary" maxzoom="13"/>
<filter tag="highway" value="primary_link" maxzoom="13"/>
<groupFilter color="#ff80a0" cap="ROUND">
<filter minzoom="7" maxzoom="9" strokeWidth="4"/>
<filter minzoom="10" maxzoom="10" strokeWidth="5"/>
<filter minzoom="11" maxzoom="11" strokeWidth="6"/>
<filter minzoom="12" maxzoom="12" strokeWidth="7"/>
<filter minzoom="13" maxzoom="13" strokeWidth="8"/>
</groupFilter>
</group>
<group>
<filter tag="highway" value="secondary" maxzoom="13"/>
<filter tag="highway" value="secondary_link" maxzoom="13"/>
<groupFilter color="#ffd080" shadowRadius="1" cap="ROUND">
<filter minzoom="9" maxzoom="9" strokeWidth="3"/>
<filter minzoom="10" maxzoom="10" strokeWidth="4"/>
<filter minzoom="11" maxzoom="11" strokeWidth="5"/>
<filter minzoom="12" maxzoom="12" strokeWidth="6"/>
<filter minzoom="13" maxzoom="13" strokeWidth="7"/>
</groupFilter>
</group>
<group>
<filter tag="highway" value="motorway" color="#809bff"/>
<filter tag="highway" value="motorway_link" color="#809bff"/>
<filter tag="highway" value="trunk" color="#ed154b"/>
<filter tag="highway" value="trunk_link" color="#ed154b"/>
<filter tag="highway" value="primary" color="#ff80a0"/>
<filter tag="highway" value="primary_link" color="#ff80a0"/>
<filter tag="highway" value="secondary" color="#ffd080"/>
<filter tag="highway" value="secondary_link" color="#ffd080"/>
<groupFilter shadowRadius="1" cap="ROUND">
<!-- Bridges -->
<filter layer="1" color_0="#000000" shadowRadius="0" cap_0="BUTT" cap="SQUARE">
<filter minzoom="14" maxzoom="14" strokeWidth_0="12"/>
<filter minzoom="15" maxzoom="15" strokeWidth_0="14"/>
<filter minzoom="16" maxzoom="16" strokeWidth_0="17"/>
<filter minzoom="17" maxzoom="17" strokeWidth_0="21"/>
<filter minzoom="18" strokeWidth_0="26"/>
<groupFilter nightMode="true" color_0="#ffffff"/>
</filter>
<filter>
<filter minzoom="14" maxzoom="14" strokeWidth="10"/>
<filter minzoom="15" maxzoom="15" strokeWidth="12"/>
<filter minzoom="16" maxzoom="16" strokeWidth="15"/>
<filter minzoom="17" maxzoom="17" strokeWidth="19"/>
<filter minzoom="18" strokeWidth="24"/>
<groupFilter layer="-1" pathEffect="4_4" cap="BUTT"/>
</filter>
</groupFilter>
</group>
<group>
<filter tag="highway" value="tertiary"/>
<filter tag="highway" value="tertiary_link"/>
<groupFilter color="#ffff80" shadowRadius="1" cap="ROUND">
<filter minzoom="10" maxzoom="10" strokeWidth="3"/>
<filter minzoom="11" maxzoom="11" strokeWidth="4"/>
<filter minzoom="12" maxzoom="12" strokeWidth="5"/>
<filter minzoom="13" maxzoom="13" strokeWidth="6"/>
<!-- Bridges -->
<filter layer="1" color_0="#000000" shadowRadius="0" cap_0="BUTT" cap="SQUARE">
<filter minzoom="13" maxzoom="14" strokeWidth="8"/>
<filter minzoom="15" maxzoom="15" strokeWidth="10"/>
<filter minzoom="16" maxzoom="16" strokeWidth="12"/>
<filter minzoom="17" maxzoom="17" strokeWidth="15"/>
<filter minzoom="18" strokeWidth="20"/>
<groupFilter nightMode="true" color_0="#ffffff"/>
</filter>
<filter>
<filter minzoom="14" maxzoom="14" strokeWidth="6"/>
<filter minzoom="15" maxzoom="15" strokeWidth="8"/>
<filter minzoom="16" maxzoom="16" strokeWidth="10"/>
<filter minzoom="17" maxzoom="17" strokeWidth="13"/>
<filter minzoom="18" strokeWidth="18"/>
<groupFilter layer="-1" pathEffect="4_4" cap="BUTT"/>
</filter>
</groupFilter>
</group>
</line>
</renderingStyle>