X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/648f23259680f55d233656413679c58eec98c985..5b42c683f5e5b401a935182a9ea2e30f1a03c22e:/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 ce75c1700..e4392827e 100644 --- a/app/assets/javascripts/map.js.erb +++ b/app/assets/javascripts/map.js.erb @@ -120,6 +120,14 @@ function getArrowIcon() { }); } +function getUserIcon(url) { + return L.icon({ + iconUrl: url || <%= asset_path('marker-red.png').to_json %>, + iconSize: [21, 25], + iconAnchor: [12, 27] + }); +} + function addObjectToMap(object, zoom, callback) { $.ajax({ url: OSM.apiUrl(object),