forked from MapComplete/MapComplete
themes(advertising): add (animated!) flag and screen icons
This commit is contained in:
parent
37da1ad035
commit
090130d596
7 changed files with 354 additions and 19 deletions
|
@ -24,13 +24,17 @@ export default class AddNewMarker extends Combine {
|
|||
for (const preset of filteredLayer.layerDef.presets) {
|
||||
const tags = TagUtils.KVtoProperties(preset.tags)
|
||||
const icon = layer.mapRendering[0]
|
||||
.GenerateLeafletStyle(new UIEventSource<any>(tags), false)
|
||||
.GenerateLeafletStyle(new UIEventSource<any>(tags), false, {
|
||||
noSize: true,
|
||||
})
|
||||
.html.SetClass("block relative")
|
||||
.SetStyle("width: 42px; height: 42px;")
|
||||
icons.push(icon)
|
||||
if (last === undefined) {
|
||||
last = layer.mapRendering[0]
|
||||
.GenerateLeafletStyle(new UIEventSource<any>(tags), false)
|
||||
.GenerateLeafletStyle(new UIEventSource<any>(tags), false, {
|
||||
noSize: true,
|
||||
})
|
||||
.html.SetClass("block relative")
|
||||
.SetStyle("width: 42px; height: 42px;")
|
||||
}
|
||||
|
|
|
@ -285,7 +285,9 @@ export default class SimpleAddUI extends LoginToggle {
|
|||
const tags = TagUtils.KVtoProperties(preset.tags ?? [])
|
||||
let icon: () => BaseUIElement = () =>
|
||||
layer.layerDef.mapRendering[0]
|
||||
.GenerateLeafletStyle(new UIEventSource<any>(tags), false)
|
||||
.GenerateLeafletStyle(new UIEventSource<any>(tags), false, {
|
||||
noSize: true,
|
||||
})
|
||||
.html.SetClass("w-12 h-12 block relative")
|
||||
const presetInfo: PresetInfo = {
|
||||
layerToAddTo: layer,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue