Commit Graph

287 Commits

Author SHA1 Message Date
snkashis
38c4d9dd56 Check bounds when navigating with keyboard. #989 2012-12-18 14:17:18 -05:00
Vladimir Agafonkin
c6caf93c00 refactor build scripts, cleanup 2012-12-17 19:15:19 +02:00
Vladimir Agafonkin
6134a41554 jshint fixes and cleanup for uglifyjs2 2012-12-12 19:09:47 +02:00
Vladimir Agafonkin
40b59b2a85 add ability to call init hooks manually in the constructor 2012-12-12 17:48:30 +02:00
Vladimir Agafonkin
782e8e7dcf implement hooks for Class constructors (AOP-style), close #1123 2012-12-12 12:26:33 +02:00
Vladimir Agafonkin
b9d0d60a04 disable worldCopyJump by default, minor cleanup 2012-12-11 15:02:15 +02:00
Vladimir Agafonkin
96e4c80c75 revert clearing map div contents, fix positioning, close #278 again 2012-12-10 17:57:04 +02:00
danzel
babbbe829e Re-order zoom end so we completely stop the zoom before getting people to redraw. Otherwise firefox will animate the canvas redrawing which is totally weird. Fixes #1187 2012-11-30 11:27:12 +13:00
mourner
1d14b0c50d fix code style issues #1159, update build 2012-11-29 22:43:40 +02:00
Mattias Bengtsson
c0135a219d Added a bunch of tests and fixed some bugs those exposed.
Also don't try to automatically adjust zoom. Leave that to the
layer control for now and wait for a setBaseLayer / switchLayer
or something instead.
2012-11-19 04:36:13 +01:00
Mattias Bengtsson
6f1532f402 Fix for https://github.com/CloudMade/Leaflet/pull/623
There seems to be a timing bug though.
2012-11-18 22:07:27 +01:00
danzel
04908cee8d Always enable scrollWheelZoom (fixes scroll wheel zoom on mouse+touch devices) 2012-11-16 10:57:28 +13:00
Vladimir Agafonkin
469211d0cf fix slight scrolling zoom bug, closes #1039 2012-11-14 14:46:17 +02:00
Vladimir Agafonkin
10c0a63b3d fixed non-rounded panBy, closes #1085 2012-11-14 14:39:59 +02:00
Vladimir Agafonkin
eba4eb0a5c fix shift-click on the map 2012-11-14 14:07:36 +02:00
danzel
6fbf2a21bf Move reflow into PosAnimation.stop so users don't have to implement it themselves. 2012-11-09 16:13:52 +13:00
Vladimir Agafonkin
d37680735f rewrite and tweak inertia easing to make it smoother 2012-11-08 19:20:40 +02:00
danzel
128b615a08 Force a reflow when stopping a PanAnimation to start a ZoomAnimation so that the svg animation works correctly. Fixes #1125 2012-11-08 15:49:39 +13:00
Vladimir Agafonkin
dbd4da6255 add shortcuts for extend, bind, stamp and setOptions 2012-11-07 20:30:56 +02:00
Vladimir Agafonkin
2b225cc3a8 more whitespace fixes 2012-11-07 18:46:59 +02:00
Vladimir Agafonkin
a293f52e80 different whitespace fixes (smart tabs, lines no longer than 100) 2012-11-07 14:13:06 +02:00
danzel
3aeff55f24 Rename contextMenuEmulation -> longPress 2012-10-31 13:05:38 +13:00
danzel
1aff46cb27 Rewrite longpress->contextmenu to live inside Draggable instead as it needs deep interaction with it. When an emulated contextmenu is fired on touch we stop dragging and stop a click event from occurring. New map option to disable it if required: touchContextMenuEmulation 2012-10-31 12:59:58 +13:00
danzel
8bed7adb81 Make touch events work for IE10 using a wrapper approach (similar to DomEvent.DoubleTap). DoubleTap touch on IE10 doesn't currently work but everything else does. Refs #871 2012-10-18 14:23:09 +13:00
danzel
4565965cb1 Fix boxzoom for ie7, was trying to set negative width which is a JS error 2012-10-16 15:00:00 +13:00
John Firebaugh
0b4d2b0c44 Add Map#whenReady
Fixes #1063
2012-10-12 12:54:13 -07:00
danzel
b596383f45 Fix tile zoom animation in latest chrome canary and remove the translate(0,0) hack for other browsers as this fixes it too :-) Fixes #1056 2012-10-11 12:48:20 +13:00
John Firebaugh
fbf91fef54 Ensure that getBounds can be called during the first moveend event
Fixes #1027
2012-10-04 14:02:46 -07:00
Waldir
81c2bf93ca Fix #916 2012-09-23 15:06:44 +02:00
danzel
801734b0c3 IE needs translate(0,0) hack to animate right too. Fixes #870. (Fix found by oliverheilig, thanks!) 2012-09-21 09:29:09 +12:00
Vladimir Agafonkin
c18dd9b38f fix touch zoom regression 2012-08-14 10:50:49 +03:00
Vladimir Agafonkin
9625cdbbb9 fixed glitches with zooming on pan animation and panning on zoom animation 2012-08-13 15:41:20 +03:00
Vladimir Agafonkin
fd22f9f88a improved scroll wheel zoom to be more responsive 2012-08-13 15:38:26 +03:00
mourner
0bdc48a864 improve zoom control (shift-clicking) 2012-08-10 23:11:28 +03:00
mourner
8980f2d224 minor code cleanup, more destructive point operations 2012-08-10 22:40:55 +03:00
mourner
578f18ecfb adjust panning inertia more 2012-08-10 21:49:37 +03:00
Vladimir Agafonkin
2d2fc74110 get rid of the legacy L.Transition, replace with a better and simpler L.PosAnimation 2012-08-10 18:43:46 +03:00
Vladimir Agafonkin
2aa30376db fix IE9 regression (sorry!) 2012-08-07 18:43:52 +03:00
Vladimir Agafonkin
2109713511 fix iOS pinch-zoom regression and update build 2012-08-07 12:24:32 +03:00
Vladimir Agafonkin
9e89753c74 Remove Win/Meta key to zoom out binding, fix #869 2012-08-06 19:00:48 +03:00
Vladimir Agafonkin
0cca115ecb Fix map to not animate on resize by default 2012-08-06 13:36:52 +03:00
Vladimir Agafonkin
6f96435050 minor refactoring 2012-08-03 14:48:59 +03:00
Vladimir Agafonkin
e7f8a85836 Move tile layer transition to CSS, detect zoom transion end globally 2012-08-02 18:24:22 +03:00
Vladimir Agafonkin
96b759cb32 Remove android 2/3 hacks for TileLayer animation (we'll only support it for 4+) 2012-08-02 15:46:51 +03:00
Vladimir Agafonkin
10ffc863db Merge pull request #857 from ajbeaven/AnimatedInvalidateSize
Added option to animate pan on invalidateSize()
2012-07-31 01:11:27 -07:00
Andrew Beaven
2b27065c6b Added option to animate pan on invalidateSize() 2012-07-31 11:59:06 +12:00
Vladimir Agafonkin
4174390562 keyboard navigation cleanup, closes #646 #663 2012-07-27 15:10:17 +03:00
Vladimir Agafonkin
ccd6c2956f Merge branch 'master' of https://github.com/ericmmartinez/Leaflet into keyboard 2012-07-27 14:18:46 +03:00
Vladimir Agafonkin
cdfaad994f more TileLayer and Control.Layers zIndex improvements, #309 2012-07-27 12:32:24 +03:00
danzel
8667f357f2 Make zooming straight in at the bottom level do nothing rather than moving half a pixel across with odd sized windows (which makes the whole screen look blurry in chrome). We need floor rather than round otherwise we move 1px in each direction. 2012-07-26 13:58:44 +12:00