Move dogpark and veterinarian into separate layers, some renamings and rewordings

This commit is contained in:
pietervdvn 2022-04-30 02:31:19 +02:00
parent 197d1db599
commit 066fa1056b
10 changed files with 412 additions and 412 deletions

View file

@ -0,0 +1,144 @@
{
"id": "dogpark",
"source": {
"osmTags": {
"or": [
"leisure=dog_park",
{
"and": [
"leisure=park",
"dog=unleashed"
]
}
]
}
},
"minzoom": 10,
"presets": [
{
"title": {
"en": "a dog park",
"da": "en hundeskov"
},
"tags": [
"leisure=dog_park"
],
"description": {
"en": "A place for dogs, where they can run unleashed",
"da": "En hundeskov eller hundegård beregnet til hunde, hvor de kan løbe uden snor"
}
}
],
"name": {
"en": "dog parks",
"da": "hundeskove"
},
"title": {
"render": {
"en": "dog park",
"da": "hundeskov"
},
"mappings": [
{
"if": "name~*",
"then": {
"*": "{name}"
}
}
]
},
"mapRendering": [
{
"location": [
"point",
"centroid"
],
"icon": "./assets/themes/dog/dog-park.svg",
"iconSize": "40,40,center",
"label": {
"mappings": [
{
"if": "name~*",
"then": "<div style='background: white; padding: 0.25em; border-radius:0.5em'>{name}</div>"
}
]
}
},
{
"color": "#ff0",
"width": 5
}
],
"tagRenderings": [
{
"id": "dogpark-fenced",
"mappings": [
{
"if": "barrier=fence",
"then": {
"en": "This dogpark is fenced all around",
"da": "Denne hundskov er indhegnet"
}
},
{
"if": "barrier=no",
"then": {
"en": "This dogpark is not fenced all around",
"da": "Denne hundskov er ikke indhegnet"
}
}
],
"question": {
"en": "It this dog park fenced in?",
"da": "Er denne hundeskov indhegnet?"
}
},
{
"id": "smalldogs",
"mappings": [
{
"if": "small_dog=separate",
"then": {
"en": "Have separate area for puppies and small dogs",
"da": "Har en indhegning til hvalpe og sm&aring; hunde"
}
},
{
"if": "small_dog=shared",
"then": {
"en": "Does <strong>not</strong> have a separate area for puppies and small dogs",
"da": "Har <strong>ikke</strong> en indhegning til hvalpe og sm&aring; hunde"
}
}
],
"question": {
"en": "Does this dog park have a separate fenced in area for small dogs and puppies?",
"da": "Har denne hundeskov et separat indhegnet omr&aring;de for sm&aring; hunde og hvalpe (hvalpeg&aring;rd)?"
}
},
{
"question": {
"en": "What is the name of this dog park?",
"da": "Hvad hedder denne hundeskov?"
},
"render": {
"en": "The name of this dog park is {name}",
"de": "Denne hundeskov hedder {name}"
},
"freeform": {
"key": "name"
},
"id": "Name"
},
{
"id": "dogarea",
"render": {
"en": "This dogpark is {_surface:ha} ha big",
"da": "Denne hundeskov er på {_surface:ha} hektar"
},
"condition": "_surface:ha!=0"
},
"reviews",
"images"
]
}

View file

@ -0,0 +1,93 @@
{
"id": "veterinary",
"source": {
"osmTags": {
"or": [
"amenity=veterinary"
]
}
},
"minzoom": 10,
"presets": [
{
"title": {
"en": "a veterianarian",
"da": "en dyrl&aelig;ge"
},
"tags": [
"amenity=veterinary",
"pet=dog"
],
"description": {
"en": "a veterianarian, that treats dogs",
"da": "En dyrl&aelig;ge, der behandler hunde"
}
}
],
"name": {
"en": "veterinary",
"da": "dyrl&aelig;ge"
},
"title": {
"render": {
"en": "Veterinary",
"da": "dyrl&aelig;ge"
},
"mappings": [
{
"if": "name~*",
"then": {
"*": "{name}"
}
}
]
},
"mapRendering": [
{
"location": [
"point",
"centroid"
],
"icon": "./assets/themes/dog/vet.svg",
"iconSize": "30,40,center",
"label": {
"mappings": [
{
"if": "name~*",
"then": "<div style='background: white; padding: 0.25em; border-radius:0.5em'>{name}</div>"
}
]
},
"iconBadges": [
{
"if": "opening_hours~*",
"then": "isOpen"
}
]
},
{
"color": "#ff0",
"width": 5
}
],
"tagRenderings": [
"website",
"reviews",
"phone",
"opening_hours",
{
"question": {
"en": "What is the name of this veterinarian?",
"da": "Hvad hedder denne dyrl&aelig;?"
},
"render": {
"en": "The name of this veterinarian is {name}",
"de": "Denne dyrl&aelig; hedder {name}"
},
"freeform": {
"key": "name"
},
"id": "vetName"
}
]
}

View file

@ -1,412 +0,0 @@
{
"id": "dog",
"maintainer": "Niels Elgaard Larsen",
"version": "1",
"title": {
"en": "dog POIs",
"da": "hundesteder"
},
"description": {
"en": "Hundsteder",
"da": "Hundsteder"
},
"icon": "./assets/themes/dog/dog-park.svg",
"startZoom": 10,
"startLat": 55,
"startLon": 12,
"layers": [
{
"id": "dogpark",
"source": {
"osmTags": {
"#": "For a description on which tags are possible, see https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md",
"or": [
"leisure=dog_park",
{
"and": [
"leisure=park",
"dog=unleashed"
]
}
]
}
},
"minzoom": 10,
"presets": [
{
"title": {
"en": "a dog park",
"da": "en hundeskov"
},
"tags": [
"leisure=dog_park"
],
"description": {
"en": "A place for dogs, where they can run unleashed",
"da": "En hundeskov eller hundeg&aring;rd beregnet til hunde, hvor de kan l&oslash;be uden snor"
}
}
],
"name": {
"en": "dog parks",
"da": "hundeskove"
},
"title": {
"render": {
"en": "dog park",
"da": "hundeskov"
},
"mappings": [
{
"if": "name~*",
"then": {
"*": "{name}"
}
}
]
},
"mapRendering": [
{
"location": [
"point",
"centroid"
],
"icon": "./assets/themes/dog/dog-park.svg",
"iconSize": "40,40,center",
"label": {
"mappings": [
{
"if": "name~*",
"then": "<div style='background: white; padding: 0.25em; border-radius:0.5em'>{name}</div>"
}
]
}
},
{
"#": "Rendering of a line",
"color": "#ff0",
"width": 5
}
],
"tagRenderings": [
{
"id": "dogpark-fenced",
"mappings": [
{
"if": "barrier=fence",
"then": {
"en": "This dogpark is fenced all around",
"da": "Denne hundskov er indhegnet"
}
},
{
"if": "barrier=no",
"then": {
"en": "This dogpark is not fenced all around",
"da": "Denne hundskov er ikke indhegnet"
}
}
],
"question": {
"en": "It this dog park fenced in?",
"da": "Er denne hundeskov indhegnet?"
}
},
{
"id": "smalldogs",
"mappings": [
{
"if": "small_dog=separate",
"then": {
"en": "Have separate area for puppies and small dogs",
"da": "Har en indhegning til hvalpe og sm&aring; hunde"
}
},
{
"if": "small_dog=shared",
"then": {
"en": "Does <strong>not</strong> have a separate area for puppies and small dogs",
"da": "Har <strong>ikke</strong> en indhegning til hvalpe og sm&aring; hunde"
}
}
],
"question": {
"en": "Does this dog park have a separate fenced in area for small dogs and puppies?",
"da": "Har denne hundeskov et separat indhegnet omr&aring;de for sm&aring; hunde og hvalpe (hvalpeg&aring;rd)?"
}
},
{
"question": {
"en": "What is the name of this dog park?",
"da": "Hvad hedder denne hundeskov?"
},
"render": {
"en": "The name of this dog park is {name}",
"de": "Denne hundeskov hedder {name}"
},
"freeform": {
"key": "name"
},
"id": "Name"
},
{
"id": "dogarea",
"render": {
"en": "This dogpark is {_surface:ha} ha big",
"da": "Denne hundeskov er på {_surface:ha} hektar"
},
"condition": "_surface:ha!=0"
},
"reviews",
"images"
]
},
{
"builtin": "food",
"override": {
"id": "dogfoodb",
"name": {
"en": "Dog friendly eateries",
"da": "Hundevenlige madsteder"
},
"mapRendering": [
{
"location": [
"point",
"centroid"
],
"icon": "./assets/themes/dog/dog-food.svg",
"iconSize": "30,30,center"
}
],
"=presets": [],
"source": {
"=osmTags": {
"and": [
{
"or": [
"amenity=restaurant",
"amenity=cafe"
]
},
{
"or": [
"dog=unleashed",
"dog=leashed",
"dog=yes"
]
}
]
}
}
}
},
{
"builtin": "shops",
"id": "dogshop",
"override": {
"id": "dogshop",
"name": {
"en": "dog-friendly shop",
"da": "hundevenlig butik"
},
"title": {
"render": {
"en": "dog-friendly shop",
"da": "hundevenlig butik"
},
"mappings": [
{
"if": "name~*",
"then": {
"*": "{name}"
}
}
]
},
"mapRendering": [
{
"location": [
"point",
"centroid"
],
"icon": {
"render": "./assets/themes/dog/dogshop.svg",
"mappings": [
{
"if": {
"and": [
"shop=pet"
]
},
"then": "./assets/themes/dog/petshop.svg"
}
]
},
"iconSize": "30,30,center"
},
{
"#": "Rendering of a line",
"color": "#ff0",
"width": 5
}
],
"presets": [
{
"tags": [
"shop=yes",
"dog=yes"
]
}
],
"source": {
"=osmTags": {
"and": [
"shop~*",
{
"or": [
"dog=leashed",
"dog=yes",
"shop=pet"
]
}
]
}
}
}
},
{
"id": "veterinary",
"source": {
"osmTags": {
"or": [
"amenity=veterinary"
]
}
},
"minzoom": 10,
"presets": [
{
"title": {
"en": "a veterianarian",
"da": "en dyrl&aelig;ge"
},
"tags": [
"amenity=veterinary",
"pet=dog"
],
"description": {
"en": "a veterianarian, that treats dogs",
"da": "En dyrl&aelig;ge, der behandler hunde"
}
}
],
"name": {
"en": "veterinary",
"da": "dyrl&aelig;ge"
},
"title": {
"render": {
"en": "Veterinary",
"da": "dyrl&aelig;ge"
},
"mappings": [
{
"if": "name~*",
"then": {
"*": "{name}"
}
}
]
},
"mapRendering": [
{
"location": [
"point",
"centroid"
],
"icon": "./assets/themes/dog/vet.svg",
"iconSize": "30,40,center",
"label": {
"mappings": [
{
"if": "name~*",
"then": "<div style='background: white; padding: 0.25em; border-radius:0.5em'>{name}</div>"
}
]
},
"iconBadges": [
{
"if": "opening_hours~*",
"then": "isOpen"
}
]
},
{
"color": "#ff0",
"width": 5
}
],
"tagRenderings": [
"website",
"reviews",
"phone",
"opening_hours",
{
"question": {
"en": "What is the name of this veterinarian?",
"da": "Hvad hedder denne dyrl&aelig;?"
},
"render": {
"en": "The name of this veterinarian is {name}",
"de": "Denne dyrl&aelig; hedder {name}"
},
"freeform": {
"key": "name"
},
"id": "vetName"
}
]
},
{
"builtin": "food",
"override": {
"minzoom": 19,
"filter": null,
"name": null
}
},
{
"builtin": "waste_basket",
"override": {
"minzoom": 16,
"filter": null,
"name": null
}
},
{
"builtin": "shops",
"override": {
"minzoom": 19,
"filter": null,
"presets": [
{
"title": {
"en": "dog-friendly shop",
"da": "EN hundevenlig butik"
},
"tags": [
"dog=yes",
"shop=yes"
],
"description": {
"en": "A shop whery you can bring a dog almost everywhere",
"da": "En butik hvor man kan tage en hund med n&aelig;sten overalt"
}
}
],
"name": null
}
}
]
}

View file

Before

Width:  |  Height:  |  Size: 4 KiB

After

Width:  |  Height:  |  Size: 4 KiB

View file

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

View file

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

View file

@ -0,0 +1,175 @@
{
"id": "pets",
"maintainer": "Niels Elgaard Larsen",
"version": "1",
"title": {
"en": "Veterinarians, dog parks and other pet-amenities",
"da": "hundesteder"
},
"description": {
"en": "On this map, you'll find various interesting places for you pets: veterinarians, dog parks, pet shops, dog-friendly restaurants, ...",
"da": "Hundsteder"
},
"icon": "./assets/themes/dog/dog-park.svg",
"startZoom": 10,
"startLat": 55,
"startLon": 12,
"layers": [
"dogpark",
{
"builtin": "food",
"override": {
"id": "dogfoodb",
"name": {
"en": "Dog friendly eateries",
"da": "Hundevenlige madsteder"
},
"mapRendering": [
{
"location": [
"point",
"centroid"
],
"icon": "./assets/themes/dog/dog-food.svg",
"iconSize": "30,30,center"
}
],
"=presets": [],
"source": {
"=osmTags": {
"and": [
{
"or": [
"amenity=restaurant",
"amenity=cafe"
]
},
{
"or": [
"dog=unleashed",
"dog=leashed",
"dog=yes"
]
}
]
}
}
}
},
{
"builtin": "shops",
"id": "dogshop",
"override": {
"id": "dogshop",
"name": {
"en": "dog-friendly shop",
"da": "hundevenlig butik"
},
"title": {
"render": {
"en": "dog-friendly shop",
"da": "hundevenlig butik"
},
"mappings": [
{
"if": "name~*",
"then": {
"*": "{name}"
}
}
]
},
"mapRendering": [
{
"location": [
"point",
"centroid"
],
"icon": {
"render": "./assets/themes/dog/dogshop.svg",
"mappings": [
{
"if": {
"and": [
"shop=pet"
]
},
"then": "./assets/themes/dog/petshop.svg"
}
]
},
"iconSize": "30,30,center"
},
{
"#": "Rendering of a line",
"color": "#ff0",
"width": 5
}
],
"presets": [
{
"tags": [
"shop=yes",
"dog=yes"
]
}
],
"source": {
"=osmTags": {
"and": [
"shop~*",
{
"or": [
"dog=leashed",
"dog=yes",
"shop=pet"
]
}
]
}
}
}
},
"veterinary",
{
"builtin": "food",
"override": {
"minzoom": 19,
"filter": null,
"name": null
}
},
{
"builtin": "waste_basket",
"override": {
"minzoom": 16,
"filter": null,
"name": null
}
},
{
"builtin": "shops",
"override": {
"minzoom": 19,
"filter": null,
"presets": [
{
"title": {
"en": "dog-friendly shop",
"da": "EN hundevenlig butik"
},
"tags": [
"dog=yes",
"shop=yes"
],
"description": {
"en": "A shop whery you can bring a dog almost everywhere",
"da": "En butik hvor man kan tage en hund med n&aelig;sten overalt"
}
}
],
"name": null
}
}
]
}

View file

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

View file

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB