forked from MapComplete/MapComplete
		
	Merge pull request #945 from bxl-forever/feature/rainbow-crossings
New feature request: rainbow-crossings
This commit is contained in:
		
						commit
						f0df09d0cb
					
				
					 4 changed files with 121 additions and 0 deletions
				
			
		
							
								
								
									
										77
									
								
								assets/layers/rainbow_crossings/rainbow_crossings.json
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										77
									
								
								assets/layers/rainbow_crossings/rainbow_crossings.json
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,77 @@
 | 
			
		|||
{
 | 
			
		||||
  "id": "rainbow_crossings",
 | 
			
		||||
  "name": {
 | 
			
		||||
    "en": "Crossings with rainbow paintings"
 | 
			
		||||
  },
 | 
			
		||||
  "description": {
 | 
			
		||||
    "en": "Crossings with decorative rainbow paintings"
 | 
			
		||||
  },
 | 
			
		||||
  "source": {
 | 
			
		||||
    "osmTags": {
 | 
			
		||||
      "highway=crossing"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  "minzoom": 17,
 | 
			
		||||
  "title": {
 | 
			
		||||
    "render": {
 | 
			
		||||
      "en": "Crossing"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  "presets": [
 | 
			
		||||
    {
 | 
			
		||||
      "title": {
 | 
			
		||||
        "en": "a crossing"
 | 
			
		||||
      },
 | 
			
		||||
      "tags": [
 | 
			
		||||
        "highway=crossing"
 | 
			
		||||
      ],
 | 
			
		||||
      "description": {
 | 
			
		||||
        "en": "Pedestrian crossing"
 | 
			
		||||
      },
 | 
			
		||||
      "preciseInput": {
 | 
			
		||||
        "preferredBackground": [
 | 
			
		||||
          "photo"
 | 
			
		||||
        ],
 | 
			
		||||
        "snapToLayer": "cycleways_and_roads",
 | 
			
		||||
        "maxSnapDistance": 25
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
  "tagRenderings": [
 | 
			
		||||
    {
 | 
			
		||||
      "id": "crossing-with-rainbow",
 | 
			
		||||
      "question": {
 | 
			
		||||
        "en": "Does this crossing has rainbow paintings?"
 | 
			
		||||
      },
 | 
			
		||||
      "condition": "highway=crossing",
 | 
			
		||||
      "mappings": [
 | 
			
		||||
        {
 | 
			
		||||
          "if": "crossing:marking=rainbow",
 | 
			
		||||
          "then": {
 | 
			
		||||
            "en": "This crossing has rainbow paintings"
 | 
			
		||||
          }
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
          "if": "crossing:marking!=rainbow",
 | 
			
		||||
          "then": {
 | 
			
		||||
            "en": "No rainbow paintings here"
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      ]
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  "mapRendering": [
 | 
			
		||||
    {
 | 
			
		||||
      "icon": {
 | 
			
		||||
        "render": "./assets/themes/rainbow_crossings/logo.svg"
 | 
			
		||||
      },
 | 
			
		||||
      "iconSize": "40,40,bottom",
 | 
			
		||||
      "location": [
 | 
			
		||||
        "point",
 | 
			
		||||
        "centroid"
 | 
			
		||||
      ]
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  "description": {
 | 
			
		||||
    "en": "A layer showing pedestrian crossings with rainbow paintings"
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										10
									
								
								assets/themes/rainbow_crossings/license_info.json
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								assets/themes/rainbow_crossings/license_info.json
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,10 @@
 | 
			
		|||
[
 | 
			
		||||
  {
 | 
			
		||||
    "path": "logo.svg",
 | 
			
		||||
    "license": "CC0",
 | 
			
		||||
    "authors": [
 | 
			
		||||
      "bxl-forever"
 | 
			
		||||
    ],
 | 
			
		||||
    "sources": []
 | 
			
		||||
  }
 | 
			
		||||
]
 | 
			
		||||
							
								
								
									
										12
									
								
								assets/themes/rainbow_crossings/logo.svg
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								assets/themes/rainbow_crossings/logo.svg
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,12 @@
 | 
			
		|||
<?xml version="1.0" encoding="UTF-8" ?>
 | 
			
		||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 600">
 | 
			
		||||
  <rect fill="#750787" width="600" height="600" />
 | 
			
		||||
  <rect fill="#004dff" width="500" height="600" />
 | 
			
		||||
  <rect fill="#008026" width="400" height="600" />
 | 
			
		||||
  <rect fill="#ffed00" width="300" height="600" />
 | 
			
		||||
  <rect fill="#ff8c00" width="200" height="600" />
 | 
			
		||||
  <rect fill="#e40303" width="100" height="600" />
 | 
			
		||||
  <rect x="50" y="100" width="100" height="400" fill="#ffffff" stroke-width="2" stroke="#000000"></rect>
 | 
			
		||||
  <rect x="250" y="100" width="100" height="400" fill="#ffffff" stroke-width="2" stroke="#000000"></rect>
 | 
			
		||||
  <rect x="450" y="100" width="100" height="400" fill="#ffffff" stroke-width="2" stroke="#000000"></rect>
 | 
			
		||||
</svg>
 | 
			
		||||
| 
		 After Width: | Height: | Size: 733 B  | 
							
								
								
									
										22
									
								
								assets/themes/rainbow_crossings/rainbow_crossings.json
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								assets/themes/rainbow_crossings/rainbow_crossings.json
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,22 @@
 | 
			
		|||
{
 | 
			
		||||
  "id": "rainbow_crossings",
 | 
			
		||||
  "title": {
 | 
			
		||||
    "en": "Rainbow pedestrian crossings"
 | 
			
		||||
  },
 | 
			
		||||
  "description": {
 | 
			
		||||
    "en": "On this map, rainbow-painted pedestrian crossings are shown and can be easily added"
 | 
			
		||||
  },
 | 
			
		||||
  "maintainer": "",
 | 
			
		||||
  "icon": "./assets/themes/rainbow_crossings/logo.svg",
 | 
			
		||||
  "version": "0",
 | 
			
		||||
  "startLat": 50.8465573,
 | 
			
		||||
  "defaultBackgroundId": "CartoDB.Voyager",
 | 
			
		||||
  "startLon": 4.351697,
 | 
			
		||||
  "startZoom": 16,
 | 
			
		||||
  "widenFactor": 2,
 | 
			
		||||
  "layers": [
 | 
			
		||||
    "rainbow_crossings"
 | 
			
		||||
  ]
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue