Ticket #22793: 0002-Add-boundary-place-preset.patch

File 0002-Add-boundary-place-preset.patch, 1.8 KB (added by JeroenHoek, 17 months ago)
  • resources/data/defaultpresets.xml

    From 37c90b4aa869c8e13a0b0fba5ef8d42a80f98aa3 Mon Sep 17 00:00:00 2001
    From: Jeroen Hoek <mail@jeroenhoek.nl>
    Date: Mon, 6 Mar 2023 18:58:11 +0100
    Subject: [PATCH 2/2] Add boundary=place preset
    
    ---
     resources/data/defaultpresets.xml | 8 +++++++-
     1 file changed, 7 insertions(+), 1 deletion(-)
    
    diff --git a/resources/data/defaultpresets.xml b/resources/data/defaultpresets.xml
    index 4a392dec6..aa96bc989 100644
    a b  
    84568456            <combo key="political_division" text="Division" values="canton,linguistic_community,ward" />
    84578457            <text key="name" text="Name" />
    84588458        </item> <!-- Political -->
     8459        <item name="Place" icon="presets/misc/boundaries.svg" type="way,closedway,relation" preset_name_label="true">
     8460            <link wiki="Tag:boundary=place" />
     8461            <space />
     8462            <key key="boundary" value="place" />
     8463            <text key="name" text="Name" />
     8464        </item> <!-- Place -->
    84598465        <item name="Postal Code" icon="presets/misc/boundaries.svg" type="way,closedway,relation" preset_name_label="true">
    84608466            <link wiki="Tag:boundary=postal_code" />
    84618467            <space />
     
    93189324            <space />
    93199325            <key key="type" value="boundary" />
    93209326            <text key="name" text="Name" />
    9321             <combo key="boundary" text="Boundary type" values="administrative,maritime,national_park,political,postal_code,protected_area" values_searchable="true" />
     9327            <combo key="boundary" text="Boundary type" values="administrative,maritime,national_park,political,postal_code,protected_area,place" values_searchable="true" />
    93229328            <optional>
    93239329                <combo key="admin_level" text="Administrative level" values="1,2,3,4,5,6,7,8,9,10,11" />
    93249330            </optional>