mirror of
https://github.com/umap-project/umap.git
synced 2025-05-18 19:50:36 +02:00
Compare commits
4 commits
8a207afaea
...
22846acb99
Author | SHA1 | Date | |
---|---|---|---|
![]() |
22846acb99 | ||
![]() |
693e775ca8 | ||
![]() |
44dbf2f0df | ||
![]() |
f3b11b03bc |
2 changed files with 6 additions and 1 deletions
|
@ -254,6 +254,7 @@ export default class Browser {
|
|||
if (datalayer.isVisible()) allHidden = false
|
||||
})
|
||||
this._umap.eachBrowsableDataLayer((datalayer) => {
|
||||
datalayer._forcedVisibility = true
|
||||
if (allHidden) {
|
||||
datalayer.show()
|
||||
} else {
|
||||
|
|
|
@ -70,6 +70,11 @@ const BaseIcon = DivIcon.extend({
|
|||
},
|
||||
|
||||
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({
|
||||
|
@ -86,7 +91,6 @@ const DefaultIcon = BaseIcon.extend({
|
|||
},
|
||||
|
||||
_setIconStyles: function (img, name) {
|
||||
if (this.feature.isActive()) this.options.className += ' umap-icon-active'
|
||||
BaseIcon.prototype._setIconStyles.call(this, img, name)
|
||||
const color = this._getColor()
|
||||
const opacity = this._getOpacity()
|
||||
|
|
Loading…
Reference in a new issue