mirror of
https://github.com/openmaptiles/openmaptiles.git
synced 2025-12-08 18:02:18 +00:00
Trunk roads missing shield (#1773)
OMT has generic highway shields for motorways and primary, secondary, and tertiary roads. However, mysteriously, trunk roads don't have such highway shields, which can be problematic if it doesn't have a name distinct from its highway designation.
This commit is contained in:
parent
855ad8d96d
commit
3218a6535d
@ -368,6 +368,85 @@
|
||||
],
|
||||
"order": 230
|
||||
},
|
||||
{
|
||||
"id": "Trunk road shield",
|
||||
"type": "symbol",
|
||||
"source": "openmaptiles",
|
||||
"source-layer": "transportation_name",
|
||||
"minzoom": 9,
|
||||
"layout": {
|
||||
"icon-anchor": "center",
|
||||
"icon-image": "road_trunk",
|
||||
"icon-padding": 2,
|
||||
"icon-rotation-alignment": "viewport",
|
||||
"icon-size": 1,
|
||||
"icon-text-fit": "both",
|
||||
"icon-text-fit-padding": [
|
||||
3,
|
||||
4,
|
||||
3,
|
||||
4
|
||||
],
|
||||
"symbol-avoid-edges": true,
|
||||
"symbol-placement": {
|
||||
"base": 1,
|
||||
"stops": [
|
||||
[
|
||||
10,
|
||||
"point"
|
||||
],
|
||||
[
|
||||
11,
|
||||
"line"
|
||||
]
|
||||
]
|
||||
},
|
||||
"symbol-spacing": 560,
|
||||
"text-field": "{ref}",
|
||||
"text-font": [
|
||||
"Noto Sans Regular"
|
||||
],
|
||||
"text-rotation-alignment": "viewport",
|
||||
"text-size": {
|
||||
"stops": [
|
||||
[
|
||||
9,
|
||||
10
|
||||
],
|
||||
[
|
||||
15,
|
||||
11
|
||||
],
|
||||
[
|
||||
17,
|
||||
12
|
||||
]
|
||||
]
|
||||
},
|
||||
"visibility": "visible"
|
||||
},
|
||||
"paint": {
|
||||
"text-color": "hsl(12, 77.6%, 21.0%)"
|
||||
},
|
||||
"filter": [
|
||||
"all",
|
||||
[
|
||||
"==",
|
||||
"$type",
|
||||
"LineString"
|
||||
],
|
||||
[
|
||||
"==",
|
||||
"class",
|
||||
"trunk"
|
||||
],
|
||||
[
|
||||
"has",
|
||||
"ref"
|
||||
]
|
||||
],
|
||||
"order": 231
|
||||
},
|
||||
{
|
||||
"id": "Highway shield",
|
||||
"type": "symbol",
|
||||
@ -448,7 +527,7 @@
|
||||
"ref"
|
||||
]
|
||||
],
|
||||
"order": 231
|
||||
"order": 232
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
84
style/icons/road_trunk.svg
Normal file
84
style/icons/road_trunk.svg
Normal file
@ -0,0 +1,84 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
version="1.1"
|
||||
id="svg5088"
|
||||
inkscape:version="1.4.2 (f4327f4, 2025-05-13)"
|
||||
sodipodi:docname="road_trunk.svg"
|
||||
x="0px"
|
||||
y="0px"
|
||||
width="42.000004"
|
||||
height="16.150852"
|
||||
viewBox="0 0 42.000004 16.150853"
|
||||
enable-background="new 0 0 40 14.4"
|
||||
xml:space="preserve"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"><metadata
|
||||
id="metadata15261"><rdf:RDF><cc:Work
|
||||
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><defs
|
||||
id="defs15259" />
|
||||
<sodipodi:namedview
|
||||
id="namedview5957"
|
||||
guidetolerance="10"
|
||||
inkscape:window-maximized="1"
|
||||
bordercolor="#666666"
|
||||
inkscape:window-height="1009"
|
||||
inkscape:cx="15.782449"
|
||||
objecttolerance="10"
|
||||
inkscape:window-y="-8"
|
||||
inkscape:cy="11.032139"
|
||||
fit-margin-top="0"
|
||||
showgrid="false"
|
||||
inkscape:current-layer="path15254"
|
||||
inkscape:zoom="19.261903"
|
||||
inkscape:pageopacity="0"
|
||||
borderopacity="1"
|
||||
inkscape:window-x="-8"
|
||||
inkscape:window-width="1920"
|
||||
pagecolor="#ffffff"
|
||||
gridtolerance="10"
|
||||
inkscape:pageshadow="2"
|
||||
fit-margin-left="0"
|
||||
fit-margin-bottom="0"
|
||||
fit-margin-right="0"
|
||||
inkscape:document-rotation="0"
|
||||
inkscape:showpageshadow="2"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:deskcolor="#d1d1d1">
|
||||
</sodipodi:namedview>
|
||||
<g
|
||||
id="g15845"
|
||||
style="stroke:#d9c1a1;stroke-width:1.66667;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;fill:#f2e3cf;fill-opacity:1"
|
||||
transform="matrix(1.008,0,0,1.008,0.84000166,0.79564966)"><g
|
||||
id="g15256"
|
||||
style="fill:#f2e3cf;fill-opacity:1;stroke:#d9c1a1;stroke-width:1.66667;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1">
|
||||
<g
|
||||
id="path15252"
|
||||
style="display:inline;opacity:1"
|
||||
inkscape:label="fill"
|
||||
inkscape:highlight-color="#f4d7ce"><path
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;font-feature-settings:normal;font-variation-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;shape-margin:0;inline-size:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#f4d7ce;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.66667;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate;stop-color:#000000;stop-opacity:1"
|
||||
d="m 39.625,11.304 c 0,1.504 -1.217,2.721 -2.721,2.721 H 3.096 c -1.502,0 -2.721,-1.217 -2.721,-2.721 V 3.14 c 0,-1.502 1.218,-2.721 2.721,-2.721 h 33.809 c 1.504,0 2.721,1.218 2.721,2.721 v 8.164 z"
|
||||
id="path35476" /><path
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;font-feature-settings:normal;font-variation-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;shape-margin:0;inline-size:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#f4d7ce;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.66667;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate;stop-color:#000000;stop-opacity:1"
|
||||
d="m 3.0957031,-0.4140625 c -1.9535812,0 -3.55468748,1.6021762 -3.55468748,3.5546875 v 8.164063 c 0,1.954281 1.60254608,3.552734 3.55468748,3.552734 H 36.904297 c 1.658836,0 2.998762,-1.17636 3.384765,-2.720703 h 0.169922 V 11.304688 3.140625 c 0,-1.9528419 -1.600775,-3.5546875 -3.554687,-3.5546875 z m 0,1.6660156 H 36.904297 c 1.054088,0 1.888672,0.8355138 1.888672,1.8886719 v 7.330078 h -0.002 v 0.833985 c 0,1.054457 -0.832262,1.886718 -1.886719,1.886718 H 3.0957031 c -1.0518585,0 -1.8867187,-0.833 -1.8867187,-1.886718 V 3.140625 c 0,-1.0514887 0.8342999,-1.8886719 1.8867187,-1.8886719 z"
|
||||
id="path35478"
|
||||
inkscape:label="path35478" /></g>
|
||||
<g
|
||||
id="path15254"
|
||||
style="display:inline;opacity:1"
|
||||
inkscape:label="outline"
|
||||
inkscape:highlight-color="#d9a999"><path
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;font-feature-settings:normal;font-variation-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;shape-margin:0;inline-size:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#d9a999;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.66667;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate;stop-color:#000000;stop-opacity:1"
|
||||
d="M 36.904,14.4 H 3.096 C 1.389,14.4 0,13.011 0,11.304 V 3.14 C 0,1.433 1.389,0.044 3.096,0.044 H 36.905 C 38.611,0.045 40,1.433 40,3.14 v 8.164 C 40,13.011 38.611,14.4 36.904,14.4 Z M 3.096,0.795 C 1.803,0.795 0.75,1.847 0.75,3.141 v 8.164 c 0,1.293 1.052,2.346 2.346,2.346 h 33.809 c 1.293,0 2.346,-1.053 2.346,-2.346 V 3.14 c 0,-1.293 -1.053,-2.346 -2.346,-2.346 H 3.096 Z"
|
||||
id="path35482" /><path
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;font-feature-settings:normal;font-variation-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;shape-margin:0;inline-size:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#d9a999;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate;stop-color:#000000;stop-opacity:1"
|
||||
d="m 3.0957031,-0.7890625 c -2.15906101,0 -3.92968748,1.77062646 -3.92968748,3.9296875 v 8.164063 c 0,2.159061 1.77062647,3.927734 3.92968748,3.927734 H 36.904297 c 2.159061,0 3.929687,-1.768673 3.929687,-3.927734 V 3.140625 c 0,-2.15906104 -1.769999,-3.92842271 -3.927734,-3.9296875 h -0.002 z M 3.9296875,1.6269531 H 36.904297 c 0.840563,0 1.513672,0.673109 1.513672,1.5136719 v 8.164063 c 0,0.840562 -0.673109,1.513671 -1.513672,1.513671 H 3.0957031 c -0.8419125,0 -1.5117187,-0.672679 -1.5117187,-1.513671 V 3.140625 c 0,-0.8419126 0.6707262,-1.5117187 1.5117187,-1.5117188 h 0.8339844 z"
|
||||
id="path35484" /></g>
|
||||
</g></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 9.4 KiB |
Loading…
x
Reference in New Issue
Block a user