25 KiB
Special and other useful layers
Table of contents
MapComplete has a few data layers available in the theme which have special properties through builtin-hooks. Furthermore, there are some normal layers (which are built from normal Theme-config files) but are so general that they get a mention here.
Priviliged layers
- selected_element
- gps_location
- gps_location_history
- home_location
- gps_track
- type_node
- note
- import_candidate
- direction
- conflation
- left_right_style
- split_point
- current_view
- matchpoint
selected_element
Highlights the currently selected element. Override this layer to have different colors
- This layer is shown at zoomlevel 0 and higher
- This layer is included automatically in every theme. This layer might contain no points
- Elements don't have a title set and cannot be toggled nor will they show up in the dashboard. If you import this layer in your theme, override
title
to make this toggleable. - Not visible in the layer selection by default. If you want to make this layer toggable, override
name
Basic tags for this layer
Elements must have the all of following tags to be shown on this layer:
Supported attributes
gps_location
Meta layer showing the current location of the user. Add this to your theme and override the icon to change the appearance of the current location. The object will always have id=gps
and will have all the properties included in the Coordinates
-object returned by the browser.
- This layer is shown at zoomlevel 0 and higher
- This layer is included automatically in every theme. This layer might contain no points
- Elements don't have a title set and cannot be toggled nor will they show up in the dashboard. If you import this layer in your theme, override
title
to make this toggleable. - Not visible in the layer selection by default. If you want to make this layer toggable, override
name
Basic tags for this layer
Elements must have the all of following tags to be shown on this layer:
Supported attributes
gps_location_history
Meta layer which contains the previous locations of the user as single points. This is mainly for technical reasons, e.g. to keep match the distance to the modified object
- This layer is shown at zoomlevel 1 and higher
- This layer is included automatically in every theme. This layer might contain no points
- This layer is not visible by default and must be enabled in the filter by the user.
- Elements don't have a title set and cannot be toggled nor will they show up in the dashboard. If you import this layer in your theme, override
title
to make this toggleable. - This layer is not visible by default and the visibility cannot be toggled, effectively resulting in a fully hidden layer. This can be useful, e.g. to calculate some metatags. If you want to render this layer (e.g. for debugging), enable it by setting the URL-parameter layer-=true
- Not visible in the layer selection by default. If you want to make this layer toggable, override
name
Basic tags for this layer
Elements must have the all of following tags to be shown on this layer:
Supported attributes
home_location
Meta layer showing the home location of the user. The home location can be set in the profile settings of OpenStreetMap.
- This layer is shown at zoomlevel 0 and higher
- This layer is included automatically in every theme. This layer might contain no points
- Elements don't have a title set and cannot be toggled nor will they show up in the dashboard. If you import this layer in your theme, override
title
to make this toggleable. - Not visible in the layer selection by default. If you want to make this layer toggable, override
name
Basic tags for this layer
Elements must have the all of following tags to be shown on this layer:
Supported attributes
gps_track
Meta layer showing the previous locations of the user as single line with controls, e.g. to erase, upload or download this track. Add this to your theme and override the maprendering to change the appearance of the travelled track.
- This layer is shown at zoomlevel 0 and higher
- This layer is included automatically in every theme. This layer might contain no points
- This layer is not visible by default and must be enabled in the filter by the user.
- Not rendered on the map by default. If you want to rendering this on the map, override
mapRenderings
Basic tags for this layer
Elements must have the all of following tags to be shown on this layer:
Supported attributes
Privacy notice
This tagrendering has no question and is thus read-only
export_as_gpx
Shows a button to export this feature as GPX. Especially useful for route relations
This tagrendering has no question and is thus read-only
export_as_geojson
Shows a button to export this feature as geojson. Especially useful for debugging or using this in other programs
This tagrendering has no question and is thus read-only
uploadtoosm
This tagrendering has no question and is thus read-only
minimap
Shows a small map with the feature. Added by default to every popup
This tagrendering has no question and is thus read-only
delete
This tagrendering has no question and is thus read-only
type_node
This is a priviliged meta_layer which exports every point in OSM. This only works if zoomed below the point that the full tile is loaded (and not loaded via Overpass). Note that this point will also contain a property parent_ways
which contains all the ways this node is part of as a list. This is mainly used for extremely specialized themes, which do advanced conflations. Expert use only.
- This layer is shown at zoomlevel 18 and higher
- Not rendered on the map by default. If you want to rendering this on the map, override
mapRenderings
Basic tags for this layer
Elements must have the all of following tags to be shown on this layer:
- id~^(node/.*)$
Supported attributes
note
This layer shows notes on OpenStreetMap. Having this layer in your theme will trigger the 'add new note' functionality in the 'addNewPoint'-popup (or if your theme has no presets, it'll enable adding notes)
- This layer is shown at zoomlevel 10 and higher
- This layer is loaded from an external source, namely
https://api.openstreetmap.org/api/0.6/notes.json?limit=10000&closed=7&bbox={x_min},{y_min},{x_max},{y_max}
Basic tags for this layer
Elements must have the all of following tags to be shown on this layer:
- id~.+
Supported attributes
conversation
This tagrendering has no question and is thus read-only
add_image
This tagrendering has no question and is thus read-only
comment
This tagrendering has no question and is thus read-only
nearby-images
This tagrendering has no question and is thus read-only
report-contributor
This tagrendering has no question and is thus read-only
This tagrendering is only visible in the popup if the following condition is met: _opened_by_anonymous_user=false
report-note
This tagrendering has no question and is thus read-only
Filters
id | question | osmTags | fields |
---|---|---|---|
search.0 | Should mention {search} in the first comment | search (string) |
id | question | osmTags | fields |
---|---|---|---|
not.0 | Should not mention {search} in the first comment | search (string) |
id | question | osmTags | fields |
---|---|---|---|
opened_by.0 | Opened by contributor {search} | search (string) |
id | question | osmTags | fields |
---|---|---|---|
not_opened_by.0 | Not opened by contributor {search} | search (string) |
id | question | osmTags | fields |
---|---|---|---|
edited_by.0 | Last edited by contributor {search} | search (string) |
id | question | osmTags | fields |
---|---|---|---|
not_edited_by.0 | Opened after {search} | search (string) |
id | question | osmTags | fields |
---|---|---|---|
opened_before.0 | Created before {search} | search (date) |
id | question | osmTags | fields |
---|---|---|---|
opened_after.0 | Created after {search} | search (date) |
id | question | osmTags |
---|---|---|
anonymous.0 | Only show notes opened by an anonymous contributor | _opened_by_anonymous_user=true |
id | question | osmTags |
---|---|---|
is_open.0 | Only show open notes |
id | question | osmTags |
---|---|---|
no_imports.0 | All Notes (default) | |
no_imports.1 | Hide import notes | |
no_imports.2 | Show only import Notes | _is_import_note~.+ |
import_candidate
Layer used in the importHelper
- This layer is shown at zoomlevel 0 and higher
- Not visible in the layer selection by default. If you want to make this layer toggable, override
name
Basic tags for this layer
Elements must have the all of following tags to be shown on this layer:
Supported attributes
all_tags
This tagrendering has no question and is thus read-only
direction
This layer visualizes directions
- This layer is shown at zoomlevel 16 and higher
- Elements don't have a title set and cannot be toggled nor will they show up in the dashboard. If you import this layer in your theme, override
title
to make this toggleable.
Basic tags for this layer
Elements must have the all of following tags to be shown on this layer:
- camera:direction~.+|direction~.+
Supported attributes
conflation
If the import-button moves OSM points, the imported way points or conflates, a preview is shown. This layer defines how this preview is rendered. This layer cannot be included in a theme.
- This layer is shown at zoomlevel 1 and higher
- This layer can not be included in a theme. It is solely used by special renderings showing a minimap with custom data.
Basic tags for this layer
Elements must have the all of following tags to be shown on this layer:
Supported attributes
left_right_style
Special meta-style which will show one single line, either on the left or on the right depending on the id. This is used in the small popups with left_right roads. Cannot be included in a theme
- This layer is shown at zoomlevel 0 and higher
- This layer can not be included in a theme. It is solely used by special renderings showing a minimap with custom data.
Basic tags for this layer
Elements must have the all of following tags to be shown on this layer:
Supported attributes
split_point
Layer rendering the little scissors for the minimap in the 'splitRoadWizard'
- This layer is shown at zoomlevel 1 and higher
- This layer can not be included in a theme. It is solely used by special renderings showing a minimap with custom data.
Basic tags for this layer
Elements must have the all of following tags to be shown on this layer:
Supported attributes
current_view
A meta-layer which contains one single feature, namely the BBOX of the current map view. This can be used to trigger special actions. If a popup is defined for this layer, this popup will be accessible via an extra button on screen.
The icon on the button is the default icon of the layer, but can be customized by detecting 'button=yes'.
- This layer is shown at zoomlevel 0 and higher
- This layer can not be included in a theme. It is solely used by special renderings showing a minimap with custom data.
Basic tags for this layer
Elements must have the all of following tags to be shown on this layer:
Supported attributes
matchpoint
The default rendering for a locationInput which snaps onto another object
- This layer is shown at zoomlevel 0 and higher
- This layer can not be included in a theme. It is solely used by special renderings showing a minimap with custom data.
Basic tags for this layer
Elements must have the all of following tags to be shown on this layer:
Supported attributes
Normal layers
The following layers are included in MapComplete:
- address
- ambulancestation
- artwork
- atm
- bank
- barrier
- bench
- bench_at_pt
- bicycle_library
- bicycle_rental
- bicycle_tube_vending_machine
- bike_cafe
- bike_cleaning
- bike_parking
- bike_repair_station
- bike_shop
- bike_themed_object
- binocular
- birdhide
- cafe_pub
- car_rental
- charging_station
- climbing
- climbing_area
- climbing_club
- climbing_gym
- climbing_opportunity
- climbing_route
- cluster_style
- conflation
- crab_address
- crossings
- current_view
- cycleways_and_roads
- defibrillator
- dentist
- direction
- doctors
- dogpark
- drinking_water
- elevator
- entrance
- etymology
- extinguisher
- filters
- fire_station
- fitness_centre
- fitness_station
- food
- ghost_bike
- governments
- gps_location
- gps_location_history
- gps_track
- grass_in_parks
- hackerspace
- home_location
- hospital
- hotel
- hydrant
- id_presets
- import_candidate
- indoors
- information_board
- kerbs
- kindergarten_childcare
- left_right_style
- map
- maproulette
- maproulette_challenge
- matchpoint
- maxspeed
- named_streets
- nature_reserve
- note
- observation_tower
- osm_community_index
- parcel_lockers
- parking
- parking_spaces
- pedestrian_path
- pharmacy
- physiotherapist
- picnic_table
- play_forest
- playground
- postboxes
- postoffices
- public_bookcase
- railway_platforms
- rainbow_crossings
- reception_desk
- recycling
- school
- selected_element
- shelter
- shops
- slow_roads
- speed_camera
- speed_display
- split_point
- sport_pitch
- sports_centre
- stairs
- street_lamps
- surveillance_camera
- tertiary_education
- ticket_machine
- ticket_validator
- toilet
- toilet_at_amenity
- trail
- transit_routes
- transit_stops
- tree_node
- type_node
- usersettings
- veterinary
- viewpoint
- village_green
- visitor_information_centre
- walls_and_buildings
- waste_basket
- waste_disposal
- windturbine
This document is autogenerated from Customizations/AllKnownLayouts.ts