forked from MapComplete/MapComplete
Fix(studio): add check for incorrect suggestions, fix incorrect suggestion which breaks setting a 'marker'
This commit is contained in:
parent
3bfdc1838c
commit
143dd70973
2 changed files with 19 additions and 4 deletions
|
|
@ -13,14 +13,15 @@ export interface IconConfigJson {
|
|||
*
|
||||
*
|
||||
* types: <span class="text-lg font-bold">Use a different icon depending on the value of some attributes</span> ; icon
|
||||
* suggestions: return [ "nsi_brand.icon", "nsi_operator.icon", "id_presets.shop_rendering", ...Constants.defaultPinIcons.map(i => ({if: "value="+i, then: i, icon: i}))]
|
||||
* suggestions: return [ {"if":"value=nsi_brand.icon", "then": "Use icons for brand from the Name Suggestion Index"}, {"if":"value=nsi_operator.icon", "then": "Use icons for operator from the Name Suggestion Index"}, {"if":"value=id_presets.shop_rendering", "then": "Use shop preset icons from iD"}, ...Constants.defaultPinIcons.map(i => ({if: "value="+i, then: i, icon: i}))]
|
||||
*/
|
||||
icon: string | MinimalTagRenderingConfigJson | { builtin: string; override: any }
|
||||
/**
|
||||
* question: What colour should the icon be?
|
||||
* This will only work for the default icons such as `pin`,`circle`,...
|
||||
* types: <span class="text-lg font-bold">Use a different color depending on the value of some attributes</span> ; color
|
||||
*
|
||||
* This will only work for the default icons such as `pin`,`circle`,...
|
||||
*
|
||||
* types: <span class="text-lg font-bold">Use a different color depending on the value of some attributes</span> ; color
|
||||
*/
|
||||
color?: string | MinimalTagRenderingConfigJson | { builtin: string; override: any }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue