Parcourir la source

fixed icon pin position

Jocelyn Delande il y a 10 ans
Parent
commit
19d012abb0
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      assets/map.js

+ 2 - 2
assets/map.js

@@ -13,7 +13,7 @@ $( document ).ready(function() {
 		//iconUrl: '../assets/leaflet/images/marker-blue.png',
         iconUrl: '../assets/leaflet/images/marker-icon.png',
 		iconSize: [25, 41],
-		iconAnchor: [16, 37],
+		iconAnchor: [12, 41],
 		popupAnchor: [0, -28]
 	});
 
@@ -21,7 +21,7 @@ $( document ).ready(function() {
     var seederIcon = L.icon({
         iconUrl: '../assets/leaflet/images/marker-icon-red.png',
 		iconSize: [25, 41],
-		iconAnchor: [16, 37],
+		iconAnchor: [12, 41],
 		popupAnchor: [0, -28]
 	});