Skip to content

Commit

Permalink
* SAC scale
Browse files Browse the repository at this point in the history
* no tracktype (OSM mapper)
  • Loading branch information
kaylesk committed Nov 2, 2018
1 parent 2e579ed commit c84db50
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 1 deletion.
1 change: 1 addition & 0 deletions client/freemap_slovakia/freemap_slovakia.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@

<xsl:call-template name="markedTrailsAll"/>
<xsl:call-template name="markedTrailsAllNew"/>
<xsl:call-template name="sac-scale" />
<xsl:call-template name="fixme_node"/>
</rendertheme>
</xsl:template>
Expand Down
14 changes: 14 additions & 0 deletions client/freemap_slovakia/marked_trails.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -658,4 +658,18 @@
</rule>

</xsl:template>

<xsl:template name="sac-scale">
<rule cat="sac-scale" e="way" k="sac_scale" v="*" zoom-min="13">
<rule e="way" k="sac_scale" v="hiking">
<line stroke="#50FFFF00" stroke-width="4dp" stroke-linecap="butt" />
</rule>
<rule e="way" k="sac_scale" v="mountain_hiking|demanding_mountain_hiking">
<line stroke="#50FF0000" stroke-width="4dp" stroke-linecap="butt" />
</rule>
<rule e="way" k="sac_scale" v="alpine_hiking|demandig_alpine_hiking">
<line stroke="#500000FF" stroke-width="4dp" stroke-linecap="butt" />
</rule>
</rule>
</xsl:template>
</xsl:stylesheet>
6 changes: 6 additions & 0 deletions client/freemap_slovakia/menu.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,19 @@
<name lang="sk" value="Lyžiarske značky" />
<cat id="ski" />
</layer>
<layer id="sac-scale" enabled="false" visible="false">
<name lang="en" value="SAC scale" />
<name lang="sk" value="SAC" />
<cat id="sac-scale" />
</layer>
<layer id="topo" visible="true">
<name lang="en" value="Topo" />
<name lang="sk" value="Topo" />
<cat id="topo" />
<cat id="topo_common" />
<overlay id="contours" />
<overlay id="hiking" />
<overlay id="sac-scale" />
<overlay id="cycle" />
<overlay id="ski" />
<overlay id="osmmapper" />
Expand Down
5 changes: 5 additions & 0 deletions client/freemap_slovakia/osmmapper.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
<rule cat="osmmapper" e="node" k="fixme" v="*">
<symbol src="file:/symbols/fixme.svg" symbol-width="16" force-draw="1" />
</rule>
<rule cat="osmmapper" e="way" k="highway" v="track">
<rule e="way" k="tracktype" v="~">
<line stroke="#FF0000" stroke-width="1.6dp" stroke-dasharray="1,4" stroke-linecap="butt" />
</rule>
</rule>
</xsl:template>


Expand Down
30 changes: 29 additions & 1 deletion generator/tag-mapping-fm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,35 @@

<osm-tag key="fmrelskiref" value="x" zoom-appear="8" />
</ways>


<ways>
<osm-tag key="sac_scale" value="hiking" />
<osm-tag key="sac_scale" value="mountain_hiking" />
<osm-tag key="sac_scale" value="demanding_mountain_hiking" />
<osm-tag key="sac_scale" value="alpine_hiking" />
<osm-tag key="sac_scale" value="demanding_alpine_hiking" />
<osm-tag key="sac_scale" value="difficult_alpine_hiking" />
</ways>

<ways>
<osm-tag key="mtb:scale" value="0" />
<osm-tag key="mtb:scale" value="1" />
<osm-tag key="mtb:scale" value="2" />
<osm-tag key="mtb:scale" value="3" />
<osm-tag key="mtb:scale" value="4" />
<osm-tag key="mtb:scale" value="5" />
<osm-tag key="mtb:scale" value="6" />
</ways>

<ways>
<osm-tag key="mtb:scale:uphill" value="0" />
<osm-tag key="mtb:scale:uphill" value="1" />
<osm-tag key="mtb:scale:uphill" value="2" />
<osm-tag key="mtb:scale:uphill" value="3" />
<osm-tag key="mtb:scale:uphill" value="4" />
<osm-tag key="mtb:scale:uphill" value="5" />
</ways>

<ways>
<osm-tag key="power" value="line" zoom-appear="13" />
<osm-tag key="power" value="minor_line" zoom-appear="16" />
Expand Down

0 comments on commit c84db50

Please sign in to comment.