]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/map.js.erb
Replace OSM markers with recolured versions of the Leaflet marker
[rails.git] / app / assets / javascripts / map.js.erb
index e30e073ba4eafa412a67cb984b5917e2dd56bf54..6701cf74011009fa320ef5616ceeed08a32510fc 100644 (file)
@@ -115,9 +115,11 @@ function createMap(divName, options) {
 function getUserIcon(url) {
   return L.icon({
     iconUrl: url || <%= asset_path('marker-red.png').to_json %>,
-    iconSize: [19, 25],
-    iconAnchor: [11, 26],
-    popupAnchor: [-1, -20]
+    iconSize: [25, 41],
+    iconAnchor: [12, 41],
+    popupAnchor: [1, -34],
+    shadowUrl: <%= asset_path('images/marker-shadow.png').to_json %>,
+    shadowSize: [41, 41]
   });
 }