Refactoring: split AndOrTagConfigJson into an AndTagConfig and an OrTagConfig

This commit is contained in:
Pieter Vander Vennet 2022-07-18 00:10:41 +02:00
parent e225b8e45b
commit 9ae40d8af2
10 changed files with 41 additions and 32 deletions

View file

@ -1,5 +1,5 @@
import {TagRenderingConfigJson} from "./TagRenderingConfigJson";
import {AndOrTagConfigJson} from "./TagConfigJson";
import {TagConfigJson} from "./TagConfigJson";
/**
* The PointRenderingConfig gives all details onto how to render a single point of a feature.
@ -39,7 +39,7 @@ export default interface PointRenderingConfigJson {
* Note: strings are interpreted as icons, so layering and substituting is supported. You can use `circle:white;./my_icon.svg` to add a background circle
*/
iconBadges?: {
if: string | AndOrTagConfigJson,
if: TagConfigJson,
/**
* Badge to show
* Type: icon