Merge pull request #1894 from umap-project/fix-feature-edit-icon

fix: use correct icon class in edit feature panel
This commit is contained in:
Yohan Boniface 2024-06-14 17:31:42 +02:00 committed by GitHub
commit a2ba35cb93
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -144,7 +144,7 @@ U.FeatureMixin = {
edit: function (e) {
if (!this.map.editEnabled || this.isReadOnly()) return
const container = L.DomUtil.create('div', 'umap-feature-container')
L.DomUtil.createTitle(container, L._('Feature properties'), this.getClassName())
L.DomUtil.createTitle(container, L._('Feature properties'), `icon-${this.getClassName()}`)
let builder = new U.FormBuilder(
this,