Feat: new insect hotels theme

This commit is contained in:
Robin van der Linde 2024-12-02 00:37:56 +01:00
parent 9239376851
commit 07a53e9373
Signed by: Robin-van-der-Linde
GPG key ID: 53956B3252478F0D
11 changed files with 374 additions and 4 deletions

View file

@ -0,0 +1,75 @@
{
"id": "beehive",
"name": {
"en": "Beehives"
},
"description": {
"en": "Layer showing beehives"
},
"source": {
"osmTags": "man_made=beehive"
},
"minzoom": 11,
"title": {
"en": "Beehive"
},
"presets": [
{
"title": {
"en": "a beehive"
},
"tags": [
"man_made=beehive"
]
}
],
"tagRenderings": [
"images",
{
"id": "capacity",
"question": {
"en": "How many beehives are there?"
},
"freeform": {
"key": "capacity",
"type": "pnat",
"placeholder": {
"en": "Number of beehives"
}
},
"render": {
"en": "There are {capacity} beehives"
},
"mappings": [
{
"if": "capacity=1",
"then": {
"en": "There is 1 beehive"
}
}
]
}
],
"pointRendering": [
{
"location": [
"point",
"centroid"
],
"marker": [
{
"icon": "circle",
"color": "white"
},
{
"icon": "./assets/layers/beehive/beehive.svg"
}
]
}
],
"allowMove": {
"enableImproveAccuracy": true,
"enableRelocation": true
},
"deletion": true
}

View file

@ -0,0 +1 @@
<svg style="height: 512px; width: 512px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M0 0h512v512H0z" fill="#ffffff" fill-opacity="0"></path><g class="" style="" transform="translate(0,0)"><path d="M256 21.332L75.168 136.406l-7.594 4.832 9.664 15.188 7.594-4.832L256 42.668l171.168 108.926 7.594 4.832 9.664-15.188-7.594-4.832L256 21.332zm-144.908 5.74l-8.485 13.567 15.26 9.544 8.487-13.565-15.262-9.548zM72.212 44.02L58.963 56.2l10.825 11.78L83.04 55.8 72.212 44.02zm305.13 10.818l-17.856 2.277 2.024 15.87 17.855-2.276-2.023-15.872zM256 58.668l-148.127 94.264L99.34 183h312.994l-8.97-30.553L256 58.667zm0 43.846l57 19V169H199v-47.486l57-19zm0 18.972l-39 13V151h78v-16.514l-39-13zm-84.826 18.72l7.363 14.206-15.98 8.283-7.364-14.205 15.98-8.283zm266.724 45.745l-7.002 16.585 14.74 6.223 7.003-16.582-14.742-6.225zM120.258 201l-17.07 69h312.994l-17.137-69H120.258zM151 231h210v18H151v-18zm-93.36 40.188l-17.58 3.863 3.434 15.628 17.58-3.864-3.433-15.627zM122.187 288l-20.922 78H417.79l-20.997-78H122.186zm203.714 9.682l14.817 10.222-9.088 13.17-14.816-10.224 9.086-13.168zM151 327h210v18H151v-18zm302.44 18.64l-9.086 13.17 14.814 10.223 9.088-13.17-14.817-10.222zM122.185 384l-20.922 78H417.79l-20.997-78H122.186zm103.683 3.213l8.49 13.56-15.255 9.553-8.492-13.558 15.256-9.555zM77.65 398.646l-6.744 14.51 16.323 7.588 6.743-14.508-16.323-7.59zm303.14.815l7.312 14.23-16.012 8.228-7.31-14.232 16.01-8.225zM151 423h210v18H151v-18zm-23 57v16h48v-16h-48zm208 0v16h48v-16h-48z" fill="#000000" fill-opacity="1"></path></g></svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

View file

@ -0,0 +1,2 @@
SPDX-FileCopyrightText: Delapouite
SPDX-License-Identifier: CC BY 3.0

View file

@ -0,0 +1,12 @@
[
{
"path": "beehive.svg",
"license": "CC BY 3.0",
"authors": [
"Delapouite"
],
"sources": [
"https://game-icons.net/1x1/delapouite/beehive.html"
]
}
]

View file

@ -0,0 +1,51 @@
{
"id": "insect_hotel",
"name": {
"en": "Insect Hotels",
"nl": "Insectenhotels"
},
"description": {
"en": "Layer showing insect hotels",
"nl": "Laag met insectenhotels"
},
"source": {
"osmTags": "man_made=insect_hotel"
},
"minzoom": 11,
"title": {
"en": "Insect Hotel",
"nl": "Insectenhotel"
},
"presets": [
{
"title": {
"en": "an insect hotel",
"nl": "een insectenhotel"
},
"tags": [
"man_made=insect_hotel"
]
}
],
"tagRenderings": [
"images"
],
"pointRendering": [
{
"location": [
"point",
"centroid"
],
"marker": [
{
"icon": "./assets/layers/insect_hotel/insect_hotel.svg"
}
]
}
],
"allowMove": {
"enableImproveAccuracy": true,
"enableRelocation": true
},
"deletion": true
}

View file

@ -0,0 +1,187 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="541"
height="541"
viewBox="0 0 541 541"
fill="none"
version="1.1"
id="svg17"
sodipodi:docname="insect_hotel.svg"
inkscape:version="1.4 (e7c3feb100, 2024-10-09)"
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="defs17" />
<sodipodi:namedview
id="namedview17"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:zoom="3.3974122"
inkscape:cx="212.36752"
inkscape:cy="270.5"
inkscape:window-width="3840"
inkscape:window-height="2091"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg17" />
<mask
id="path-4-inside-1_1_45"
fill="#ffffff">
<path
d="M 47,241 H 377 V 541 H 47 Z"
id="path3" />
</mask>
<g
id="g17"
transform="translate(58.367973)">
<rect
x="-144.99997"
y="154.99998"
width="290"
height="290"
transform="rotate(-45)"
fill="#ded4c3"
stroke="#311710"
stroke-width="10"
id="rect1" />
<path
d="M 212.071,77.4264 247.426,42.0711 417.132,211.777 381.777,247.132 Z"
stroke="#311710"
stroke-width="10"
id="path1" />
<path
d="M 176.777,42.0711 212.132,77.4264 42.4264,247.132 7.07106,211.777 Z"
stroke="#311710"
stroke-width="10"
id="path2" />
<path
d="M 47,241 H 377 V 541 H 47 Z"
fill="#ded4c3"
id="path4" />
<path
d="m 377,541 v 10 h 10 V 541 Z M 47,541 H 37 v 10 H 47 Z M 367,241 v 300 h 20 V 241 Z m 10,290 H 47 v 20 H 377 Z M 57,541 V 241 H 37 v 300 z"
fill="#311710"
mask="url(#path-4-inside-1_1_45)"
id="path5" />
<line
x1="87.003098"
y1="534.00299"
x2="87.003098"
y2="204.00301"
stroke="#311710"
stroke-width="10"
id="line5" />
<line
x1="338"
y1="204"
x2="338"
y2="534"
stroke="#311710"
stroke-width="10"
id="line6" />
<circle
cx="212"
cy="199"
r="50"
fill="#d9d9d9"
stroke="#311710"
stroke-width="10"
id="circle6" />
<circle
cx="143"
cy="279"
r="30"
fill="#d9d9d9"
stroke="#311710"
stroke-width="10"
id="circle7" />
<circle
cx="143"
cy="431"
r="30"
fill="#d9d9d9"
stroke="#311710"
stroke-width="10"
id="circle8" />
<circle
cx="143"
cy="355"
r="30"
fill="#d9d9d9"
stroke="#311710"
stroke-width="10"
id="circle9" />
<circle
cx="212"
cy="304"
r="30"
fill="#d9d9d9"
stroke="#311710"
stroke-width="10"
id="circle10" />
<circle
cx="212"
cy="456"
r="30"
fill="#d9d9d9"
stroke="#311710"
stroke-width="10"
id="circle11" />
<circle
cx="212"
cy="380"
r="30"
fill="#d9d9d9"
stroke="#311710"
stroke-width="10"
id="circle12" />
<circle
cx="280"
cy="279"
r="30"
fill="#d9d9d9"
stroke="#311710"
stroke-width="10"
id="circle13" />
<circle
cx="280"
cy="431"
r="30"
fill="#d9d9d9"
stroke="#311710"
stroke-width="10"
id="circle14" />
<circle
cx="280"
cy="355"
r="30"
fill="#d9d9d9"
stroke="#311710"
stroke-width="10"
id="circle15" />
<circle
cx="143"
cy="499"
r="20"
fill="#d9d9d9"
stroke="#311710"
stroke-width="10"
id="circle16" />
<circle
cx="280"
cy="499"
r="20"
fill="#d9d9d9"
stroke="#311710"
stroke-width="10"
id="circle17" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.2 KiB

View file

@ -0,0 +1,2 @@
SPDX-FileCopyrightText: Robin van der Linde
SPDX-License-Identifier: CC0-1.0

View file

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

View file

@ -0,0 +1,16 @@
{
"id": "insects",
"title": {
"en": "Insect Hotels",
"nl": "Insectenhotels"
},
"description": {
"en": "Insect hotels provide shelter for insects.",
"nl": "Insectenhotels bieden onderdak aan insecten."
},
"icon": "./assets/layers/insect_hotel/insect_hotel.svg",
"layers": [
"insect_hotel",
"beehive"
]
}

View file

@ -38,7 +38,8 @@
"de": "Changeset-Zentren", "de": "Changeset-Zentren",
"es": "Centros de conjuntos de cambios", "es": "Centros de conjuntos de cambios",
"fr": "Centre du groupe de modifications", "fr": "Centre du groupe de modifications",
"nl": "Changeset centra" "nl": "Changeset centra",
"cs": "Changeset centra"
}, },
"minzoom": 0, "minzoom": 0,
"source": { "source": {
@ -110,7 +111,8 @@
"en": "Change with theme <a href='https://mapcomplete.org/{theme}'>{theme}</a>", "en": "Change with theme <a href='https://mapcomplete.org/{theme}'>{theme}</a>",
"de": "Änderung mit Thema <a href='https://mapcomplete.org/{theme}'>{theme}</a>", "de": "Änderung mit Thema <a href='https://mapcomplete.org/{theme}'>{theme}</a>",
"es": "Cambio con el tema <a href='https://mapcomplete.org/{theme}'>{theme}</a>", "es": "Cambio con el tema <a href='https://mapcomplete.org/{theme}'>{theme}</a>",
"nl": "Verander met thema <a href='https://mapcomplete.org/{theme}'>{theme}</a>" "nl": "Verander met thema <a href='https://mapcomplete.org/{theme}'>{theme}</a>",
"cs": "Změna pomocí tématu <a href='https://mapcomplete.org/{theme}'>{theme}</a>"
} }
}, },
{ {
@ -375,6 +377,10 @@
"if": "theme=indoors", "if": "theme=indoors",
"then": "./assets/layers/entrance/entrance.svg" "then": "./assets/layers/entrance/entrance.svg"
}, },
{
"if": "theme=insects",
"then": "./assets/layers/insect_hotel/insect_hotel.svg"
},
{ {
"if": "theme=items_with_image", "if": "theme=items_with_image",
"then": "./assets/layers/item_with_image/camera.svg" "then": "./assets/layers/item_with_image/camera.svg"

View file

@ -63,11 +63,19 @@
"guidepost", "guidepost",
"shelter", "shelter",
"bbq", "bbq",
"firepit" "firepit",
"insect_hotel"
], ],
"override": { "override": {
"minzoom": 16 "minzoom": 16
} }
},
{
"builtin": "tree_node",
"override": {
"minzoom": 18,
"shownByDefault": false
}
} }
], ],
"widenFactor": 2 "widenFactor": 2