Replace OSM markers with recolured versions of the Leaflet marker
authorTom Hughes <tom@compton.nu>
Tue, 20 Nov 2012 23:11:41 +0000 (23:11 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 21 Nov 2012 18:43:20 +0000 (18:43 +0000)
app/assets/images/marker-blue.png
app/assets/images/marker-green.png
app/assets/images/marker-red.png
app/assets/images/marker-yellow.png
app/assets/javascripts/map.js.erb

index b5d592365fd563993126d98c1411c5dc3485dce5..7614b7c7f6816e70965810833819a372ec50620f 100644 (file)
Binary files a/app/assets/images/marker-blue.png and b/app/assets/images/marker-blue.png differ
index e599197a345126baaaaaedd4c3d24c03c8ba4064..56a0b1c47ef8524432b9e1f891e27a74b54957b3 100644 (file)
Binary files a/app/assets/images/marker-green.png and b/app/assets/images/marker-green.png differ
index bd134d929ad219507d9fd45e80402ad50332b5a5..46c70185a9cce81511db93eaa2a518d00b4fdef6 100644 (file)
Binary files a/app/assets/images/marker-red.png and b/app/assets/images/marker-red.png differ
index 5e56a452629a74d8f4093edb1e65975da26a1894..eb6d6ef74c35842986b2cc12641608b69a48efde 100644 (file)
Binary files a/app/assets/images/marker-yellow.png and b/app/assets/images/marker-yellow.png differ
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]
   });
 }