forked from MapComplete/MapComplete
		
	Themes(shops): add labels to icecream, refactor label for shps
This commit is contained in:
		
							parent
							
								
									cd6a3512d2
								
							
						
					
					
						commit
						1ade2ed45b
					
				
					 2 changed files with 8 additions and 2 deletions
				
			
		| 
						 | 
					@ -38,6 +38,11 @@
 | 
				
			||||||
        "point",
 | 
					        "point",
 | 
				
			||||||
        "centroid"
 | 
					        "centroid"
 | 
				
			||||||
      ],
 | 
					      ],
 | 
				
			||||||
 | 
					      "label": {
 | 
				
			||||||
 | 
					        "render": "{name}",
 | 
				
			||||||
 | 
					        "condition": "name~*"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "labelCssClasses": "bg-white rounded px-2",
 | 
				
			||||||
      "marker": [
 | 
					      "marker": [
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
          "icon": "circle",
 | 
					          "icon": "circle",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -172,11 +172,12 @@
 | 
				
			||||||
          "then": "circle:white;./assets/layers/id_presets/fas-key.svg"
 | 
					          "then": "circle:white;./assets/layers/id_presets/fas-key.svg"
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      ],
 | 
					      ],
 | 
				
			||||||
 | 
					      "labelCssClasses": "bg-white rounded px-2",,
 | 
				
			||||||
      "label": {
 | 
					      "label": {
 | 
				
			||||||
        "mappings": [
 | 
					        "mappings": [
 | 
				
			||||||
          {
 | 
					          {
 | 
				
			||||||
            "if": "name~*",
 | 
					            "if": "name~*",
 | 
				
			||||||
            "then": "<div style='background: white; padding: 0.25em; border-radius:0.5em'>{name}</div>"
 | 
					            "then": "{name}"
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
        ]
 | 
					        ]
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
| 
						 | 
					@ -366,7 +367,7 @@
 | 
				
			||||||
        ]
 | 
					        ]
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "opening_hours_by_appointment",
 | 
					    "opening_hours",
 | 
				
			||||||
    "website",
 | 
					    "website",
 | 
				
			||||||
    "email",
 | 
					    "email",
 | 
				
			||||||
    "phone",
 | 
					    "phone",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue