]> git.openstreetmap.org Git - rails.git/commitdiff
Move the note popups up slightly
authorTom Hughes <tom@compton.nu>
Sun, 3 Feb 2013 13:04:14 +0000 (13:04 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 3 Feb 2013 13:04:14 +0000 (13:04 +0000)
The default position makes it hard to grab the marker and move it
when adding a note, so move themm up a few pixels.

app/assets/javascripts/index/notes.js.erb

index 4e9b502544f6d8d60f8fcf7949b57e65f24975ad..c02c633dc236726052a9aacf44bf4a2f722d3eb5 100644 (file)
@@ -110,6 +110,7 @@ $(document).ready(function () {
       minWidth: 320,
       maxWidth: mapSize.y * 1 / 3, 
       maxHeight: mapSize.y * 2 / 3, 
+      offset: new L.Point(0, -3),
       autoPanPadding: new L.Point(60, 40)
     };
   }