forked from MapComplete/MapComplete
Remove 'language' as field from the layoutConfigJson as it is now calculated based on the title
This commit is contained in:
parent
8b46a7e052
commit
0f47b84229
11 changed files with 40 additions and 37 deletions
|
@ -150,7 +150,8 @@ export default class PointRenderingConfig extends WithContextLoader {
|
|||
tags: UIEventSource<any>,
|
||||
clickable: boolean,
|
||||
options?: {
|
||||
noSize: false | boolean
|
||||
noSize: false | boolean,
|
||||
includeBadges: true | boolean
|
||||
}
|
||||
):
|
||||
{
|
||||
|
@ -201,7 +202,11 @@ export default class PointRenderingConfig extends WithContextLoader {
|
|||
|
||||
|
||||
const icon = this.GetSimpleIcon(tags)
|
||||
const iconAndBadges = new Combine([icon, this.GetBadges(tags)])
|
||||
let badges = undefined;
|
||||
if( options?.includeBadges ?? true){
|
||||
badges = this.GetBadges(tags)
|
||||
}
|
||||
const iconAndBadges = new Combine([icon,badges ])
|
||||
.SetClass("block relative")
|
||||
|
||||
if (!options?.noSize) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue