Commit Graph

2414 Commits

Author SHA1 Message Date
Vladimir Agafonkin
a5e8bc0f49 add Util.invokeEach for hash arguments in event methods 2013-04-19 17:23:14 +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
5ded0ba150 more draggable cleanup 2013-04-19 15:36:18 +03:00
Vladimir Agafonkin
81e2a33f7d cleanup draggable 2013-04-19 14:45:01 +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
2a0e284e72 bring autopanstart event back, close #1375 2013-04-19 11:51:59 +03:00
Vladimir Agafonkin
30fe673ca2 don't remove layer grom a group if it doesn't belong to it, close #1383 2013-04-19 11:44:33 +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
Vladimir Agafonkin
b1a31fa5e4 fix tilelayer anim glitch, close #1548 2013-04-18 15:19:38 +03:00
Vladimir Agafonkin
55ed23c560 major changelog update 2013-04-18 12:43:40 +03:00
Vladimir Agafonkin
9b761b0ca1 more events code cleanup 2013-04-18 11:15:33 +03:00
Vladimir Agafonkin
4401e63b87 refactor and simplify events code 2013-04-17 20:12:26 +03:00
Vladimir Agafonkin
443d43cce9 Merge pull request #1599 from iirvine/clear-event-listeners
Events#clearAllListeners
2013-04-17 09:02:18 -07:00
iirvine
f342e7efa4 simplify 2013-04-17 08:27:30 -07:00
iirvine
59b5e0c003 fix jshint 2013-04-15 14:09:32 -07:00
iirvine
84ad7db070 clearEventListeners -> clearAllListeners 2013-04-15 14:09:32 -07:00
iirvine
2d5bf783fe initial commit of #clearEventListeners 2013-04-15 14:09:32 -07:00
Vladimir Agafonkin
f25c983cbb Merge pull request #1594 from danzel/zoom-fixes
Fix touch zooming while zoom animation is playing. Fixes #1591 #1571
2013-04-15 13:27:01 -07:00
danzel
989d9b9763 Fix up brace position 2013-04-16 08:25:22 +12:00
Vladimir Agafonkin
49091c0257 Merge pull request #1598 from bpavot/webview-click-fix
Android webview fix : Use originalEvent when needed to find timestamp
2013-04-15 10:25:20 -07:00
bpavot
fd080abffc Android webview fix : Use originalEvent when needed to find timestamp 2013-04-15 11:53:29 +02:00
iirvine
031086681f fix our context to the object that's registering this listener 2013-04-14 20:49:57 -07:00
iirvine
76140994e4 fixing jshint errors 2013-04-14 20:48:48 -07:00
danzel
b0c70f96ad Update TouchZoomEmu with more crazy tests. Useful when debugging touch zoom behaviour 2013-04-15 11:54:43 +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
iirvine
ffe1d79671 damn my coffeescript brainfarts 2013-04-14 16:30:03 -07:00
danzel
633ae89b8e Fix touch zooming while zoom animation is playing. Fixes #1591 #1571 2013-04-15 09:57:47 +12:00
John Firebaugh
5925a43c2b Add .npmignore
Without a .npmignore, the default is to ignore what's in
.gitignore, which includes dist/*.js, which should not
be npm-ignored.
2013-04-14 13:22:58 -07:00
iirvine
a469a387a1 back to first implementation to fix event leak 2013-04-13 22:11:01 -07:00
iirvine
e25f730b04 better implementation, more tests 2013-04-12 17:03:14 -07:00
iirvine
e41e8a886a initial implementation of events#once 2013-04-12 15:21:48 -07:00
Vladimir Agafonkin
54b2887667 update build 2013-04-11 13:29:41 +03:00
Vladimir Agafonkin
b0fe4e5990 cleaner jshint config 2013-04-11 13:29:19 +03: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
dea408ad59 Merge pull request #1581 from jfirebaugh/getLayerId
Permit layer stamping to be overridden
2013-04-10 09:59:41 -07:00
John Firebaugh
786faddc84 Permit layer stamping to be overridden 2013-04-10 12:28:27 -04:00
Vladimir Agafonkin
4b2495abbf Merge pull request #1579 from AndreyChizh/patch-1
MapAnimationZoom -> AnimationZoom
2013-04-09 05:15:42 -07:00
Andrey Chizh
6fc5da68f0 Update deps.js
In module TouchZoom in deps specified old module name "MapAnimationZoom". Should be "AnimationZoom".
2013-04-09 13:51:44 +03:00
Vladimir Agafonkin
3231f92c24 Merge pull request #1573 from jfirebaugh/prepublish
Add prepublish script to package.json
2013-04-08 13:48:00 -07: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
Vladimir Agafonkin
ce96bd3d43 Merge pull request #1575 from cschwarz/patch-1
Fixed zoom out on Windows 8 with Firefox
2013-04-08 13:46:23 -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
John Firebaugh
618bb4aa77 Add prepublish script to package.json
Also, npm scripts are run in an environment with node_module
binaries in the path, so just "jake test" and "jake" are sufficient.

https://npmjs.org/doc/scripts.html
2013-04-08 11:25:32 -04:00
Vladimir Agafonkin
892ed86fb3 Merge pull request #1572 from jfirebaugh/browserify
Compatibility with browserify
2013-04-08 08:02:30 -07:00
John Firebaugh
e6998948b1 Compatibility with browserify
In a browserify package, `this` will refer to a node-style
exports object, not window. So just reference `window`
directly.
2013-04-08 10:49:39 -04:00
Vladimir Agafonkin
60a906a239 switch to Node 0.10 for Travis 2013-04-05 12:51:40 +03:00