John Firebaugh
a0c6363bb6
Invalidate _initialCenter along with size ( fixes #1919 )
2013-08-05 14:09:09 -07:00
John Firebaugh
4fdf76ee90
Support center-oriented scroll/double-click zoom
2013-08-05 12:29:55 -07:00
Russell Davis
f568768142
Fix rounding issues in Map::invalidateSize
2013-08-01 23:14:11 -07:00
Vladimir Agafonkin
8d925b6acb
fix map scrolling right on click with horizontal scroll on page, close #1901
2013-07-25 12:49:16 +03:00
Vladimir Agafonkin
42a78fd867
fix infinite loop in getBounds and setMaxBounds, close #1895 , close #1866
2013-07-25 12:42:13 +03:00
Vladimir Agafonkin
75c133082c
fix Map min/maxZoom not overriding TileLayer-derived min/max, close #1848
2013-07-12 15:05:59 +03:00
Vladimir Agafonkin
a4c6c03550
break line to fix jshint
2013-07-12 12:46:10 +03:00
Vladimir Agafonkin
5c1a34979e
fix fakeStop in IE<9, close #1850 hopefully
2013-07-12 12:41:08 +03:00
Vladimir Agafonkin
5829963014
do not animate zoom if nothing to animate yet, close #1484 , close #1845
2013-07-11 15:59:13 +03:00
Vladimir Agafonkin
183c8a2cb7
merge #1834 (passing options to setMaxBounds)
2013-07-11 13:03:41 +03:00
John Firebaugh
4839c44509
Fire layerremove after removing the layer
...
This is consistent with 0.5.x and seems more useful. Updating
the state of a layer switcher using map.hasLayer in response
to layeradd and layerremove events is my use case.
2013-07-08 16:53:04 -07:00
David Beitey
c663392697
Allow options to be passed to Map.setMaxBounds such that they can be used when setting the view.
2013-07-05 14:12:09 +10:00
danzel
fef108cc8e
Fix worldCopyJump if you start zoomed all the way out. Fixes #1831
2013-07-05 14:35:48 +12:00
danzel
71e851fa40
Remove trailing comma, fixes IE7. Refs #1755
2013-07-01 15:56:04 +12:00
John Firebaugh
725124931f
preventDefault on MozMousePixelScroll
...
This prevents scrolling without changing the zoom delta
calculations.
Fixes #1794
2013-06-27 10:28:13 -04:00
John Firebaugh
bc40266bc9
Revert "Use "wheel" event where supported ( #1788 )"
...
This reverts commit a784c560e5
.
2013-06-27 10:27:42 -04:00
John Firebaugh
7355070958
Merge pull request #1789 from Leaflet/wheel
...
Use "wheel" event where supported (#1788 )
2013-06-25 10:40:14 -07:00
John Firebaugh
a784c560e5
Use "wheel" event where supported ( #1788 )
2013-06-25 13:31:51 -04:00
Vladimir Agafonkin
55a36e2fe8
fix regression of not being able to addLayer in initHooks
2013-06-25 11:25:10 -04:00
John Firebaugh
cb4b4ff343
Remove preventDefault from BoxZoom too
2013-06-25 10:12:02 -04:00
Vladimir Agafonkin
89d0730254
fix Android firing click twice on buttons, close #1785 , related #1694
2013-06-25 09:45:35 -04:00
Vladimir Agafonkin
28ba41eced
disable tap hacks on IE, ref #1694
2013-06-24 23:11:51 -04:00
Vladimir Agafonkin
e72e2476f8
remove leftover code
2013-06-24 22:38:38 -04:00
Vladimir Agafonkin
f9ea4758f8
move all tap hacks code into a separate handler, close #1781
2013-06-24 18:17:25 -04:00
Vladimir Agafonkin
a12bd9474f
call init hooks before adding layers (fixes zoom anim regression)
2013-06-24 17:37:31 -04:00
Vladimir Agafonkin
5a7420dd1a
Propagate popup clicks outside of map container, close #301
2013-06-24 15:19:17 -04:00
Tom MacWright
130d6d0fac
Ignore pan keyboard event if the map is animating. Fixes #1710
2013-06-24 13:50:24 -04:00
Vladimir Agafonkin
6c061b2995
fix zoom not working with L_DISABLE_3D regression, close #1756
2013-06-24 11:32:51 -04:00
Vladimir Agafonkin
57a3112b85
fix geolocation data regression in FF/IE, close #1755
2013-06-24 09:50:47 -04:00
Vladimir Agafonkin
9bd725d669
fix zoom anim regression with a hack for now, close #1705
2013-06-24 09:39:49 -04:00
Vladimir Agafonkin
ca4918977b
change map.invalidateSize signature to accept options, close #1767 , #1766
2013-06-24 09:26:23 -04:00
jacobtoye
f9920c87f0
Moving brace to correct position.
2013-06-21 09:38:44 +12:00
jacobtoye
b262fdd26b
Add parameter to invalidateSize for changing the center.
2013-06-20 16:59:14 +12:00
Vladimir Agafonkin
66d6403ddd
update layers icon, add retina version, cleaner popup styles, close #1739
2013-06-11 15:44:21 +03:00
Josh Caldwell
df5e43a062
Unbind moveend event when maxBounds removed
2013-06-10 18:32:20 -04:00
Vladimir Agafonkin
aaad3cbe2f
fix hinting error, update build
2013-06-03 12:39:28 +03:00
John Firebaugh
4802561e0e
Don't fire layerremove if layeradd was never fired
2013-06-01 22:16:53 -07:00
John Firebaugh
51fccc80fe
Don't call Layer#onAdd on a layer that has been removed
2013-06-01 22:11:42 -07:00
John Firebaugh
055b3393da
Don't call Layer#onRemove if Layer#onAdd was never called
2013-06-01 21:50:18 -07:00
John Firebaugh
01bede20d1
Fix indentation
2013-06-01 21:49:45 -07:00
Vladimir Agafonkin
6f752d171b
simplify zoom anim a bit
2013-05-10 17:28:27 +03:00
Vladimir Agafonkin
f2d237b01c
Merge pull request #1617 from Leaflet/setview-anim
...
Control animation in setView/panTo/setZoom/fitBounds/etc.
2013-05-03 02:12:21 -07:00
Vladimir Agafonkin
df72027401
accept true as a third setView argument for compatibility
2013-04-30 17:09:55 +03:00
Vladimir Agafonkin
5ab4d4a4be
minor cleanup
2013-04-30 17:08:10 +03:00
Vladimir Agafonkin
260a869da6
accept global animate option in setView
2013-04-30 17:06:16 +03:00
Vladimir Agafonkin
8d759e6c5e
clean up handlers and panes on map remove, close #1621
2013-04-30 16:51:51 +03:00
Vladimir Agafonkin
05bbb68cd8
rename zoom/panOptions to zoom/pan in setView options
2013-04-24 18:13:36 +03:00
Vladimir Agafonkin
55d95d1362
options in view change methods, ability to turn on/off animation, closes #1616
2013-04-24 16:24:56 +03:00
Vladimir Agafonkin
b61b7b4757
don't scroll to top of the map on focus, close #1228 , close #1540
2013-04-23 11:57:42 +03:00
Vladimir Agafonkin
94098134a6
fix regression in Map hasLayer
2013-04-22 19:20:19 +03:00
Vladimir Agafonkin
113e55c62a
better property name
2013-04-22 18:24:55 +03:00
Vladimir Agafonkin
6fa08d31c6
prevent setView after geolocation if called stopLocate, close #747
2013-04-22 18:24:11 +03:00
Vladimir Agafonkin
557ebaad3c
cleanup, utilize factories more
2013-04-22 17:49:03 +03:00
Vladimir Agafonkin
29239891d8
minor cleanup
2013-04-22 17:20:34 +03:00
Vladimir Agafonkin
eafa54635b
simplify fitBounds-related code, fix typo
2013-04-22 17:06:42 +03:00
Vladimir Agafonkin
de0cd66f88
Add padding options for map.fitBounds/getBoundsZoom, close #859
...
Also make fitBounds accept ILayer, and fix bounds for fitWorld, close
#960
2013-04-22 15:21:30 +03:00
Vladimir Agafonkin
9ac57e04f4
move Map control methods to Control.js
2013-04-20 17:04:17 +03:00
Vladimir Agafonkin
7cb7993571
simplify popup methods, merge #738
2013-04-20 16:58:42 +03:00
Vladimir Agafonkin
bd0bc4f2e5
fire load before viewreset/moveend
2013-04-20 12:07:00 +03:00
Vladimir Agafonkin
340dacde81
remove hasOwnProperty checks, close #1606
2013-04-20 11:32:23 +03:00
Vladimir Agafonkin
e01fe91a33
fix fitBounds for large bounds, close #1069 , thanks to @MaZderMind
2013-04-19 15:43:39 +03:00
Vladimir Agafonkin
d856e8814e
don't animate if zoom difference is too large, close #1377
...
also adds zoomAnimationThreshold map option (defaults to 4)
2013-04-19 12:47:55 +03:00
Vladimir Agafonkin
db6d689ad8
fix lots of maxBounds issues, close #1491 , close #1475 , close #1194 , close #900 , #1333
2013-04-18 17:05:47 +03:00
Vladimir Agafonkin
0b1bc7a94c
add resize event, close #1564
2013-04-18 15:26:45 +03:00
danzel
989d9b9763
Fix up brace position
2013-04-16 08:25:22 +12:00
danzel
b36d973d14
Better fixes for touchzoom while zooming. If we got a touchmove and touchend in series before the animation frame for the touchmove fired then we'd get into a broken state.
2013-04-15 11:53:31 +12:00
danzel
633ae89b8e
Fix touch zooming while zoom animation is playing. Fixes #1591 #1571
2013-04-15 09:57:47 +12:00
Vladimir Agafonkin
c4dc595490
more strict jshinting, enforce single quotes and camelCase for consistency
2013-04-11 12:45:52 +03:00
Vladimir Agafonkin
c6cdd66e2d
add map setZoomAround, merge #1582 , close #1157
2013-04-11 12:07:07 +03:00
Ansis Brammanis
6c53aa6867
dblclicking now zooms around mouse, not centre
2013-04-10 17:09:31 -04:00
Vladimir Agafonkin
386bf68386
Merge pull request #1574 from tmcw/map-initialization-exception
...
Throw an exception if a map div is not found and test for initialization exceptions
2013-04-08 13:46:53 -07:00
Christian Schwarz
48bec16f49
Fixed zoom out on Windows 8 with Firefox
...
Firefox receives wheel delta of 0.33 on zoom in and -0.33 on zoom out, which turns into Math.ceil(0.33) == 1 and Math.round(-0.33) == 0. After this fix it returns correctly -1 for zooming out.
Worked fine before and after this fix in Chrome and Internet Explorer.
2013-04-08 23:33:53 +03:00
Tom MacWright
22810aacf7
Throw an exception if a map div is not found
...
and test for initialization exceptions
2013-04-08 12:28:27 -04:00
Vladimir Agafonkin
08a8c39088
fix moveend not always firing on drag
2013-03-28 11:10:44 +02:00
danzel
9ae07469c5
Fix zooming on browsers without zoom animation support. Refs #1486
2013-03-05 09:29:41 +13:00
John Firebaugh
511fbb9f44
Add Map#eachLayer ( fixes #1457 )
2013-02-26 11:39:00 -08:00
Vladimir Agafonkin
a2890d6c4b
cleanup and prettify animation code, more comments
2013-02-22 17:29:52 +02:00
John Firebaugh
46dddc895c
Fire an unload event on removal
...
Plugins that need to bind events to `window` or `document`
can attach a listener for this event and unbind their event
handlers.
However, for symmetry, unload is fired only if load has been
fired.
2013-02-21 17:31:09 -08:00
Vladimir Agafonkin
5558987272
fix geolocation accuracy bounds, add more event data, close #984 , related #584 , #987 , #1028
2013-02-21 14:41:26 +02:00
Yohan Boniface
7fd4ca20fe
Allow for canceling a boxzoom being drawn pressing Escape key
2013-02-20 20:47:23 +01:00
Vladimir Agafonkin
5c18361aa2
fix typo, fix animated setView not converting latlng input
2013-02-20 20:54:12 +02:00
Vladimir Agafonkin
cf00a0113d
fix rounding error when changing zoom, close #426
2013-02-20 20:11:47 +02:00
Vladimir Agafonkin
06190b1ec8
Merge pull request #1434 from jfirebaugh/remove
...
Add Map#remove
2013-02-20 09:41:44 -08:00
Vladimir Agafonkin
40a824fc97
refactor TileLayer animation, fix #1140 , #1437 , #52 , #1442
...
Refactored TileLayer animation so that it happens for each tile layer
independently instead of animating the parent of all tile layers. Moved
TileLayer animation code into a separate file (TileLayer.Anim.js).
Fixes loads of bugs and makes the code easier to understand.
2013-02-20 18:40:00 +02:00
John Firebaugh
6ef25866eb
Add Map#remove
...
This is a minimal implementation; it only unbinds events
and deletes the _leaflet flag from the container.
Refs #1101 .
2013-02-19 17:36:03 -08:00
Vladimir Agafonkin
d98b4ea035
throw meaningful exception on getCenter before setView, close #1395
2013-02-19 16:54:29 +02:00
Vladimir Agafonkin
a948379db8
Merge pull request #1376 from moonlite/zoomlevelschange-event
...
Zoomlevelschange event
2013-02-14 03:35:57 -08:00
Mattias Bengtsson
cbee6851c8
Don't expose getZoomLevels.
2013-02-14 12:00:08 +01:00
Mattias Bengtsson
efe0c6f6ea
Fire zoomlevelschange event when zoomlevels are updated.
...
This is triggered when you remove a layer from a map with greater
zoom level coverage than the remainding layers or when you add a tilelayer
with greater zoomlevel coverage than the previous set of layers had.
2013-02-14 03:04:10 +01:00
oslek
c3ccf01a29
prevent extra movestart on inertia drag
2013-02-13 13:35:40 -08:00
oslek
f7301fa267
fire dragend before moveend for consistency
2013-02-13 13:25:02 -08:00
oslek
2c11fdfa6d
prevent false move events in invalidateSize
2013-02-13 12:38:33 -08:00
Roemer Vlasveld
109fd06ae6
hasLayer not checking for null
...
Return false when checking for a null object in L.Map.hasLayer, in
response to issue #1282 .
2013-01-21 23:22:01 +01:00
Vladimir Agafonkin
eed2c8a12b
fix FF minus key, close #869 , update changelog and build
2013-01-17 11:51:52 +02:00
oslek
7dd7e4f699
Robust array type check for cross-frame support
...
In a multi-frame DOM environment, if setView is called with an array for
the first parameter, a subsequent call to getBounds raises "Invalid
LatLng object" exception. This is the case if the array passed to
setView was created outside the iFrame that contains the map. It causes
the array test using "instanceof" in L.latLng to fail, and
_initialTopLeftPoint to not being properly initialized.
Thank you to Juriy Zaytsev for the full explaination:
http://perfectionkills.com/instanceof-considered-harmful-or-how-to-write-a-robust-isarray/
John Resig and Dean Edwards post comments and concur.
2013-01-14 14:04:50 -08:00
Vladimir Agafonkin
b9727d9190
made up my mind about comment format, add some more comments
2012-12-20 12:37:40 +02:00
Vladimir Agafonkin
b0e5c817a9
more comments and cleanup
2012-12-19 18:47:28 +02:00
Vladimir Agafonkin
51aa31fa8a
cleanup keyboard maxbounds
2012-12-19 16:41:13 +02:00
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
Vladimir Agafonkin
19ed1859bd
fix no geolocation error handling
2012-07-25 19:51:51 +03:00
Vladimir Agafonkin
3c70e3cb3b
removed scale dependency for copyWorldJump
2012-07-25 17:12:56 +03:00
Vladimir Agafonkin
55c35828a8
Fix jittery marker movement on pinch-zoom (removed position rounding)
2012-07-25 11:14:21 +03:00
Vladimir Agafonkin
183f36c1a9
improve pinch-zoom performance on mobile Chrome and Firefox
2012-07-25 11:13:36 +03:00
Vladimir Agafonkin
5a1e2a926f
make zoom animation cancel the resize moveend trigger
2012-07-24 17:55:48 +03:00
mourner
d608222018
revert removing immediate option in reqAnimFrame
2012-07-20 21:34:21 +03:00
Vladimir Agafonkin
85b9baa41f
slightly increase scroll-wheel-zoom responsiveness
2012-07-18 14:04:13 +03:00
jacobtoye
770d2c899f
change second map mousedown to be mouseup
2012-07-16 15:34:55 +12:00
jacobtoye
661c6c6d1d
Revert "change second mousedown to be mouseup"
...
This reverts commit 3b6f57e233
.
2012-07-16 15:28:13 +12:00
jacobtoye
3b6f57e233
change second mousedown to be mouseup
2012-07-16 15:10:53 +12:00
Vladimir Agafonkin
bd1510cec4
improve panning inertia, fix animation easings on IE
2012-07-12 17:46:17 +03:00
Vladimir Agafonkin
275760352b
remove accidental console.log
2012-07-12 15:54:44 +03:00
Vladimir Agafonkin
532ff7232d
optimize map resizing
2012-07-12 15:53:58 +03:00
Vladimir Agafonkin
01e26a4cce
add Map mouseup event
2012-07-12 15:48:44 +03:00
Jan Pieter Waagmeester
97e3d08dd5
Use L.DomUtil.addClass to add classes instead of direct attribute manipulation
2012-07-05 16:59:00 +02:00
Jan Pieter Waagmeester
f1480557af
Merge branch 'master' of git://github.com/CloudMade/Leaflet
2012-07-05 15:45:28 +02:00
Jan Pieter Waagmeester
6096795c1c
Fix regexp in DomUtil.removeClass to correctly remove spaces, use addClass in stead of manual class manimulation in Map.ZoomAnimation
2012-07-05 15:41:55 +02:00
Vladimir Agafonkin
16cdb668b2
merge simplify-api
2012-07-05 16:24:42 +03:00
Vladimir Agafonkin
3e24ed5400
more work on simplified api
2012-07-05 14:45:06 +03:00
Vladimir Agafonkin
7ea7b144f9
Merge pull request #759 from danzel/zoom-marker-hack-fix
...
Zoom Marker Hack Fix
2012-07-04 16:09:11 -07:00
Vladimir Agafonkin
0d6749a3ac
initial API simplification
2012-07-03 17:06:44 +03:00
danzel
62061396cc
Make the android hacks only happen for android 2 and 3. On 4 (and hopefully future version) actually seem to do everything correct (Tested in chrome and the native browser)
2012-07-03 10:23:22 +12:00
danzel
dc46ae2ae3
By default only enable markerZoomAnimation if the browser supports transition and 3d. Allows Browser.any3d=false hack to work again
2012-07-03 08:25:12 +12:00
mourner
50c6c480b4
add window and undefined to outer closure
2012-07-01 16:18:00 +03:00
mourner
28a21fd4c3
minor cleanup / refactoring, fix removeEventListener bug
2012-07-01 15:46:31 +03:00
mourner
0f40da1cce
merge events by Guiswa, minor cleanup/refactoring
2012-06-30 14:51:09 +03:00
mourner
8d619899b0
refactoring, map getZoomScale and getScaleZoom, fix path zoom anim to take clip padding into account
2012-06-29 02:59:49 +03:00
mourner
9387db04c2
refactoring, cleanup, add Bounds.getBottomLeft and getTopRight
2012-06-29 01:47:30 +03:00
Charlie Moad
4a9b87bdbb
use abs val distance
2012-06-27 21:18:02 -04:00
mourner
bbd3c93237
add ImageOverlay opacity, hide on zoom animation
2012-06-25 23:45:37 +03:00
mourner
76b0a1de5a
get rid of "unbounded" stuff (unprojection should always be unbounded)
2012-06-22 18:24:08 +03:00
danzel
a1afe37436
Rename animateMarkerZoom to markerZoomAnimation to match other animation options.
2012-06-22 09:36:01 +12:00
mourner
46a2e3456d
Merge branch 'danzel-animate-zoom-tryagain'
2012-06-21 14:53:48 +03:00
danzel
9cec6643f1
Use a generic class (leaflet-zoom-animated) instead of explicitly stating in the CSS what things are zoom animated.
2012-06-21 12:05:31 +12:00
danzel
6d725f02cd
Change animateMarkerZoom to use a class/style rather than setting visibility directly.
2012-06-21 11:22:22 +12:00
danzel
df07bf0ae6
Use generic transform rather than webkit, should make this work on a win8 touch tablet, now I just need someone to give me one to test on :-)
2012-06-21 10:37:28 +12:00
danzel
f56682ef31
Add an option to the map: animateMarkerZoom (default true). Set to false and markers will disappear instead of animating when the zoom animation plays.
2012-06-20 16:49:29 +12:00
danzel
be9f96c645
Re-Add TouchZoom firing the zoomstart event
2012-06-20 16:48:35 +12:00
mourner
ff47132527
move private method into correct place
2012-06-19 17:25:07 +03:00
mourner
45d9421417
refactoring, fix autopanning bug
2012-06-19 16:38:40 +03:00
danzel
8d605a0f8d
rename _zooming inside Path to _pathZooming so it has a different name to _zooming in Map.TouchZoom. Minor other tidy ups.
2012-06-19 15:11:41 +12:00
Rob Brackett
a3d91156a2
Add support for maps with position: fixed
2012-06-18 18:11:27 -07:00
danzel
4b638bde42
Fix up TouchZoom free-zoom. 'zoomstart' event is abused a bit now, might need to fix that.
2012-06-19 09:20:36 +12:00
danzel
9bb49ac4e3
Fix merge issue
2012-06-19 09:20:35 +12:00
danzel
da475a9d23
Don't animate movement when zooming by touch. Still doesn't work right for touch.
2012-06-19 09:20:35 +12:00
danzel
b33d1f3231
Working towards making this work on touch browsers. Doesn't quite work yet but getting there.
2012-06-19 09:20:34 +12:00
danzel
c04020aa18
Remove remaining hacks from Map.ZoomAnimation and implement them properly (using events) in Marker and Popup.
2012-06-19 09:20:34 +12:00
danzel
1ac3a1ba59
Fix up Map.js zoomstart event
2012-06-19 09:20:33 +12:00
danzel
0b30a9b893
Move more zoom animation bits out to css
2012-06-19 09:20:33 +12:00
danzel
d30d057968
Do major tidy ups on the SVG zoom animation, pretty certain that this is tidy now.
...
Conflicts:
src/map/anim/Map.ZoomAnimation.js
2012-06-19 09:20:31 +12:00
danzel
1fc674b58a
Fix up SVG zooming with firefox
2012-06-19 09:20:30 +12:00
danzel
6e1802a7db
Animate SVG layers when zooming
2012-06-19 09:20:30 +12:00