mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +02:00
commit
22846acb99
1 changed files with 5 additions and 1 deletions
|
@ -70,6 +70,11 @@ const BaseIcon = DivIcon.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
onAdd: () => {},
|
onAdd: () => {},
|
||||||
|
|
||||||
|
_setIconStyles: function (img, name) {
|
||||||
|
if (this.feature.isActive()) this.options.className += ' umap-icon-active'
|
||||||
|
DivIcon.prototype._setIconStyles.call(this, img, name)
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
const DefaultIcon = BaseIcon.extend({
|
const DefaultIcon = BaseIcon.extend({
|
||||||
|
@ -86,7 +91,6 @@ const DefaultIcon = BaseIcon.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
_setIconStyles: function (img, name) {
|
_setIconStyles: function (img, name) {
|
||||||
if (this.feature.isActive()) this.options.className += ' umap-icon-active'
|
|
||||||
BaseIcon.prototype._setIconStyles.call(this, img, name)
|
BaseIcon.prototype._setIconStyles.call(this, img, name)
|
||||||
const color = this._getColor()
|
const color = this._getColor()
|
||||||
const opacity = this._getOpacity()
|
const opacity = this._getOpacity()
|
||||||
|
|
Loading…
Reference in a new issue