X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1927bc6ca845f16220f15df0b0f0ac9ea12ce7f2..8aa6d575fff4fc850464f704282811208ae6f5e1:/app/assets/javascripts/map.js.erb?ds=sidebyside diff --git a/app/assets/javascripts/map.js.erb b/app/assets/javascripts/map.js.erb index e4392827e..6701cf740 100644 --- a/app/assets/javascripts/map.js.erb +++ b/app/assets/javascripts/map.js.erb @@ -112,19 +112,14 @@ function createMap(divName, options) { return map; } -function getArrowIcon() { - return L.icon({ - iconUrl: <%= asset_path('arrow.png').to_json %>, - iconSize: [25, 22], - iconAnchor: [22, 20] - }); -} - function getUserIcon(url) { return L.icon({ iconUrl: url || <%= asset_path('marker-red.png').to_json %>, - iconSize: [21, 25], - iconAnchor: [12, 27] + iconSize: [25, 41], + iconAnchor: [12, 41], + popupAnchor: [1, -34], + shadowUrl: <%= asset_path('images/marker-shadow.png').to_json %>, + shadowSize: [41, 41] }); }