Use the createLink function when pertinent

This commit is contained in:
David Larlet 2023-10-16 16:19:03 -04:00
parent 8656ca3059
commit 85c1af2b50
No known key found for this signature in database
GPG key ID: 3E2953A359E7E7BD

View file

@ -1347,15 +1347,14 @@ L.U.AttributionControl = L.Control.Attribution.extend({
L.DomUtil.createLink('', container, `${L._('Home')}`, '/')
}
if (this._map.options.captionMenus) {
const poweredBy = L.DomUtil.add(
'a',
L.DomUtil.createLink(
'',
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, '')
},
})