Skip to content
Snippets Groups Projects
Commit db59d599 authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

Merge branch 'feat/selected-marker-on-top' into 'dev'

feat/US28 put selected marker on top of the others

See merge request web-et-numerique/pamn_plateforme-des-acteurs-de-la-mediation-numerique/pamn_client!200
parents 51ffbb42 cc3c16c3
No related branches found
No related tags found
2 merge requests!2201.14,!200feat/US28 put selected marker on top of the others
......@@ -5,6 +5,7 @@
@import '../../../assets/scss/shapes';
@import '../../../assets/scss/buttons';
@import '../../../assets/scss/breakpoint';
@import '../../../assets/scss/z-index';
.map-wrapper {
border-radius: 6px;
......@@ -86,6 +87,7 @@
}
}
&:hover {
z-index: calc($map-selected-marker - 1) !important;
svg {
fill: $blue-hover;
&.mdm {
......@@ -160,3 +162,7 @@
.body-wrap {
height: 400px;
}
::ng-deep .on-top-marker {
z-index: $map-selected-marker !important;
}
......@@ -8,14 +8,14 @@ export const markerIcon = divIcon({
popupAnchor: [0, -48],
});
export const markerIconActive = divIcon({
className: null,
className: 'on-top-marker',
html: '<svg width="48" height="48"><use xlink:href="assets/ico/sprite.svg#map-markerSelected"></use></svg>',
iconSize: [48, 48],
iconAnchor: [24, 48],
popupAnchor: [0, -48],
});
export const markerIconHover = divIcon({
className: null,
className: 'on-top-marker',
html: '<svg width="48" height="48"><use xlink:href="assets/ico/sprite.svg#map-markerHover"></use></svg>',
iconSize: [48, 48],
iconAnchor: [24, 48],
......
$map-selected-marker: 600;
// Phone view
$btn-phone-switch-map-list-z-index: 1002;
$menu-phone-z-index: 1003;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment