Use the createLink function when pertinent
This commit is contained in:
parent
8656ca3059
commit
85c1af2b50
1 changed files with 4 additions and 5 deletions
|
@ -1347,15 +1347,14 @@ L.U.AttributionControl = L.Control.Attribution.extend({
|
||||||
L.DomUtil.createLink('', container, ` — ${L._('Home')}`, '/')
|
L.DomUtil.createLink('', container, ` — ${L._('Home')}`, '/')
|
||||||
}
|
}
|
||||||
if (this._map.options.captionMenus) {
|
if (this._map.options.captionMenus) {
|
||||||
const poweredBy = L.DomUtil.add(
|
L.DomUtil.createLink(
|
||||||
'a',
|
|
||||||
'',
|
'',
|
||||||
container,
|
container,
|
||||||
` — ${L._('Powered by uMap')}`
|
` — ${L._('Powered by uMap')}`,
|
||||||
|
'https://github.com/umap-project/umap/'
|
||||||
)
|
)
|
||||||
poweredBy.href = 'https://github.com/umap-project/umap/'
|
|
||||||
}
|
}
|
||||||
L.DomUtil.create('a', 'attribution-toggle', this._container)
|
L.DomUtil.createLink('attribution-toggle', this._container, '')
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue