forked from MapComplete/MapComplete
Some refactoring, more work on the custom theme generator
This commit is contained in:
parent
c4b5f180a6
commit
146552e62c
104 changed files with 382 additions and 1590 deletions
67
assets/themes/bookcases/Bookcases.json
Normal file
67
assets/themes/bookcases/Bookcases.json
Normal file
|
@ -0,0 +1,67 @@
|
|||
{
|
||||
"layers": [
|
||||
{
|
||||
"id": "bookcases",
|
||||
"title": {
|
||||
"render": "Bookcase"
|
||||
},
|
||||
"icon": "./assets/themes/bookcases/bookcase.svg",
|
||||
"color": "#000000",
|
||||
"description": "A public bookcase",
|
||||
"minzoom": "12",
|
||||
"overpassTags": "amenity=public_bookcase",
|
||||
"presets": [
|
||||
{
|
||||
"title": "Bookcase",
|
||||
"description": "A bookcase is a small cabinet where everyone can take or leave a book",
|
||||
"icon": "./assets/bookcase.svg",
|
||||
"tags": "amenity=public_bookcase"
|
||||
}
|
||||
],
|
||||
"tagRenderings": [
|
||||
{
|
||||
"key": "brand",
|
||||
"addExtraTags": "",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "brand=Little Free Library",
|
||||
"then": "Part of the network Little Free Library"
|
||||
}
|
||||
],
|
||||
"question": "Is this bookcase part of a network?",
|
||||
"render": "Part of {brand}",
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"key": "",
|
||||
"addExtraTags": "",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "books=children",
|
||||
"then": "Mainly books for kids"
|
||||
},
|
||||
{
|
||||
"if": "books=adult",
|
||||
"then": "Mainly books for adults"
|
||||
},
|
||||
{
|
||||
"if": "books=adult;children",
|
||||
"then": "Books for both adults and children"
|
||||
}
|
||||
],
|
||||
"question": "Which books can be found here?",
|
||||
"render": "",
|
||||
"type": "text"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"icon": "./assets/bookcase.svg",
|
||||
"name": "bookcases",
|
||||
"title": "Bookcases",
|
||||
"description": "Welcome to open Bookcase Map",
|
||||
"language": "en",
|
||||
"startLat": "0",
|
||||
"startLon": "0",
|
||||
"startZoom": "12"
|
||||
}
|
73
assets/themes/bookcases/bookcase.svg
Normal file
73
assets/themes/bookcases/bookcase.svg
Normal file
|
@ -0,0 +1,73 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/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"
|
||||
viewBox="0 0 64 64"
|
||||
height="64"
|
||||
width="64"
|
||||
id="svg109"
|
||||
version="1.1"
|
||||
sodipodi:docname="Public_bookcase-14.svg"
|
||||
inkscape:version="0.92.4 (5da689c313, 2019-01-14)">
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1001"
|
||||
id="namedview6"
|
||||
showgrid="false"
|
||||
inkscape:zoom="8.4285714"
|
||||
inkscape:cx="21.124627"
|
||||
inkscape:cy="25.918314"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="layer2" />
|
||||
<metadata
|
||||
id="metadata115">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs
|
||||
id="defs113" />
|
||||
<g
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
inkscape:label="background">
|
||||
<ellipse
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.49738699;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
id="path819"
|
||||
cx="31.967007"
|
||||
cy="32.109043"
|
||||
rx="32.00938"
|
||||
ry="31.946436" />
|
||||
</g>
|
||||
<g
|
||||
inkscape:groupmode="layer"
|
||||
id="layer2"
|
||||
inkscape:label="icon">
|
||||
<path
|
||||
id="path4176"
|
||||
d="M 32.123859,10.440678 8.6779661,17.139504 v 3.349413 L 32.123859,13.79009 55.569753,20.488917 v -3.349413 z m -11.59865,11.964995 c -0.522431,0.02077 -1.041409,0.124297 -1.556954,0.320538 v 20.835706 c 0,0 8.38755,-0.322013 10.525792,7.817477 V 29.497007 c -1.631616,-3.400613 -5.311804,-7.237191 -8.968838,-7.091334 z m 8.968838,28.973731 C 24.066203,47.228261 16.331902,46.172115 16.331902,46.172115 V 26.376556 l -2.629816,-1.046692 v 23.445893 l 15.791961,5.207293 h 5.259628 L 50.545632,48.775757 V 25.329864 l -2.629812,1.046692 v 20.835709 l -13.162145,4.167139 c -1.754454,-0.663351 -3.795938,-0.545319 -5.259628,0 z M 45.279464,22.726221 C 40.03579,22.448689 33.986193,25.566152 30.808953,28.247518 v 22.045945 c 2.933724,-2.408355 8.190227,-5.573982 14.470511,-6.208191 z"
|
||||
style="fill:#734a08;fill-opacity:1;stroke:none;stroke-width:3.34941339"
|
||||
inkscape:connector-curvature="0" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 2.8 KiB |
Loading…
Add table
Add a link
Reference in a new issue