mirror of
https://github.com/umap-project/umap.git
synced 2025-05-19 04:00:35 +02:00
Compare commits
No commits in common. "22846acb9908218e65109ad951ded0d073c95ea6" and "8a207afaeab54eef16f50b7d132d0766ca0a472d" have entirely different histories.
22846acb99
...
8a207afaea
2 changed files with 1 additions and 6 deletions
|
@ -254,7 +254,6 @@ export default class Browser {
|
||||||
if (datalayer.isVisible()) allHidden = false
|
if (datalayer.isVisible()) allHidden = false
|
||||||
})
|
})
|
||||||
this._umap.eachBrowsableDataLayer((datalayer) => {
|
this._umap.eachBrowsableDataLayer((datalayer) => {
|
||||||
datalayer._forcedVisibility = true
|
|
||||||
if (allHidden) {
|
if (allHidden) {
|
||||||
datalayer.show()
|
datalayer.show()
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -70,11 +70,6 @@ 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({
|
||||||
|
@ -91,6 +86,7 @@ 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