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