Allow dynamic point renderings in studio, fixes #1986

This commit is contained in:
Pieter Vander Vennet 2024-06-19 00:31:38 +02:00
parent ad7976f142
commit 436738ffa2
5 changed files with 600 additions and 368 deletions

View file

@ -5,6 +5,7 @@ export interface IconConfigJson {
/**
* question: What icon should be used?
* type: icon
* types: Use a dynamic value ; icon
* suggestions: return Constants.defaultPinIcons.map(i => ({if: "value="+i, then: i, icon: i}))
*/
icon: string | MinimalTagRenderingConfigJson | { builtin: string; override: any }
@ -12,6 +13,7 @@ export interface IconConfigJson {
* question: What colour should the icon be?
* This will only work for the default icons such as `pin`,`circle`,...
* type: color
* types: Use a dynamic color ; icon
*/
color?: string | MinimalTagRenderingConfigJson | { builtin: string; override: any }
}