Pressed Penny theme

This commit is contained in:
Robin van der Linde 2023-07-01 01:09:46 +02:00
parent 3df5727f40
commit c5d5f27617
No known key found for this signature in database
GPG key ID: 53956B3252478F0D
4 changed files with 285 additions and 0 deletions

View file

@ -0,0 +1,192 @@
{
"id": "elongated_coin",
"title": {
"en": "Penny Presses"
},
"description": {
"en": "Find penny presses to create your own elongated coins."
},
"hideFromOverview": true,
"icon": "./assets/themes/elongated_coin/penny.svg",
"layers": [
{
"id": "elongated_coin",
"name": {
"en": "Penny Presses"
},
"description": {
"en": "Layer showing penny presses."
},
"source": {
"osmTags": {
"and": [
"amenity=vending_machine",
"vending=elongated_coin"
]
}
},
"title": {
"render": {
"en": "Penny Press"
}
},
"tagRenderings": [
"images",
"opening_hours_24_7",
{
"id": "designs",
"question": {
"en": "How many designs are available?"
},
"freeform": {
"key": "coin:design_count",
"type": "pnat",
"placeholder": {
"en": "Number of designs (e.g. 5)"
}
},
"render": {
"en": "This penny press has {coin:design_count} designs available."
},
"mappings": [
{
"if": "coin:design_count=1",
"then": {
"en": "This penny press has one design available."
}
},
{
"if": "coin:design_count=2",
"then": {
"en": "This penny press has two designs available."
}
},
{
"if": "coin:design_count=3",
"then": {
"en": "This penny press has three designs available."
}
},
{
"if": "coin:design_count=4",
"then": {
"en": "This penny press has four designs available."
}
}
]
},
{
"id": "coin",
"question": {
"en": "What coin is used for pressing?"
},
"mappings": [
{
"if": "coin:type=2cent",
"then": {
"en": "This penny press uses a 2 cent coin for pressing."
}
},
{
"if": "coin:type=5cent",
"then": {
"en": "This penny press uses a 5 cent coin for pressing."
}
},
{
"if": "coin:type=10cent",
"then": {
"en": "This penny press uses a 10 cent coin for pressing."
}
}
]
},
"website",
{
"id": "charge",
"question": {
"en": "How much does it cost to press a penny?"
},
"freeform": {
"key": "charge",
"placeholder": {
"en": "Cost (e.g. 0.50 EUR)"
}
},
"mappings": [
{
"if": "charge=1 EUR",
"then": {
"en": "It costs 1 euro to press a penny."
}
},
{
"if": "charge=2 EUR",
"then": {
"en": "It costs 2 euros to press a penny."
}
}
],
"render": {
"en": "It costs {charge} to press a penny."
}
},
"denominations-coins",
{
"id": "indoor",
"question": {
"en": "Is the penny press indoors?"
},
"mappings": [
{
"if": "indoor=yes",
"then": {
"en": "This penny press is located indoors."
}
},
{
"if": "indoor=no",
"then": {
"en": "This penny press is located outdoors."
}
}
]
},
"level"
],
"mapRendering": [
{
"icon": "circle:#FFFFFF00;./assets/themes/elongated_coin/penny.svg",
"location": [
"point",
"centroid"
],
"iconBadges": [
{
"if": "opening_hours~*",
"then": "icons.isOpen"
}
]
}
],
"presets": [
{
"title": {
"en": "a penny press"
},
"tags": [
"amenity=vending_machine",
"vending=elongated_coin",
"payment:coins=yes"
]
}
],
"filter": [
"open_now"
]
}
],
"startLat": 53.0565,
"startLon": 8.7492,
"startZoom": 11
}

View file

@ -0,0 +1,10 @@
[
{
"path": "penny.svg",
"license": "CC0",
"authors": [
"Robin van der Linde"
],
"sources": []
}
]

View file

@ -0,0 +1,79 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="250"
height="250"
viewBox="0 0 250 250"
fill="none"
version="1.1"
id="svg16"
sodipodi:docname="penny.svg"
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
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">
<defs
id="defs20" />
<sodipodi:namedview
id="namedview18"
pagecolor="#505050"
bordercolor="#eeeeee"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#505050"
showgrid="false"
inkscape:zoom="1.5733333"
inkscape:cx="125.52966"
inkscape:cy="75"
inkscape:window-width="1920"
inkscape:window-height="1011"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg16" />
<g
id="g310"
transform="translate(0,50)">
<path
d="m 246,75 c 0,18.7536 -12.69,36.415 -34.67,49.603 C 189.43,137.743 158.917,146 125,146 91.0825,146 60.5697,137.743 38.6696,124.603 16.69,111.415 4,93.7536 4,75 4,56.2464 16.69,38.5848 38.6696,25.397 60.5697,12.2569 91.0825,4 125,4 158.917,4 189.43,12.2569 211.33,25.397 233.31,38.5848 246,56.2464 246,75 Z"
fill="#ff8c4e"
stroke="#c84600"
stroke-width="8"
id="path2" />
<rect
x="75"
y="42"
width="20"
height="30"
fill="#c84600"
id="rect4" />
<rect
x="155"
y="42"
width="20"
height="30"
fill="#c84600"
id="rect6" />
<path
d="m 85,27 8.6603,15 H 76.3397 Z"
fill="#c84600"
id="path8" />
<path
d="m 165,27 8.66,15 h -17.32 z"
fill="#c84600"
id="path10" />
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="m 75,72 h 100 v 50 h -40 v -20 c 0,-5.5229 -4.477,-10 -10,-10 -5.523,0 -10,4.4771 -10,10 v 20 H 75 Z"
fill="#c84600"
id="path12" />
<path
d="m 232.439,62.0698 c 1.437,3.5689 2.292,7.2569 2.507,11.0328 l -0.499,0.0284 c 0.035,0.6207 0.053,1.2437 0.053,1.869 0,0.6253 -0.018,1.2483 -0.053,1.8689 l 0.499,0.0285 c -0.215,3.7758 -1.07,7.4638 -2.507,11.0328 l -0.464,-0.1868 c -0.46,1.1441 -0.982,2.2765 -1.563,3.396 l 0.444,0.2302 c -1.677,3.2336 -3.839,6.3562 -6.44,9.3434 l -0.377,-0.329 c -0.811,0.931 -1.665,1.849 -2.561,2.753 l 0.355,0.352 c -2.555,2.578 -5.445,5.043 -8.639,7.376 l -0.295,-0.404 c -1,0.73 -2.03,1.448 -3.09,2.152 l 0.277,0.417 c -3.04,2.021 -6.317,3.932 -9.808,5.72 l -0.228,-0.445 c -1.107,0.567 -2.236,1.121 -3.386,1.663 l 0.213,0.453 c -3.332,1.57 -6.838,3.033 -10.501,4.378 l -0.173,-0.469 c -1.169,0.43 -2.355,0.848 -3.556,1.253 l 0.16,0.474 c -3.507,1.184 -7.145,2.263 -10.899,3.23 l -0.125,-0.484 c -1.212,0.312 -2.436,0.612 -3.672,0.9 l 0.113,0.487 c -3.62,0.845 -7.34,1.587 -11.147,2.219 l -0.082,-0.493 c -1.235,0.205 -2.48,0.398 -3.734,0.58 l 0.072,0.495 c -3.693,0.535 -7.462,0.969 -11.297,1.294 l -0.043,-0.498 c -1.247,0.105 -2.501,0.2 -3.762,0.282 l 0.032,0.499 c -3.732,0.245 -7.522,0.388 -11.361,0.423 l -0.004,-0.5 c -0.631,0.006 -1.264,0.009 -1.898,0.009 -0.634,0 -1.267,-0.003 -1.898,-0.009 l -0.004,0.5 c -3.839,-0.035 -7.629,-0.178 -11.361,-0.423 l 0.032,-0.499 c -1.261,-0.082 -2.515,-0.177 -3.762,-0.282 l -0.043,0.498 c -3.835,-0.325 -7.604,-0.759 -11.2971,-1.294 l 0.0717,-0.495 c -1.2535,-0.182 -2.4981,-0.375 -3.7335,-0.58 l -0.0819,0.493 c -3.8076,-0.632 -7.5276,-1.374 -11.1477,-2.219 l 0.1136,-0.487 c -1.2359,-0.288 -2.4602,-0.588 -3.6722,-0.9 l -0.1247,0.484 c -3.7543,-0.967 -7.3922,-2.046 -10.899,-3.23 l 0.1599,-0.474 c -1.2012,-0.405 -2.3869,-0.823 -3.5565,-1.253 l -0.1724,0.469 c -3.6631,-1.345 -7.1696,-2.808 -10.5015,-4.378 l 0.2132,-0.453 c -1.1498,-0.542 -2.2786,-1.096 -3.3856,-1.663 l -0.2279,0.445 c -3.4913,-1.788 -6.7685,-3.699 -9.8085,-5.72 l 0.2769,-0.417 c -1.0594,-0.704 -2.0895,-1.421 -3.0894,-2.152 l -0.295,0.404 c -3.1944,-2.333 -6.0849,-4.798 -8.6395,-7.376 l 0.3552,-0.352 c -0.8961,-0.904 -1.7502,-1.822 -2.5609,-2.753 l -0.377,0.329 c -2.6011,-2.9872 -4.7631,-6.1098 -6.4404,-9.3434 l 0.4438,-0.2302 c -0.5807,-1.1195 -1.1023,-2.2518 -1.5631,-3.396 l -0.4638,0.1868 C 16.1236,84.3613 15.269,80.6733 15.054,76.8974 L 15.5531,76.869 C 15.5178,76.2483 15.5,75.6253 15.5,75 c 0,-0.6253 0.0178,-1.2483 0.0531,-1.8689 L 15.054,73.1026 c 0.215,-3.7758 1.0696,-7.4638 2.5067,-11.0328 l 0.4638,0.1868 c 0.4607,-1.1441 0.9824,-2.2765 1.5631,-3.396 l -0.4439,-0.2302 c 1.6774,-3.2336 3.8394,-6.3562 6.4405,-9.343 l 0.377,0.3284 c 0.8107,-0.9309 1.6648,-1.8489 2.5609,-2.7532 l -0.3552,-0.352 c 2.5546,-2.5779 5.4451,-5.0422 8.6395,-7.3755 l 0.2949,0.4038 c 1,-0.7304 2.0301,-1.448 3.0894,-2.1524 L 39.9139,36.9701 C 42.9538,34.949 46.2311,33.038 49.7224,31.25 l 0.2279,0.4451 c 1.107,-0.5669 2.2358,-1.1215 3.3856,-1.6633 l -0.2132,-0.4523 c 3.3319,-1.5702 6.8384,-3.0331 10.5014,-4.3789 l 0.1725,0.4694 c 1.1696,-0.4298 2.3553,-0.8475 3.5565,-1.253 l -0.16,-0.4738 C 70.7,22.7594 74.3379,21.6801 78.0922,20.7133 l 0.1247,0.4842 c 1.212,-0.3122 2.4362,-0.6126 3.6722,-0.9009 l -0.1136,-0.487 c 3.6201,-0.8446 7.3402,-1.5864 11.1477,-2.2185 l 0.0819,0.4932 c 1.2354,-0.2051 2.48,-0.3986 3.7335,-0.5803 l -0.0717,-0.4949 c 3.6931,-0.5354 7.4621,-0.9687 11.2971,-1.2939 l 0.043,0.4982 c 1.247,-0.1058 2.501,-0.2001 3.762,-0.2828 l -0.032,-0.4989 c 3.732,-0.2447 7.522,-0.3874 11.361,-0.4229 l 0.004,0.5 C 123.733,15.5029 124.366,15.5 125,15.5 c 0.634,0 1.267,0.0029 1.898,0.0088 l 0.004,-0.5 c 3.839,0.0355 7.629,0.1782 11.361,0.4229 l -0.032,0.4989 c 1.261,0.0827 2.515,0.177 3.762,0.2828 l 0.043,-0.4982 c 3.835,0.3252 7.604,0.7585 11.297,1.2939 l -0.072,0.4949 c 1.254,0.1817 2.499,0.3752 3.734,0.5803 l 0.082,-0.4932 c 3.807,0.6321 7.527,1.3739 11.147,2.2185 l -0.113,0.487 c 1.236,0.2883 2.46,0.5887 3.672,0.9009 l 0.125,-0.4842 c 3.754,0.9668 7.392,2.0461 10.899,3.2299 l -0.16,0.4738 c 1.201,0.4055 2.387,0.8232 3.556,1.2529 l 0.173,-0.4693 c 3.663,1.3458 7.169,2.8087 10.501,4.3789 l -0.213,0.4523 c 1.15,0.5418 2.279,1.0964 3.386,1.6633 l 0.228,-0.4451 c 3.491,1.788 6.768,3.699 9.808,5.7201 l -0.277,0.4164 c 1.06,0.7044 2.09,1.422 3.09,2.1524 l 0.295,-0.4038 c 3.194,2.3333 6.084,4.7976 8.639,7.3755 l -0.355,0.352 c 0.896,0.9043 1.75,1.8223 2.561,2.7532 l 0.377,-0.3284 c 2.601,2.9868 4.763,6.1094 6.44,9.343 l -0.444,0.2302 c 0.581,1.1195 1.103,2.2518 1.563,3.396 z"
stroke="#c84600"
stroke-dasharray="4, 12"
id="path14" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 6.5 KiB

View file

@ -250,6 +250,10 @@
"if": "theme=education",
"then": "./assets/layers/school/college.svg"
},
{
"if": "theme=elongated_coin",
"then": "./assets/themes/elongated_coin/penny.svg"
},
{
"if": "theme=etymology",
"then": "./assets/layers/etymology/logo.svg"