diff --git a/docs/Changelog.md b/docs/Changelog.md index 7ba77c96..abbdf697 100644 --- a/docs/Changelog.md +++ b/docs/Changelog.md @@ -7,8 +7,9 @@ - Polygon label position enhancements [#80](https://github.com/mapsforge/vtm/issues/80) - vtm-web modules update [#51](https://github.com/mapsforge/vtm/issues/51) - Mapbox vector tiles [#57](https://github.com/mapsforge/vtm/issues/57) -- SVG resources scaling [#214](https://github.com/mapsforge/vtm/issues/214) +- SVG resources scaling in themes [#214](https://github.com/mapsforge/vtm/issues/214) - Circle map style [#122](https://github.com/mapsforge/vtm/issues/122) +- Oneway arrows in themes [#275](https://github.com/mapsforge/vtm/issues/275) - PathLayer (vtm) fix disappearing segments [#108](https://github.com/mapsforge/vtm/issues/108) - House numbers (nodes) fix visibility [#168](https://github.com/mapsforge/vtm/issues/168) - Android fix quick scale vs long press [#250](https://github.com/mapsforge/vtm/issues/250) diff --git a/vtm-themes/resources/assets/patterns/oneway.svg b/vtm-themes/resources/assets/patterns/oneway.svg new file mode 100644 index 00000000..f2280854 --- /dev/null +++ b/vtm-themes/resources/assets/patterns/oneway.svg @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<svg xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="4640" height="290" version="1.1"> + <metadata id="metadata7"/> + <g inkscape:label="Ebene 1" inkscape:groupmode="layer" id="layer1" transform="translate(0,-472.36218)"> + <path d="m 2382.0792,530.4022 c 0,23.62174 0,47.24349 0,70.86523 -107.9543,0.24577 -215.9507,-0.50756 -323.8789,0.39258 -12.6443,2.23959 -16.8481,21.44126 -5.8203,28.40039 9.7713,6.40448 21.8892,1.7557 32.6992,3.20508 99,0 198,0 297,0 0,24.70443 0,49.40885 0,74.11328 68.6624,-30.00684 137.3253,-60.01234 205.9883,-90.01758 -68.663,-30.00467 -137.326,-60.00938 -205.9883,-90.01562 0,1.01888 0,2.03776 0,3.05664 z" id="path2994" inkscape:connector-curvature="0" visibility="visible" shape-rendering="auto" mix-blend-mode="normal" color-interpolation-filters="linearRGB" isolation="auto" stroke-dasharray="none" stroke-opacity="1" white-space="normal" opacity="1" fill="#ffffff" solid-opacity="1" stroke-miterlimit="4" image-rendering="auto" fill-opacity="1" solid-color="#000000" stroke="#ffffff" display="inline" color="#000000" fill-rule="nonzero" stroke-linecap="round" stroke-linejoin="miter" stroke-width="8" color-rendering="auto" stroke-dashoffset="0" color-interpolation="sRGB"/> + </g> +</svg> diff --git a/vtm-themes/resources/assets/vtm/default.xml b/vtm-themes/resources/assets/vtm/default.xml index c719c2e6..c4f40c97 100644 --- a/vtm-themes/resources/assets/vtm/default.xml +++ b/vtm-themes/resources/assets/vtm/default.xml @@ -950,6 +950,18 @@ </m> </m> + <!-- highway one-way markers --> + <m k="tunnel" v="~|false|no"> + <m k="area" v="~|false|no"> + <m k="highway"> + <m k="oneway" v="yes|true" zoom-min="16"> + <line fix="true" src="assets:patterns/oneway.svg" stipple="160" + stipple-stroke="#666666" width="6" /> + </m> + </m> + </m> + </m> + </m><!-- end e="way" --> <m e="node" select="first"> diff --git a/vtm-themes/resources/assets/vtm/mapzen.xml b/vtm-themes/resources/assets/vtm/mapzen.xml index 791fa80c..d04dd675 100644 --- a/vtm-themes/resources/assets/vtm/mapzen.xml +++ b/vtm-themes/resources/assets/vtm/mapzen.xml @@ -950,6 +950,18 @@ </m> </m> + <!-- highway one-way markers --> + <m k="tunnel" v="~|false|no"> + <m k="area" v="~|false|no"> + <m k="highway"> + <m k="oneway" v="yes|true" zoom-min="16"> + <line fix="true" src="assets:patterns/oneway.svg" stipple="160" + stipple-stroke="#666666" width="6" /> + </m> + </m> + </m> + </m> + </m><!-- end e="way" --> <m e="node" select="first"> diff --git a/vtm-themes/resources/assets/vtm/newtron.xml b/vtm-themes/resources/assets/vtm/newtron.xml index e31200c2..9a7208bd 100644 --- a/vtm-themes/resources/assets/vtm/newtron.xml +++ b/vtm-themes/resources/assets/vtm/newtron.xml @@ -982,6 +982,18 @@ <m k="debug" v="box"> <line cap="butt" fix="true" stroke="#dedeae" width="1.5" /> </m> + + <!-- highway one-way markers --> + <m k="tunnel" v="~|false|no"> + <m k="area" v="~|false|no"> + <m k="highway"> + <m k="oneway" v="yes|true" zoom-min="16"> + <line fix="true" src="assets:patterns/oneway.svg" stipple="160" + stipple-stroke="#666666" width="6" /> + </m> + </m> + </m> + </m> </m> diff --git a/vtm-themes/resources/assets/vtm/osmarender.xml b/vtm-themes/resources/assets/vtm/osmarender.xml index d4e2e37a..b6c52683 100644 --- a/vtm-themes/resources/assets/vtm/osmarender.xml +++ b/vtm-themes/resources/assets/vtm/osmarender.xml @@ -936,16 +936,16 @@ <!-- highway one-way markers --> - <!-- <m k="tunnel" v="~|false|no"> - <m k="area" v="~|false|no"> - <m k="highway"> - <m k="oneway" v="yes|true" zoom-min="16"> - <lineSymbol src="assets:symbols/oneway.svg" align-center="true" - repeat="true" /> - </m> - </m> - </m> - </m> --> + <m k="tunnel" v="~|false|no"> + <m k="area" v="~|false|no"> + <m k="highway"> + <m k="oneway" v="yes|true" zoom-min="16"> + <line fix="true" src="assets:patterns/oneway.svg" stipple="160" + stipple-stroke="#666666" width="6" /> + </m> + </m> + </m> + </m> <m k="aerialway"> diff --git a/vtm-themes/resources/assets/vtm/tronrender.xml b/vtm-themes/resources/assets/vtm/tronrender.xml index 06f7219e..102e8d9a 100644 --- a/vtm-themes/resources/assets/vtm/tronrender.xml +++ b/vtm-themes/resources/assets/vtm/tronrender.xml @@ -975,6 +975,18 @@ <m k="debug" v="box"> <line cap="butt" fix="true" stroke="#dedeae" width="1.5" /> </m> + + <!-- highway one-way markers --> + <m k="tunnel" v="~|false|no"> + <m k="area" v="~|false|no"> + <m k="highway"> + <m k="oneway" v="yes|true" zoom-min="16"> + <line fix="true" src="assets:patterns/oneway.svg" stipple="160" + stipple-stroke="#666666" width="6" /> + </m> + </m> + </m> + </m> </m>