forked from MapComplete/MapComplete
		
	Update mapRendering
This commit is contained in:
		
							parent
							
								
									e206ceb70a
								
							
						
					
					
						commit
						0ee6a1a47b
					
				
					 4 changed files with 37 additions and 54 deletions
				
			
		| 
						 | 
					@ -23,47 +23,19 @@
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        ]
 | 
					        ]
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "icon": {
 | 
					    "mapRendering": [
 | 
				
			||||||
        "render": "./assets/layers/street_lamps/straight_pole.svg",
 | 
					 | 
				
			||||||
        "mappings": [
 | 
					 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
                "if": {
 | 
					            "location": "point",
 | 
				
			||||||
                    "and": [
 | 
					            "icon": "./assets/layers/street_lamps/street_lamp.svg",
 | 
				
			||||||
                        "lamp_mount=bent_mast",
 | 
					            "iconBadges": [
 | 
				
			||||||
                        "light:count=1"
 | 
					 | 
				
			||||||
                    ]
 | 
					 | 
				
			||||||
                },
 | 
					 | 
				
			||||||
                "then": "./assets/layers/street_lamps/bent_pole_1.svg"
 | 
					 | 
				
			||||||
            },
 | 
					 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                "if": {
 | 
					                    "if": "light:colour~*",
 | 
				
			||||||
                    "and": [
 | 
					                    "then": "circle:{light:colour}"
 | 
				
			||||||
                        "lamp_mount=bent_mast",
 | 
					                }
 | 
				
			||||||
                        "light:count=2"
 | 
					            ],
 | 
				
			||||||
                    ]
 | 
					            "iconSize": "40,40,bottom"
 | 
				
			||||||
                },
 | 
					 | 
				
			||||||
                "then": "./assets/layers/street_lamps/bent_pole_2.svg"
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        ]
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "iconOverlays": [
 | 
					 | 
				
			||||||
        {
 | 
					 | 
				
			||||||
            "if": "light:colour=white",
 | 
					 | 
				
			||||||
            "then": "circle:white",
 | 
					 | 
				
			||||||
            "badge": true
 | 
					 | 
				
			||||||
        },
 | 
					 | 
				
			||||||
        {
 | 
					 | 
				
			||||||
            "if": "light:colour=orange",
 | 
					 | 
				
			||||||
            "then": "circle:#FFB000",
 | 
					 | 
				
			||||||
            "badge": true
 | 
					 | 
				
			||||||
        },
 | 
					 | 
				
			||||||
        {
 | 
					 | 
				
			||||||
            "if": "light:colour=green",
 | 
					 | 
				
			||||||
            "then": "circle:#55FF55",
 | 
					 | 
				
			||||||
            "badge": true
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    ],
 | 
					    ],
 | 
				
			||||||
    "iconSize": "40,40,bottom",
 | 
					 | 
				
			||||||
    "presets": [
 | 
					    "presets": [
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            "title": {
 | 
					            "title": {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -48,7 +48,7 @@
 | 
				
			||||||
      "tagRenderings": [
 | 
					      "tagRenderings": [
 | 
				
			||||||
        "images",
 | 
					        "images",
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
         
 | 
					          "id": "minimap",
 | 
				
			||||||
          "render": "{minimap(17): height: 10rem; overflow: hidden; border: 1px solid #DADADA; border-radius: 0.5rem; }"
 | 
					          "render": "{minimap(17): height: 10rem; overflow: hidden; border: 1px solid #DADADA; border-radius: 0.5rem; }"
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      ],
 | 
					      ],
 | 
				
			||||||
| 
						 | 
					@ -128,8 +128,6 @@
 | 
				
			||||||
        "images",
 | 
					        "images",
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
          "id": "minimap",
 | 
					          "id": "minimap",
 | 
				
			||||||
          
 | 
					 | 
				
			||||||
   
 | 
					 | 
				
			||||||
          "render": "{minimap(17): height: 10rem; overflow: hidden; border: 1px solid #DADADA; border-radius: 0.5rem; }"
 | 
					          "render": "{minimap(17): height: 10rem; overflow: hidden; border: 1px solid #DADADA; border-radius: 0.5rem; }"
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -48,7 +48,11 @@
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
        ]
 | 
					        ]
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      "color": "#ff0",
 | 
					      "mapRendering": [
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					          "color": "#ff0"
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      ],
 | 
				
			||||||
      "tagRenderings": [
 | 
					      "tagRenderings": [
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
          "id": "lit",
 | 
					          "id": "lit",
 | 
				
			||||||
| 
						 | 
					@ -113,7 +117,11 @@
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
        ]
 | 
					        ]
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      "color": "#a9a9a9",
 | 
					      "mapRendering": [
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					          "color": "#a9a9a9"
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      ],
 | 
				
			||||||
      "tagRenderings": [
 | 
					      "tagRenderings": [
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
          "id": "lit",
 | 
					          "id": "lit",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -34,6 +34,9 @@
 | 
				
			||||||
        "_has_closeby_feature=Number(feat.properties._closest_osm_street_lamp_distance) < 5 ? 'yes' : 'no'"
 | 
					        "_has_closeby_feature=Number(feat.properties._closest_osm_street_lamp_distance) < 5 ? 'yes' : 'no'"
 | 
				
			||||||
      ],
 | 
					      ],
 | 
				
			||||||
      "title": "Straatlantaarn in dataset",
 | 
					      "title": "Straatlantaarn in dataset",
 | 
				
			||||||
 | 
					      "mapRendering": [
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					          "location": "point",
 | 
				
			||||||
          "icon": {
 | 
					          "icon": {
 | 
				
			||||||
            "render": "circle:red",
 | 
					            "render": "circle:red",
 | 
				
			||||||
            "mappings": [
 | 
					            "mappings": [
 | 
				
			||||||
| 
						 | 
					@ -43,7 +46,9 @@
 | 
				
			||||||
              }
 | 
					              }
 | 
				
			||||||
            ]
 | 
					            ]
 | 
				
			||||||
          },
 | 
					          },
 | 
				
			||||||
      "iconSize": "20,20,center",
 | 
					          "iconSize": "20,20,center"
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      ],
 | 
				
			||||||
      "tagRenderings": [
 | 
					      "tagRenderings": [
 | 
				
			||||||
        "all_tags"
 | 
					        "all_tags"
 | 
				
			||||||
      ]
 | 
					      ]
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue