Skip to content

Publish custom tagging presets for JOSM #556

Description

@1ec5

JOSM allows the user to install a custom JOSM preset file that extends the available presets with additional tags and even some limited UI. An OpenHistoricalMap preset file would facilitate the use of the all-important start_date and end_date tags, along with some other OHM-specific things like image tags and chronology relations.

@jeffreyameyer has been working on a preset file for images specifically: #540 (comment). But I think a general OHM preset file would be more useful and discoverable. We don’t have a lot of OHM-specific tags and don’t expect that number to increase dramatically for the foreseeable future.

Once the preset file is ready, it should be checked into a GitHub repository and listed in this table on the JOSM wiki, which JOSM’s preferences window consults automatically.

Activity

  1. added theissue type on Mar 16, 2025
  2. danvk commented on Mar 24, 2026

    @danvk

    I asked about including start_date/end_date in names in JOSM over on the OSM forum before finding this issue. A preset can absolutely surface start_date/end_date.

    This is wildly helpful for telling otherwise-identical relations apart in the relations panel:

    Image

    Or for ensuring that members of a chronology relation are sorted by time:

    Image

    To make this work, I downloaded Simon Poole's JOSM preset:

    https://github.com/simonpoole/beautified-JOSM-preset/releases/latest/download/josm.zip

    unzipped it, and added these lines to the top of <group name="Boundaries"> in josm_preset.xml (the interesting part is name_template):

    <item
      name="Admin Relation"
      icon="poi_boundary_administrative.png"
      type="relation,multipolygon"
      preset_name_label="true"
      name_template="Admin{admin_level} (?{'{name}' | ''}) [?{'{start_date}–{end_date}' | '{start_date}–' | '–{end_date}' | '–'}]"
    >
        <link wiki="Tag:boundary=administrative"/>
        <space/>
        <key key="boundary" value="administrative"/>
        <text key="name" text="Name"/>
        <combo key="admin_level" text="Administrative level" values="1,2,3,4,5,6,7,8,9,10,11"/>
        <check key="maritime" text="Maritime" disable_off="true"/>
        <reference ref="wikipedia_wikidata"/>
    </item> <!-- Admin Relation -->

    and then removed JOSM's "Internal Preset" tagging preset and added my new josm_preset.xml.

    This is pretty roundabout. Even if it is duplicative, having an OHM tagging preset that copied the internal JOSM one but added start_date/end_date for features that are supposed to have them would be wildly useful for OHM JOSM users.

    Update: I found a simpler way to do this, instructions at https://wiki.openstreetmap.org/wiki/OpenHistoricalMap/JOSM#List_Views

  3. 1ec5 commented on Apr 1, 2026

    @1ec5
    MemberAuthor

    Please send pull requests to https://github.com/OpenHistoricalMap/openhistoricalmap-josm-presets/ for any presets that belong in a starter pack for OHM in JOSM.

  4. 1ec5 commented on Apr 7, 2026

    @1ec5
    MemberAuthor

    I added the preset file to JOSM’s master preset list and it now shows up on the main page that JOSM users see.

    In addition to the dates on relations, we could use additional presets for:

    • Dates on ways (for the map’s middle-click menu)
    • Preset for chronology relations
    • Preset for street relations
    • Preset for multilinestring relations
    • Fields for date tags
    • Fields for source tags
    • Fields for image tags: Add preset for chronology relations #540 (comment)
    • Fields for license tags

    Adding more presets will probably require distributing a ZIP file containing the XML file along with any icons.

  5. 1ec5 commented on Apr 7, 2026

    @1ec5
    MemberAuthor

    I’ve updated the JOSM setup instructions on the wiki to use the JOSM integration instead of adding the preset file more manually.

    OHM Tagging Presets: Small tagging preset to show start_date / end_date where possible (5.98.0) OHM Tagging Presets in the Tagging Presets pane of the Preferences window.
  6. added
    good first issue
    on Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    JOSMgood first issuetagging

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions