fix: bring marker to front on highlight

fix #2351
This commit is contained in:
Yohan Boniface 2024-12-17 15:29:55 +01:00
parent 05c27aed98
commit 82708b1e53
3 changed files with 2 additions and 2 deletions

View file

@ -239,10 +239,12 @@ export const LeafletMarker = Marker.extend({
highlight: function () {
DomUtil.addClass(this.options.icon.elements.main, 'umap-icon-active')
this._bringToFront()
},
resetHighlight: function () {
DomUtil.removeClass(this.options.icon.elements.main, 'umap-icon-active')
this._resetZIndex()
},
getPopupToolbarAnchor: function () {

View file

@ -924,7 +924,6 @@ a.umap-control-caption,
width: 2px;
}
.umap-icon-active {
z-index: var(--zindex-icon-active)!important;
opacity: 1.0!important;
}
.umap-edit-enabled .readonly {

View file

@ -48,7 +48,6 @@
--zindex-autocomplete: 470;
--zindex-dialog: 460;
--zindex-contextmenu: 455;
--zindex-icon-active: 450;
--zindex-tooltip: 445;
--zindex-panels: 440;
--zindex-controls: 430;