forked from MapComplete/MapComplete
		
	Add contact information to recycling centers
This commit is contained in:
		
							parent
							
								
									bc890f5476
								
							
						
					
					
						commit
						793d765ead
					
				
					 5 changed files with 73 additions and 4 deletions
				
			
		| 
						 | 
					@ -61,7 +61,7 @@ export default class Constants {
 | 
				
			||||||
     * For every bin, the totals are uploaded as metadata
 | 
					     * For every bin, the totals are uploaded as metadata
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    static distanceToChangeObjectBins = [25, 50, 100, 500, 1000, 5000, Number.MAX_VALUE]
 | 
					    static distanceToChangeObjectBins = [25, 50, 100, 500, 1000, 5000, Number.MAX_VALUE]
 | 
				
			||||||
    static themeOrder = ["personal", "cyclofix", "hailhydrant", "bookcases", "toilets", "aed"];
 | 
					    static themeOrder = ["personal", "cyclofix", "waste" , "etymology",  "food","cafes_and_pubs", "playgrounds", "hailhydrant", "toilets", "aed", "bookcases"];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private static isRetina(): boolean {
 | 
					    private static isRetina(): boolean {
 | 
				
			||||||
        if (Utils.runningFromConsole) {
 | 
					        if (Utils.runningFromConsole) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -22,12 +22,20 @@
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "mappings": [
 | 
					    "mappings": [
 | 
				
			||||||
      {
 | 
					      {
 | 
				
			||||||
        "if": "recycling_type=centre",
 | 
					        "if": "name~*",
 | 
				
			||||||
        "then": {
 | 
					        "then": {
 | 
				
			||||||
 | 
					          "*": "{name}",
 | 
				
			||||||
          "en": "Recycling centre",
 | 
					          "en": "Recycling centre",
 | 
				
			||||||
          "nl": "Recyclingcentrum"
 | 
					          "nl": "Recyclingcentrum"
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
 | 
					      {
 | 
				
			||||||
 | 
					        "if": "recycling_type=centre",
 | 
				
			||||||
 | 
					        "then": {
 | 
				
			||||||
 | 
					          "en": "Recycling container",
 | 
				
			||||||
 | 
					          "nl": "Recyclingcontainer"
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
      {
 | 
					      {
 | 
				
			||||||
        "if": "recycling_type=container",
 | 
					        "if": "recycling_type=container",
 | 
				
			||||||
        "then": {
 | 
					        "then": {
 | 
				
			||||||
| 
						 | 
					@ -419,6 +427,7 @@
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  ],
 | 
					  ],
 | 
				
			||||||
  "tagRenderings": [
 | 
					  "tagRenderings": [
 | 
				
			||||||
 | 
					    "images",
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
      "id": "recycling-type",
 | 
					      "id": "recycling-type",
 | 
				
			||||||
      "question": {
 | 
					      "question": {
 | 
				
			||||||
| 
						 | 
					@ -471,6 +480,30 @@
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      ]
 | 
					      ]
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      "id": "recycling-centre-name",
 | 
				
			||||||
 | 
					      "question": {
 | 
				
			||||||
 | 
					        "en": "What is the name of this recycling centre?",
 | 
				
			||||||
 | 
					        "nl": "Wat is de naam van dit recyclagecentrum?"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "render": {
 | 
				
			||||||
 | 
					        "en": "This recycling centre is named <b>{name}</b>",
 | 
				
			||||||
 | 
					        "nl": "Dit recyclagecentrum heet <b>{name}</b>"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "freeform": {
 | 
				
			||||||
 | 
					        "key": "name"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "mappings": [
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					          "if": "noname=yes",
 | 
				
			||||||
 | 
					          "then": {
 | 
				
			||||||
 | 
					            "en": "This recycling centre doesn't have a specific name",
 | 
				
			||||||
 | 
					            "nl": "Dit recyclagecentrum heeft geen specifieke naam"
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      ],
 | 
				
			||||||
 | 
					      "condition": "recycling_type=centre"
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
      "id": "container-location",
 | 
					      "id": "container-location",
 | 
				
			||||||
      "question": {
 | 
					      "question": {
 | 
				
			||||||
| 
						 | 
					@ -770,6 +803,16 @@
 | 
				
			||||||
        "type": "string"
 | 
					        "type": "string"
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      "builtin": [
 | 
				
			||||||
 | 
					        "website",
 | 
				
			||||||
 | 
					        "email",
 | 
				
			||||||
 | 
					        "phone"
 | 
				
			||||||
 | 
					      ],
 | 
				
			||||||
 | 
					      "override": {
 | 
				
			||||||
 | 
					        "condition": "recycling_type=centre"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
      "id": "opening_hours",
 | 
					      "id": "opening_hours",
 | 
				
			||||||
      "render": "{opening_hours_table()}",
 | 
					      "render": "{opening_hours_table()}",
 | 
				
			||||||
| 
						 | 
					@ -946,7 +989,9 @@
 | 
				
			||||||
      ]
 | 
					      ]
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  ],
 | 
					  ],
 | 
				
			||||||
  "deletion": {"neededChangesets": 1},
 | 
					  "deletion": {
 | 
				
			||||||
 | 
					    "neededChangesets": 1
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
  "allowMove": {
 | 
					  "allowMove": {
 | 
				
			||||||
    "enableRelocation": false,
 | 
					    "enableRelocation": false,
 | 
				
			||||||
    "enableImproveAccuracy": true
 | 
					    "enableImproveAccuracy": true
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -4294,6 +4294,15 @@
 | 
				
			||||||
                },
 | 
					                },
 | 
				
			||||||
                "question": "What can be recycled here?"
 | 
					                "question": "What can be recycled here?"
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
 | 
					            "recycling-centre-name": {
 | 
				
			||||||
 | 
					                "mappings": {
 | 
				
			||||||
 | 
					                    "0": {
 | 
				
			||||||
 | 
					                        "then": "This recycling centre doesn't have a specific name"
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					                },
 | 
				
			||||||
 | 
					                "question": "What is the name of this recycling centre?",
 | 
				
			||||||
 | 
					                "render": "This recycling centre is named <b>{name}</b>"
 | 
				
			||||||
 | 
					            },
 | 
				
			||||||
            "recycling-type": {
 | 
					            "recycling-type": {
 | 
				
			||||||
                "mappings": {
 | 
					                "mappings": {
 | 
				
			||||||
                    "0": {
 | 
					                    "0": {
 | 
				
			||||||
| 
						 | 
					@ -4316,6 +4325,9 @@
 | 
				
			||||||
                },
 | 
					                },
 | 
				
			||||||
                "1": {
 | 
					                "1": {
 | 
				
			||||||
                    "then": "Recycling container"
 | 
					                    "then": "Recycling container"
 | 
				
			||||||
 | 
					                },
 | 
				
			||||||
 | 
					                "2": {
 | 
				
			||||||
 | 
					                    "then": "Recycling container"
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
            "render": "Recycling facility"
 | 
					            "render": "Recycling facility"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -4086,6 +4086,15 @@
 | 
				
			||||||
                },
 | 
					                },
 | 
				
			||||||
                "question": "Wat kan hier gerecycled worden?"
 | 
					                "question": "Wat kan hier gerecycled worden?"
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
 | 
					            "recycling-centre-name": {
 | 
				
			||||||
 | 
					                "mappings": {
 | 
				
			||||||
 | 
					                    "0": {
 | 
				
			||||||
 | 
					                        "then": "Dit recyclagecentrum heeft geen specifieke naam"
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					                },
 | 
				
			||||||
 | 
					                "question": "Wat is de naam van dit recyclagecentrum?",
 | 
				
			||||||
 | 
					                "render": "Dit recyclagecentrum heet <b>{name}</b>"
 | 
				
			||||||
 | 
					            },
 | 
				
			||||||
            "recycling-type": {
 | 
					            "recycling-type": {
 | 
				
			||||||
                "mappings": {
 | 
					                "mappings": {
 | 
				
			||||||
                    "0": {
 | 
					                    "0": {
 | 
				
			||||||
| 
						 | 
					@ -4108,6 +4117,9 @@
 | 
				
			||||||
                },
 | 
					                },
 | 
				
			||||||
                "1": {
 | 
					                "1": {
 | 
				
			||||||
                    "then": "Recyclingcontainer"
 | 
					                    "then": "Recyclingcontainer"
 | 
				
			||||||
 | 
					                },
 | 
				
			||||||
 | 
					                "2": {
 | 
				
			||||||
 | 
					                    "then": "Recyclingcontainer"
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
            "render": "Recyclingfaciliteit"
 | 
					            "render": "Recyclingfaciliteit"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue