mirror of
https://github.com/umap-project/umap.git
synced 2025-04-29 03:42:37 +02:00
fix: bring marker to front on highlight (#2377)
fix #2351 The actual zIndex of a marker is computed by Leaflet, not set in CSS.
This commit is contained in:
commit
df3adbc85e
3 changed files with 2 additions and 2 deletions
|
@ -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 () {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue