mapcomplete/Docs/BuiltinLayers.md

728 lines
17 KiB
Markdown
Raw Normal View History

2021-11-08 02:36:01 +01:00
Special and other useful layers
=================================
## Table of contents
2021-11-30 22:45:25 +01:00
2021-11-30 22:50:48 +01:00
1. [Special and other useful layers](#special-and-other-useful-layers)
1. [Priviliged layers](#priviliged-layers)
1. [gps_location](#gps_location)
- [Basic tags for this layer](#basic-tags-for-this-layer)
- [Supported attributes](#supported-attributes)
1. [gps_location_history](#gps_location_history)
- [Basic tags for this layer](#basic-tags-for-this-layer)
- [Supported attributes](#supported-attributes)
1. [home_location](#home_location)
- [Basic tags for this layer](#basic-tags-for-this-layer)
- [Supported attributes](#supported-attributes)
1. [gps_track](#gps_track)
- [Basic tags for this layer](#basic-tags-for-this-layer)
- [Supported attributes](#supported-attributes)
+ [Privacy notice](#privacy-notice)
+ [export_as_gpx](#export_as_gpx)
+ [minimap](#minimap)
+ [delete](#delete)
1. [type_node](#type_node)
- [Basic tags for this layer](#basic-tags-for-this-layer)
- [Supported attributes](#supported-attributes)
1. [note](#note)
- [Basic tags for this layer](#basic-tags-for-this-layer)
- [Supported attributes](#supported-attributes)
+ [conversation](#conversation)
+ [add_image](#add_image)
+ [comment](#comment)
+ [report-contributor](#report-contributor)
+ [report-note](#report-note)
1. [conflation](#conflation)
- [Basic tags for this layer](#basic-tags-for-this-layer)
- [Supported attributes](#supported-attributes)
1. [left_right_style](#left_right_style)
- [Basic tags for this layer](#basic-tags-for-this-layer)
- [Supported attributes](#supported-attributes)
1. [split_point](#split_point)
- [Basic tags for this layer](#basic-tags-for-this-layer)
- [Supported attributes](#supported-attributes)
1. [current_view](#current_view)
- [Basic tags for this layer](#basic-tags-for-this-layer)
- [Supported attributes](#supported-attributes)
1. [matchpoint](#matchpoint)
- [Basic tags for this layer](#basic-tags-for-this-layer)
- [Supported attributes](#supported-attributes)
2021-12-04 21:44:32 +01:00
1. [Normal layers](#normal-layers)
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.
2021-11-08 02:36:01 +01:00
Priviliged layers
===================
2021-11-08 02:36:01 +01:00
- [gps_location](#gps_location)
2021-11-30 22:45:25 +01:00
- [gps_location_history](#gps_location_history)
2021-11-08 02:36:01 +01:00
- [home_location](#home_location)
2021-11-08 14:18:45 +01:00
- [gps_track](#gps_track)
2021-11-08 02:36:01 +01:00
- [type_node](#type_node)
2022-01-12 02:31:51 +01:00
- [note](#note)
2021-11-08 02:36:01 +01:00
- [conflation](#conflation)
- [left_right_style](#left_right_style)
2021-12-03 02:30:25 +01:00
- [split_point](#split_point)
2021-12-11 02:52:51 +01:00
- [current_view](#current_view)
2021-12-30 22:02:11 +01:00
- [matchpoint](#matchpoint)
2021-11-08 02:36:01 +01:00
2021-11-30 22:45:25 +01:00
gps_location
==============
2021-11-30 22:45:25 +01:00
2021-11-08 02:36:01 +01:00
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](https://developer.mozilla.org/en-US/docs/Web/API/GeolocationCoordinates) returned by the browser.
2021-11-08 02:36:01 +01:00
2021-11-08 14:18:45 +01:00
- **This layer is included automatically in every theme. This layer might contain no points**
2021-12-11 02:52:51 +01:00
- This layer cannot be toggled in the filter view. If you import this layer in your theme, override `title` to make this toggleable.
2021-11-08 14:18:45 +01:00
- Not visible in the layer selection by default. If you want to make this layer toggable, override `name`
2021-11-08 02:36:01 +01:00
2022-01-12 02:31:51 +01:00
[Go to the source code](../assets/layers/gps_location/gps_location.json)
2022-01-12 02:31:51 +01:00
Basic tags for this layer
---------------------------
2022-01-12 02:31:51 +01:00
Elements must have the all of following tags to be shown on this layer:
2022-01-12 02:31:51 +01:00
2021-11-08 02:36:01 +01:00
- <a href='https://wiki.openstreetmap.org/wiki/Key:id' target='_blank'>id</a>=<a href='https://wiki.openstreetmap.org/wiki/Tag:id%3Dgps' target='_blank'>gps</a>
2021-11-08 02:36:01 +01:00
2021-11-08 14:18:45 +01:00
Supported attributes
----------------------
2021-11-08 14:18:45 +01:00
2021-11-08 02:36:01 +01:00
gps_location_history
======================
2021-11-08 14:18:45 +01:00
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
2021-12-03 02:30:25 +01:00
- **This layer is included automatically in every theme. This layer might contain no points**
- This layer cannot be toggled in the filter view. 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`
- Not rendered on the map by default. If you want to rendering this on the map, override `mapRenderings`
2021-12-03 02:30:25 +01:00
[Go to the source code](../assets/layers/gps_location_history/gps_location_history.json)
2021-12-11 02:52:51 +01:00
Basic tags for this layer
---------------------------
2021-12-11 02:52:51 +01:00
Elements must have the all of following tags to be shown on this layer:
2021-12-11 02:52:51 +01:00
- <a href='https://wiki.openstreetmap.org/wiki/Key:user:location' target='_blank'>user:location</a>=<a href='https://wiki.openstreetmap.org/wiki/Tag:user:location%3Dyes' target='_blank'>yes</a>
2021-12-30 22:02:11 +01:00
Supported attributes
----------------------
2021-12-30 22:02:11 +01:00
2021-11-08 02:36:01 +01:00
home_location
2021-12-04 21:44:32 +01:00
===============
2021-11-08 14:18:45 +01:00
<img src='https://mapcomplete.osm.be/./assets/svg/home.svg' height="100px">
2021-11-08 02:36:01 +01:00
Meta layer showing the home location of the user. The home location can be set in the [profile settings](https://www.openstreetmap.org/profile/edit) of OpenStreetMap.
2021-11-08 14:18:45 +01:00
2021-11-08 02:36:01 +01:00
- **This layer is included automatically in every theme. This layer might contain no points**
- This layer cannot be toggled in the filter view. 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`
2021-11-08 02:36:01 +01:00
2021-11-08 14:18:45 +01:00
[Go to the source code](../assets/layers/home_location/home_location.json)
2021-11-08 14:18:45 +01:00
2021-11-08 02:36:01 +01:00
Basic tags for this layer
---------------------------
2021-11-08 02:36:01 +01:00
Elements must have the all of following tags to be shown on this layer:
2021-11-08 02:36:01 +01:00
2021-11-08 14:18:45 +01:00
- <a href='https://wiki.openstreetmap.org/wiki/Key:user:home' target='_blank'>user:home</a>=<a href='https://wiki.openstreetmap.org/wiki/Tag:user:home%3Dyes' target='_blank'>yes</a>
2021-11-08 14:18:45 +01:00
Supported attributes
----------------------
2021-11-08 14:18:45 +01:00
2021-11-08 02:36:01 +01:00
2021-11-08 14:18:45 +01:00
gps_track
===========
2021-11-08 14:18:45 +01:00
2021-11-08 02:36:01 +01:00
2021-12-03 02:30:25 +01:00
Meta layer showing the previous locations of the user as single line. Add this to your theme and override the icon to change the appearance of the current location.
2021-12-03 02:30:25 +01:00
- **This layer is included automatically in every theme. This layer might contain no points**
2021-12-11 02:52:51 +01:00
- This layer is not visible by default and must be enabled in the filter by the user.
2021-12-03 02:30:25 +01:00
- Not rendered on the map by default. If you want to rendering this on the map, override `mapRenderings`
2021-12-04 21:44:32 +01:00
[Go to the source code](../assets/layers/gps_track/gps_track.json)
2021-12-04 21:44:32 +01:00
Basic tags for this layer
---------------------------
2021-12-04 21:44:32 +01:00
2021-12-05 05:22:14 +01:00
Elements must have the all of following tags to be shown on this layer:
2021-12-04 21:44:32 +01:00
- <a href='https://wiki.openstreetmap.org/wiki/Key:id' target='_blank'>id</a>=<a href='https://wiki.openstreetmap.org/wiki/Tag:id%3Dlocation_track' target='_blank'>location_track</a>
2021-12-04 21:44:32 +01:00
Supported attributes
----------------------
2021-12-04 21:44:32 +01:00
### Privacy notice
2021-12-04 21:44:32 +01:00
_This tagrendering has no question and is thus read-only_
2021-12-04 21:44:32 +01:00
2021-12-05 05:22:14 +01:00
2021-12-04 21:44:32 +01:00
### export_as_gpx
2021-12-04 21:44:32 +01:00
_This tagrendering has no question and is thus read-only_
2021-12-04 21:44:32 +01:00
### minimap
2021-12-04 21:44:32 +01:00
_This tagrendering has no question and is thus read-only_
2021-12-04 21:44:32 +01:00
2021-12-05 05:22:14 +01:00
### delete
2021-12-04 21:44:32 +01:00
_This tagrendering has no question and is thus read-only_
2021-12-04 21:44:32 +01:00
type_node
===========
2021-12-04 21:44:32 +01:00
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.
2021-12-04 21:44:32 +01:00
2021-12-05 05:22:14 +01:00
2021-12-04 21:44:32 +01:00
- Not rendered on the map by default. If you want to rendering this on the map, override `mapRenderings`
2021-12-04 21:44:32 +01:00
[Go to the source code](../assets/layers/type_node/type_node.json)
2021-12-04 21:44:32 +01:00
Basic tags for this layer
---------------------------
2021-12-04 21:44:32 +01:00
Elements must have the all of following tags to be shown on this layer:
2021-12-04 21:44:32 +01:00
- id~^node\/.*$
2021-12-04 21:44:32 +01:00
Supported attributes
----------------------
2021-12-04 21:44:32 +01:00
2021-12-05 05:22:14 +01:00
2021-12-04 21:44:32 +01:00
note
======
2021-12-04 21:44:32 +01:00
<img src='https://mapcomplete.osm.be/./assets/svg/note.svg' height="100px">
2021-12-04 21:44:32 +01:00
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)
2021-12-04 21:44:32 +01:00
- <img src='../warning.svg' height='1rem'/> This layer is loaded from an external source, namely `https://api.openstreetmap.org/api/0.6/notes.json?closed=7&bbox={x_min},{y_min},{x_max},{y_max}`
2021-12-04 21:44:32 +01:00
[Go to the source code](../assets/layers/note/note.json)
2021-12-04 21:44:32 +01:00
2021-12-05 05:22:14 +01:00
Basic tags for this layer
---------------------------
2021-12-04 21:44:32 +01:00
Elements must have the all of following tags to be shown on this layer:
2021-12-04 21:44:32 +01:00
- id~^..*$
2021-12-04 21:44:32 +01:00
Supported attributes
----------------------
2021-12-04 21:44:32 +01:00
### conversation
2021-12-04 21:44:32 +01:00
2021-12-05 05:22:14 +01:00
_This tagrendering has no question and is thus read-only_
2021-12-04 21:44:32 +01:00
### add_image
2021-12-04 21:44:32 +01:00
_This tagrendering has no question and is thus read-only_
2021-12-04 21:44:32 +01:00
### comment
2021-12-04 21:44:32 +01:00
_This tagrendering has no question and is thus read-only_
2021-12-04 21:44:32 +01:00
### report-contributor
2021-12-04 21:44:32 +01:00
_This tagrendering has no question and is thus read-only_
2021-12-04 21:44:32 +01:00
### report-note
2021-12-04 21:44:32 +01:00
_This tagrendering has no question and is thus read-only_
2021-12-04 21:44:32 +01:00
2021-12-05 05:22:14 +01:00
2021-12-04 21:44:32 +01:00
conflation
============
2021-12-04 21:44:32 +01:00
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.
2021-12-04 21:44:32 +01:00
- This layer can **not** be included in a theme. It is solely used by [special renderings](SpecialRenderings.md) showing a minimap with custom data.
2021-12-04 21:44:32 +01:00
[Go to the source code](../assets/layers/conflation/conflation.json)
2021-12-04 21:44:32 +01:00
Basic tags for this layer
---------------------------
2021-12-04 21:44:32 +01:00
Elements must have the all of following tags to be shown on this layer:
2021-12-04 21:44:32 +01:00
- <a href='https://wiki.openstreetmap.org/wiki/Key:move' target='_blank'>move</a>=<a href='https://wiki.openstreetmap.org/wiki/Tag:move%3Dyes' target='_blank'>yes</a>|<a href='https://wiki.openstreetmap.org/wiki/Key:newpoint' target='_blank'>newpoint</a>=<a href='https://wiki.openstreetmap.org/wiki/Tag:newpoint%3Dyes' target='_blank'>yes</a>
2021-12-04 21:44:32 +01:00
Supported attributes
----------------------
2021-12-04 21:44:32 +01:00
left_right_style
==================
2021-12-04 21:44:32 +01:00
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
2021-12-04 21:44:32 +01:00
- This layer can **not** be included in a theme. It is solely used by [special renderings](SpecialRenderings.md) showing a minimap with custom data.
2021-12-04 21:44:32 +01:00
[Go to the source code](../assets/layers/left_right_style/left_right_style.json)
2021-12-04 21:44:32 +01:00
Basic tags for this layer
---------------------------
2021-12-04 21:44:32 +01:00
Elements must have the all of following tags to be shown on this layer:
2021-12-04 21:44:32 +01:00
2021-12-05 05:22:14 +01:00
- <a href='https://wiki.openstreetmap.org/wiki/Key:id' target='_blank'>id</a>=<a href='https://wiki.openstreetmap.org/wiki/Tag:id%3Dleft' target='_blank'>left</a>|<a href='https://wiki.openstreetmap.org/wiki/Key:id' target='_blank'>id</a>=<a href='https://wiki.openstreetmap.org/wiki/Tag:id%3Dright' target='_blank'>right</a>
2021-12-04 21:44:32 +01:00
Supported attributes
----------------------
2021-12-04 21:44:32 +01:00
split_point
=============
2021-12-04 21:44:32 +01:00
<img src='https://mapcomplete.osm.be/./assets/svg/scissors.svg' height="100px">
2021-12-04 21:44:32 +01:00
Layer rendering the little scissors for the minimap in the 'splitRoadWizard'
2021-12-04 21:44:32 +01:00
- This layer can **not** be included in a theme. It is solely used by [special renderings](SpecialRenderings.md) showing a minimap with custom data.
2021-12-04 21:44:32 +01:00
[Go to the source code](../assets/layers/split_point/split_point.json)
2021-12-04 21:44:32 +01:00
Basic tags for this layer
---------------------------
2021-12-04 21:44:32 +01:00
Elements must have the all of following tags to be shown on this layer:
2021-12-04 21:44:32 +01:00
- <a href='https://wiki.openstreetmap.org/wiki/Key:_split_point' target='_blank'>_split_point</a>=<a href='https://wiki.openstreetmap.org/wiki/Tag:_split_point%3Dyes' target='_blank'>yes</a>
2021-12-04 21:44:32 +01:00
Supported attributes
----------------------
2021-12-04 21:44:32 +01:00
current_view
==============
2021-12-04 21:44:32 +01:00
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.
2021-12-04 21:44:32 +01:00
The icon on the button is the default icon of the layer, but can be customized by detecting 'button=yes'.
2021-12-04 21:44:32 +01:00
- This layer can **not** be included in a theme. It is solely used by [special renderings](SpecialRenderings.md) showing a minimap with custom data.
2021-12-04 21:44:32 +01:00
2021-12-05 05:22:14 +01:00
[Go to the source code](../assets/layers/current_view/current_view.json)
2021-12-04 21:44:32 +01:00
Basic tags for this layer
---------------------------
2021-12-04 21:44:32 +01:00
Elements must have the all of following tags to be shown on this layer:
2021-12-04 21:44:32 +01:00
- <a href='https://wiki.openstreetmap.org/wiki/Key:current_view' target='_blank'>current_view</a>=<a href='https://wiki.openstreetmap.org/wiki/Tag:current_view%3Dyes' target='_blank'>yes</a>
2021-12-04 21:44:32 +01:00
Supported attributes
----------------------
2021-12-04 21:44:32 +01:00
2021-12-05 05:22:14 +01:00
2021-12-04 21:44:32 +01:00
matchpoint
============
2021-12-04 21:44:32 +01:00
<img src='https://mapcomplete.osm.be/./assets/svg/crosshair-empty.svg' height="100px">
2021-12-04 21:44:32 +01:00
The default rendering for a locationInput which snaps onto another object
2021-12-04 21:44:32 +01:00
- This layer can **not** be included in a theme. It is solely used by [special renderings](SpecialRenderings.md) showing a minimap with custom data.
2021-12-04 21:44:32 +01:00
[Go to the source code](../assets/layers/matchpoint/matchpoint.json)
2021-12-04 21:44:32 +01:00
Basic tags for this layer
---------------------------
2021-12-04 21:44:32 +01:00
Elements must have the all of following tags to be shown on this layer:
2021-12-04 21:44:32 +01:00
Supported attributes
----------------------
2021-12-04 21:44:32 +01:00
Normal layers
===============
2021-12-04 21:44:32 +01:00
The following layers are included in MapComplete:
- [address](./Layers/address.md)
- [ambulancestation](./Layers/ambulancestation.md)
- [artwork](./Layers/artwork.md)
- [barrier](./Layers/barrier.md)
- [bench](./Layers/bench.md)
- [bench_at_pt](./Layers/bench_at_pt.md)
- [bicycle_library](./Layers/bicycle_library.md)
- [bicycle_tube_vending_machine](./Layers/bicycle_tube_vending_machine.md)
- [bike_cafe](./Layers/bike_cafe.md)
- [bike_cleaning](./Layers/bike_cleaning.md)
- [bike_parking](./Layers/bike_parking.md)
- [bike_repair_station](./Layers/bike_repair_station.md)
- [bike_shop](./Layers/bike_shop.md)
- [bike_themed_object](./Layers/bike_themed_object.md)
- [binocular](./Layers/binocular.md)
- [birdhide](./Layers/birdhide.md)
- [cafe_pub](./Layers/cafe_pub.md)
- [charging_station](./Layers/charging_station.md)
- [cluster_style](./Layers/cluster_style.md)
- [conflation](./Layers/conflation.md)
- [crab_address](./Layers/crab_address.md)
- [crossings](./Layers/crossings.md)
- [current_view](./Layers/current_view.md)
- [cycleways_and_roads](./Layers/cycleways_and_roads.md)
- [defibrillator](./Layers/defibrillator.md)
- [direction](./Layers/direction.md)
- [drinking_water](./Layers/drinking_water.md)
- [entrance](./Layers/entrance.md)
- [etymology](./Layers/etymology.md)
- [extinguisher](./Layers/extinguisher.md)
- [fire_station](./Layers/fire_station.md)
- [food](./Layers/food.md)
- [ghost_bike](./Layers/ghost_bike.md)
- [gps_location](./Layers/gps_location.md)
- [gps_location_history](./Layers/gps_location_history.md)
- [gps_track](./Layers/gps_track.md)
- [grass_in_parks](./Layers/grass_in_parks.md)
- [home_location](./Layers/home_location.md)
- [hydrant](./Layers/hydrant.md)
- [information_board](./Layers/information_board.md)
- [left_right_style](./Layers/left_right_style.md)
- [map](./Layers/map.md)
- [matchpoint](./Layers/matchpoint.md)
- [named_streets](./Layers/named_streets.md)
- [nature_reserve](./Layers/nature_reserve.md)
- [note](./Layers/note.md)
- [note_import](./Layers/note_import.md)
- [observation_tower](./Layers/observation_tower.md)
- [parking](./Layers/parking.md)
- [pedestrian_path](./Layers/pedestrian_path.md)
- [picnic_table](./Layers/picnic_table.md)
- [play_forest](./Layers/play_forest.md)
- [playground](./Layers/playground.md)
- [public_bookcase](./Layers/public_bookcase.md)
- [shops](./Layers/shops.md)
- [slow_roads](./Layers/slow_roads.md)
- [split_point](./Layers/split_point.md)
- [sport_pitch](./Layers/sport_pitch.md)
- [street_lamps](./Layers/street_lamps.md)
- [surveillance_camera](./Layers/surveillance_camera.md)
- [toilet](./Layers/toilet.md)
- [trail](./Layers/trail.md)
- [tree_node](./Layers/tree_node.md)
- [type_node](./Layers/type_node.md)
- [viewpoint](./Layers/viewpoint.md)
- [village_green](./Layers/village_green.md)
- [visitor_information_centre](./Layers/visitor_information_centre.md)
- [walls_and_buildings](./Layers/walls_and_buildings.md)
- [waste_basket](./Layers/waste_basket.md)
- [watermill](./Layers/watermill.md)
2021-12-04 21:44:32 +01:00
2021-11-08 02:36:01 +01:00
This document is autogenerated from AllKnownLayers.ts