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

fix: map marker icon position

parent 1ad81263
No related branches found
No related tags found
1 merge request!31Recette
......@@ -60,8 +60,6 @@
stroke-width: unset !important;
}
}
margin-top: 0 !important;
margin-left: -21px !important;
}
::ng-deep .leaflet-popup {
......
......@@ -10,26 +10,28 @@ export class MapService {
public markerIconHover = divIcon({
className: null,
html: '<svg width="40" height="46"><use xlink:href="assets/ico/sprite.svg#map-marker-locate"></use></svg>',
iconSize: [35, 41],
iconAnchor: [13, 41],
iconSize: [40, 46],
iconAnchor: [20, 46],
popupAnchor: [0, -46],
});
public markerIcon = divIcon({
className: null,
html: '<svg width="40" height="46"><use xlink:href="assets/ico/sprite.svg#map-marker"></use></svg>',
iconSize: [35, 41],
iconAnchor: [13, 41],
iconSize: [40, 46],
iconAnchor: [20, 46],
popupAnchor: [0, -46],
});
public markerIconMdm = divIcon({
className: null,
html: '<svg width="19" height="24"><use xlink:href="assets/ico/sprite.svg#mdm"></use></svg>',
iconSize: [19, 24],
iconAnchor: [19, 24],
iconAnchor: [9, 0],
});
public markerIconMdmHover = divIcon({
className: null,
html: '<svg width="19" height="24"><use xlink:href="assets/ico/sprite.svg#mdm-hover"></use></svg>',
iconSize: [19, 24],
iconAnchor: [19, 24],
iconAnchor: [9, 0],
});
constructor() {}
......
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