From: Tom Hughes Date: Tue, 20 Nov 2012 23:11:41 +0000 (+0000) Subject: Replace OSM markers with recolured versions of the Leaflet marker X-Git-Tag: live~5743^2~8 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/62ba6b50ba67e7278d397f07f3d82c9cb8635678 Replace OSM markers with recolured versions of the Leaflet marker --- diff --git a/app/assets/images/marker-blue.png b/app/assets/images/marker-blue.png index b5d592365..7614b7c7f 100644 Binary files a/app/assets/images/marker-blue.png and b/app/assets/images/marker-blue.png differ diff --git a/app/assets/images/marker-green.png b/app/assets/images/marker-green.png index e599197a3..56a0b1c47 100644 Binary files a/app/assets/images/marker-green.png and b/app/assets/images/marker-green.png differ diff --git a/app/assets/images/marker-red.png b/app/assets/images/marker-red.png index bd134d929..46c70185a 100644 Binary files a/app/assets/images/marker-red.png and b/app/assets/images/marker-red.png differ diff --git a/app/assets/images/marker-yellow.png b/app/assets/images/marker-yellow.png index 5e56a4526..eb6d6ef74 100644 Binary files a/app/assets/images/marker-yellow.png and b/app/assets/images/marker-yellow.png differ diff --git a/app/assets/javascripts/map.js.erb b/app/assets/javascripts/map.js.erb index e30e073ba..6701cf740 100644 --- a/app/assets/javascripts/map.js.erb +++ b/app/assets/javascripts/map.js.erb @@ -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] }); }