mapcomplete/Docs/Layers/current_view.md

55 lines
No EOL
1.4 KiB
Markdown

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'.
## Table of contents
1. [current_view](#current_view)
- [Basic tags for this layer](#basic-tags-for-this-layer)
- [Supported attributes](#supported-attributes)
- This layer is not visible by default and must be enabled in the filter by the user.
- 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`
[Go to the source code](../assets/layers/current_view/current_view.json)
Basic tags for this layer
---------------------------
Elements must have the all of following tags to be shown on this layer:
- <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>
Supported attributes
----------------------
This document is autogenerated from assets/layers/current_view/current_view.json