Skip to content

Commit

Permalink
Fix #22035: Add preset amenity=driver_training (patch by SteveLz, mod…
Browse files Browse the repository at this point in the history
…ified)

Modifications are as follows:
* Add similar but different tag links
* Add rendering for amenity=driver_training when it is a node

`amenity=driver_training` is different from `amenity=driving_school` in that
`amenity=driver_training` is where the student driver can physically drive a
vehicle for practice. `amenity=driving_school` may also teach theoretical driving
practices and may have physical training aids.

git-svn-id: https://josm.openstreetmap.de/svn/trunk@19267 0c6e7542-c601-0410-84e7-c038aed88b3b
  • Loading branch information
taylor.smock committed Dec 10, 2024
1 parent a3e112c commit 6707e63
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
10 changes: 10 additions & 0 deletions resources/data/defaultpresets.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4753,7 +4753,17 @@
<combo key="license_classes" text="License Classes" values="A;A1;B;BE;C,A;A1;B;B1;C;C1;D;D1;BE;CE;C1E;DE;D1E" />
<reference ref="school_common"/>
<reference ref="link_contact_address" />
<preset_link preset_name="Driver Training" text="Similar but different tags:" />
</item> <!-- Driving School -->
<item name="Driver Training" icon="presets/education/driving_school.svg" type="node,closedway,multipolygon" preset_name_label="true">
<link wiki="Tag:amenity=driver_training" />
<space />
<key key="amenity" value="driver_training" />
<reference ref="name_operator_oh_wheelchair" />
<combo key="license_classes" text="License Classes" values="A;A1;B;BE;C,A;A1;B;B1;C;C1;D;D1;BE;CE;C1E;DE;D1E" />
<reference ref="link_contact_address" />
<preset_link preset_name="Driving School" text="Similar but different tags:" />
</item> <!-- Driver Training -->
<item name="Language school" icon="presets/education/language_school.svg" type="node,closedway,multipolygon" preset_name_label="true">
<link wiki="Tag:amenity=language_school" />
<space />
Expand Down
6 changes: 4 additions & 2 deletions resources/styles/standard/elemstyles.mapcss
Original file line number Diff line number Diff line change
Expand Up @@ -3337,7 +3337,8 @@ area[amenity=college],
area[amenity=kindergarten],
area[amenity=language_school],
area[amenity=music_school],
area[amenity=driving_school] {
area[amenity=driving_school],
area[amenity=driver_training] {
fill-color: amenity_light#f7efb7;
}
node[amenity=animal_boarding] {
Expand Down Expand Up @@ -3464,7 +3465,8 @@ node[amenity=language_school] {
icon-image: "presets/education/language_school.svg";
set icon_z17;
}
node[amenity=driving_school] {
node[amenity=driving_school],
node[amenity=driver_training] {
icon-image: "presets/education/driving_school.svg";
set icon_z17;
}
Expand Down

0 comments on commit 6707e63

Please sign in to comment.