]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/map.js.erb
Use nicer markers
[rails.git] / app / assets / javascripts / map.js.erb
index ce75c1700a7fd5303550ce1331b56689a24bac79..6d15f1fdb4a87f69cd2396c930f64a437c94f6a3 100644 (file)
@@ -112,11 +112,11 @@ function createMap(divName, options) {
   return map;
 }
 
-function getArrowIcon() {
+function getUserIcon(url) {
   return L.icon({
-    iconUrl: <%= asset_path('arrow.png').to_json %>,
-    iconSize: [25, 22],
-    iconAnchor: [22, 20]
+    iconUrl: url || <%= asset_path('marker-red.png').to_json %>,
+    iconSize: [19, 25],
+    iconAnchor: [11, 26]
   });
 }