Skip to content

OMT schema: If there is no more general class for the subclass it should be the same value as subclass #849

Description

@jonasmatthias

Request for comments:

The OpenMapTiles schema states

If there is no more general class for the subclass this field will contain the same value as subclass

To give an example: amenity=parking is currently rendered as class=amenity and subclass=parking. As I understand the schema, it should be class=parking and subclass=parking

The key amenity is assigned as class value here:

class = poiClasses[v] or k

POI Tags like amenity, historic, leisure, tourism, waterway should not be a class. However, the following tags are classes in the OpenMapTiles schema:

-- list of OSM keys that can be used for POI classification
poiTagsAsClass  = { aerialway = "aerialway",
					office = "office",
					railway = "railway",
					shop = "shop"}
}

They should be used as class but the other keys should not, therefore at the end of the line k is changed to v (which is then also the value of the subclass). Suggestion:

			class = poiClasses[v] or poiTagsAsClass[k] or v

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions