Better docs, change wayhandling of nature_reserves

This commit is contained in:
Pieter Vander Vennet 2020-12-09 17:30:11 +01:00
parent 6391a3c88a
commit 354713221a
2 changed files with 12 additions and 6 deletions

View file

@ -126,15 +126,21 @@ export interface LayerConfigJson {
passAllFeatures?:boolean
/**
* Presets for this layer
* Presets for this layer.
* A preset shows up when clicking the map on a without data (or when right-clicking/long-pressing);
* it will prompt the user to add a new point.
*
* The most important aspect are the tags, which define which tags the new point will have;
* The title is shown in the dialog, along with the first sentence of the description.
*
* Upon confirmation, the full description is shown beneath the buttons - perfect to add pictures and examples.
*
* Note: the icon of the preset is determined automatically based on the tags and the icon above. Don't worry about that!
* NB: if no presets are defined, the popup to add new points doesn't show up at all
*/
presets?: {
title: string | any,
tags: string[],
/**
* The first sentence is shown in small letters beneath the button to add a new one.
* The full text is shown in the full popup
*/
description?: string | any,
}[],

View file

@ -341,7 +341,7 @@
}
],
"hideUnderlayingFeaturesMinPercentage": 10,
"wayHandling": 1,
"wayHandling": 2,
"icon": {
"render": "./assets/themes/buurtnatuur/nature_reserve.svg"
},