mapcomplete/Docs/Layers/current_view.md
2022-01-26 21:40:38 +01:00

1.3 KiB

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
  • Basic tags for this layer

  • 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

Basic tags for this layer

Elements must have the all of following tags to be shown on this layer:

Supported attributes

This document is autogenerated from assets/layers/current_view/current_view.json