]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/map.js.erb
Move popup anchor definition to icon
[rails.git] / app / assets / javascripts / map.js.erb
index e4392827e31425acf0b7fbe88c9944b5f04d2654..e30e073ba4eafa412a67cb984b5917e2dd56bf54 100644 (file)
@@ -112,19 +112,12 @@ 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: [19, 25],
+    iconAnchor: [11, 26],
+    popupAnchor: [-1, -20]
   });
 }