Browse Source

fixed icon pin position

Jocelyn Delande 10 years ago
parent
commit
19d012abb0
1 changed files with 2 additions and 2 deletions
  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-blue.png',
         iconUrl: '../assets/leaflet/images/marker-icon.png',
         iconUrl: '../assets/leaflet/images/marker-icon.png',
 		iconSize: [25, 41],
 		iconSize: [25, 41],
-		iconAnchor: [16, 37],
+		iconAnchor: [12, 41],
 		popupAnchor: [0, -28]
 		popupAnchor: [0, -28]
 	});
 	});
 
 
@@ -21,7 +21,7 @@ $( document ).ready(function() {
     var seederIcon = L.icon({
     var seederIcon = L.icon({
         iconUrl: '../assets/leaflet/images/marker-icon-red.png',
         iconUrl: '../assets/leaflet/images/marker-icon-red.png',
 		iconSize: [25, 41],
 		iconSize: [25, 41],
-		iconAnchor: [16, 37],
+		iconAnchor: [12, 41],
 		popupAnchor: [0, -28]
 		popupAnchor: [0, -28]
 	});
 	});