Skip to content

Different map styles ("lenses") #11189

@tordans

Description

@tordans

This issues is part of #11168.

This issue will be updated with ideas and solutions on how to introduce the advanced user features in kaligrafy/iD to the broader user group of iD users.

Right now this issue is a stub with meeting minutes from a discussion with @kaligrafy, @tyrasd and @tordans who meet online to talk about #11168. There are many issues and some solutions for this topic already. I will try to collect some to allow us to get a broader pictures and discuss next steps.


Goals

  • Introduce map styles that allow to efficiently map one theme
    For example side walk mapping, street side parking.
  • Use map styles to get live quality assurance while mapping
    Eg. Highlight when one or a set of required tags are missing.

Adding map style capabilities will allow for accessibility features as well es features like dark mode along the road.


Context
The fork at kaligrafy/iD has custom map styles that are used by the trained mappers that use this fork. It allows them to extract a lot of information just from the style.
The style highlights

  • data on maxspeed
  • bike infrastructure
  • buildings types
  • highlight objects that do not follow a embedded minimum field requirements

The goal of this ticket is to explore how those advanced user features can be added to iD without mudding the experience for new and unexperienced users.

Different kind of map styles

  • Styles that replace the current style completely
    (This is what kaligrafy/iD does, for example)
  • Styles that add a set of layers below (or above) the current map style
    (This is what the "Highlight unsaved features" in iD does, for example)
  • Styles could disable editing of features as part of the style
    (Eg. disable building and borders when editing side walks)
  • Styles could hide or "gray out" features that as part of the style
    (Eg. Gray out buildings, POI when editing maxspeed)

Research: What do we already have…

(This list does not have to be complete. Its more about getting a bigger pictures to better scope the feature.)

iD Issue this Topic

#6616

  • A unique idea for a name for this feature in iD: "Lenses"
    • JOSM calls it "Map Paint Styles" 🔗
  • A list of ideas what to highlight for iD 🔗
  • An idea on where to expose this in the UI, once it is ready for every day use 🔗

Highlight unsaved edits
This feature is already a map style in iD that is applied as additional layers below the current style.
We will probably want to consolidate this to be applied in the same UI.

Rapid: Pedestrian Focus Mode
There is a draft PR in Rapid showing how a style can highlight the data that is needed for a mapping task and at the same time hide (or gray out) unrelated data.

Rapid: Heatmap
Not directly related to map styles, but the general topic: Rapid introduced a heatmap style to make it easier to find areas that need work

Rapid: Color blind modes
Rapid has to options, one to pick the map style and one to pick a color blind modification mode.
The modification mode uses code that Maputnik also uses to transform the colors 🔗 .

Dark mode
A system for map styles would allow us to have a dedicated dark mode style along the way


Current research questions

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    map-rendererAn issue with how things are rendered in the map

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions