Commit Graph

3730 Commits

Author SHA1 Message Date
Patrick Arlt
52be81b18b Merge branch 'master' of github.com:Leaflet/Leaflet into popup-debugging 2015-03-14 10:22:25 -07:00
Vladimir Agafonkin
aa1b3b4d4c Merge pull request #3289 from Leaflet/phantomjs-travis
Attempt to fix random PhantomJS DISCONNECTED errors on Travis
2015-03-13 10:47:18 -07:00
Vladimir Agafonkin
677392c3d8 Merge pull request #3293 from Leaflet/flyto-callback
Add optional callback to map.flyTo
2015-03-13 10:46:53 -07:00
Mstislav Zhivodkov
b93d42880e map panBy always return map 2015-03-12 12:10:53 +06:00
Vladimir Agafonkin
7db3473727 fix typo, thanks @uniphil 2015-03-10 20:38:13 -07:00
Yohan Boniface
4e25056703 Typo in test description 2015-03-09 10:13:42 +01:00
Yohan Boniface
c10f81f95d Remove flyTo callback (but keep test refactored) 2015-03-09 10:11:20 +01:00
Yohan Boniface
60df920452 Add optional callback to map.flyTo 2015-03-08 12:21:43 +01:00
Vladimir Agafonkin
a92c8a3c21 Merge pull request #3287 from Szunti/mousebutton
e.button === 0 is the left mouse button.
2015-03-08 00:15:12 +02:00
Yohan Boniface
00b97f3b01 Remove browserNoActivityTimeout from karma config 2015-03-07 23:12:15 +01:00
Vladimir Agafonkin
8e78c429e0 Merge pull request #3291 from Leaflet/popupAnchor
Fix popupAnchor not taken into account when passing L.Popup to bindPopup
2015-03-07 23:57:10 +02:00
Vladimir Agafonkin
56b52ec27a Merge pull request #3290 from Leaflet/console-on-tests
Allow to use console in tests
2015-03-07 23:53:53 +02:00
Yohan Boniface
250f03339b Fix popupAnchor not taken into account when passing L.Popup to bindPopup 2015-03-07 19:00:27 +01:00
Yohan Boniface
d53a0a9779 Allow to use console in tests
This prevents us from adding /* eslint no-console: 0 */ each time
we need to use console.log/trace for debugging.

This also means that we will not be blocked if we forget a console
in the tests before commiting, but this should also happen while using
the inline "no-console" config, and given that this only affects tests
files, I think the confort of being able to use console easily worths
the risk of pushing a console in the tests files.
2015-03-07 12:48:46 +01:00
Yohan Boniface
196040b795 Attempt to fix random PhantomJS DISCONNECTED errors on Travis 2015-03-07 12:45:41 +01:00
Szunti
0d1716d796 e.button === 0 is the left mouse button. 2015-03-06 20:25:04 +01:00
Yohan Boniface
19033957d7 A few more tests on Polyline and Polygon (cf #3279) 2015-03-06 09:14:00 +01:00
Yohan Boniface
0d0269ac15 Remove Polyline.addLatLng and Polyline.spliceLatLngs
Those method are not consistent (or too complexe) among
the supported Polygon/Polyline (cf #3279)
2015-03-06 09:05:50 +01:00
Vladimir Agafonkin
bba39b3eba Merge pull request #3275 from Jakobud/bug/keyboard-event-prevent-map-refocus
Prevent map refocus if control click event is from the keyboard
2015-03-05 18:48:15 +02:00
Jake Wilson
aae1df5d49 Fixed typo in comment 2015-03-04 19:00:52 -07:00
Jake Wilson
39425924ac Added truthy check to the event. 2015-03-04 18:58:51 -07:00
Yohan Boniface
602cff077f Ensure polygons latlngs are never flat (cf #2648) 2015-03-04 18:14:51 +01:00
Vladimir Agafonkin
455fbb087b fix maxNativeZoom regression, close #3096 2015-03-04 11:46:03 +02:00
Jake Wilson
8842385c37 Prevent map refocus if control click event is from the keyboard, which is determined/assumed by the click X,Y being at 0,0. 2015-03-03 22:17:24 -07:00
Vladimir Agafonkin
4dc3a18217 Merge pull request #3270 from Leaflet/fix-freeze
Fix zoom animation freeze race condition
2015-03-03 15:07:44 +02:00
Vladimir Agafonkin
142e0661b1 fix touch zoom regression 2015-03-03 15:04:03 +02:00
Vladimir Agafonkin
f27ead251a Merge pull request #3264 from yohanboniface/drag-original-event
Forward original event on drag
2015-03-02 21:38:51 +02:00
Vladimir Agafonkin
08cf1ef03e Merge pull request #3032 from Leaflet/delegate
Use DOM event delegation for all layers
2015-03-02 19:35:36 +02:00
Vladimir Agafonkin
4e44e12ecf add basic marker click test 2015-03-02 19:33:39 +02:00
Vladimir Agafonkin
35860a0213 fix marker event data 2015-03-02 19:15:52 +02:00
John Firebaugh
a865d2b649 CSS-based outline prevention 2015-03-02 19:03:39 +02:00
Vladimir Agafonkin
63753d8564 prevent focus outline when dragging objects 2015-03-02 19:03:38 +02:00
Vladimir Agafonkin
0a68b25ce5 fix Canvas vector events 2015-03-02 19:03:38 +02:00
Vladimir Agafonkin
43c3f01a1a cleaner DOM event handling in Map 2015-03-02 19:03:38 +02:00
Vladimir Agafonkin
34bc7fa4ea switch markers to event delegation API 2015-03-02 19:03:38 +02:00
Vladimir Agafonkin
22c97d1b33 use new event delegation API in ImageOverlay 2015-03-02 19:03:38 +02:00
Vladimir Agafonkin
8e7bbff6d8 switch SVG paths to new delegation API 2015-03-02 19:03:38 +02:00
Vladimir Agafonkin
b149f2d754 Layer add/removeInteractiveTarget methods
registers DOM elements for event delegation
2015-03-02 19:03:37 +02:00
Vladimir Agafonkin
bbc3f2fab1 fix zoom anim freeze race condition, close #2693, close #2478 2015-03-02 15:26:05 +02:00
Vladimir Agafonkin
4c8ffadf30 don't animate negligible touch movements, close #2519 2015-03-02 14:48:09 +02:00
Vladimir Agafonkin
bb230d0ac2 fix race condition in tests 2015-03-02 13:35:02 +02:00
Vladimir Agafonkin
d84c38a5a2 Merge pull request #3267 from akauppi/fix-jake-indents
fix 'jake'
2015-03-01 23:11:31 +02:00
Asko Kauppi
f61a681c56 fix 'jake' 2015-03-01 22:51:04 +02:00
Vladimir Agafonkin
954ef1cc10 add indent eslint rule and fix some whitespace 2015-03-01 12:01:28 +02:00
Vladimir Agafonkin
d7007ef353 Merge pull request #3266 from Jakobud/pane-management-redux
Vector renderers for custom Pane Management added
2015-03-01 11:56:49 +02:00
Jake Wilson
d0b5aada79 Code consistency changes 2015-02-28 21:26:20 -07:00
Jake Wilson
8c30707e56 Fixed some code style issues. 2015-02-28 21:21:45 -07:00
Jake Wilson
721cf6a689 Added ability to specify pane for vector layer creation, which will automatically create a renderer for that pane if one does not already exists. 2015-02-28 20:48:14 -07:00
Yohan Boniface
1e4b82b990 Cleaner syntax for event forwarding 2015-02-27 17:57:46 +01:00
Vladimir Agafonkin
562c579e3e Merge pull request #3263 from jieter/patch-2
Add a space to make comments look consistant
2015-02-27 18:28:32 +02:00