Commit Graph

3602 Commits

Author SHA1 Message Date
Vladimir Agafonkin
7b1ddd8c73 Merge pull request #3372 from Leaflet/polygon-getcenter
Fix Polygon.getCenter returning invalid LatLng when all points in same pixel
2015-04-12 20:37:11 +03:00
Yohan Boniface
3336bcbbe9 Fix Polygon.getCenter returning invalid LatLng when all points in same pixel 2015-04-12 18:43:04 +02:00
Vladimir Agafonkin
a9f7cb9060 Merge pull request #3371 from Leaflet/polyline-getcenter
Fix Polyline.getCenter returning undefined with very small line
2015-04-12 13:23:16 +03:00
Yohan Boniface
a82c80ecd9 Fix Polyline.getCenter returning undefined with very small line 2015-04-12 11:25:46 +02:00
Vladimir Agafonkin
57580ec7bc Merge pull request #3369 from Leaflet/gridlayer-updateopacity
Never try to run _updateOpacity if this._map is undefined
2015-04-11 18:14:36 +03:00
Yohan Boniface
7523aaafa0 Never try to run _updateOpacity if this._map is undefined 2015-04-11 15:09:33 +02:00
Vladimir Agafonkin
024e01ec3a Merge pull request #3288 from Leaflet/events-on-divicon
Also listen to events on marker icon childs elements
2015-04-10 09:09:54 +03:00
Yohan Boniface
37b87b4b21 Loop through parents when event src element is not in targets
For example, when using a DivIcon, we often add DOM elements in it,
which can then be the actual target of DOM events.
2015-04-10 07:59:59 +02:00
Vladimir Agafonkin
78d8a4d9f3 fix zoom out on azerty keyboard, close #3362 2015-04-09 21:53:12 +03:00
Vladimir Agafonkin
a995b07820 Merge pull request #3360 from stephank/feat-layer-loading
Add isLoading to GridLayer
2015-04-08 18:51:52 +03:00
Stéphan Kochen
03c888c20f Add isLoading to GridLayer 2015-04-08 10:23:50 +02:00
Vladimir Agafonkin
372f4ac128 Merge pull request #3358 from Trufi/change-translate3d-detection
Change translate3d detection
2015-04-08 01:00:54 +03:00
Mstislav Zhivodkov
b6b4c07375 add opera12 to any3d 2015-04-07 10:43:12 +06:00
Mstislav Zhivodkov
4b757fe2cd change translate3d detection 2015-04-06 18:05:11 +06:00
Vladimir Agafonkin
cac1494f64 Merge pull request #2574 from tohaocean/patch-1
Opera does not support translate3d property
2015-04-06 13:21:40 +03:00
Vladimir Agafonkin
e708e37ab7 Merge pull request #3346 from RLRR/fix-ie8-tile-freeze
Fix tile loading in IE8
2015-04-02 17:04:08 +03:00
Alex Fedosov
56733af488 fix tile freeze in ie8 2015-04-01 16:42:46 +06:00
Vladimir Agafonkin
1378bea0d1 Merge pull request #3340 from MazeMap/focus-pane-bug
Fix #3333 by catching the onScroll event on the map container
2015-03-30 17:35:27 +03:00
Iván Sánchez Ortega
558f8c3a06 Fix #3333 by catching the onScroll event on the map container 2015-03-30 16:31:18 +02:00
Vladimir Agafonkin
35971f736d Merge pull request #3336 from patrickarlt/popup-tests
Add tests for using function as popup content
2015-03-29 11:52:20 +03:00
Patrick Arlt
f3c802c97c add test for new popup functionality 2015-03-28 19:20:56 -07:00
Patrick Arlt
879b656249 resolve merge conflict 2015-03-19 07:53:58 -07:00
Vladimir Agafonkin
205575c932 Merge pull request #3303 from Trufi/panby-return
Map panBy always return map object
2015-03-18 18:52:23 +02:00
Vladimir Agafonkin
21a748123f Revert "e.button === 0 is the left mouse button."
This reverts commit 0d1716d796.
2015-03-18 13:09:04 +02:00
Vladimir Agafonkin
eb34e6682d Merge pull request #3109 from Leaflet/popup-debugging
Improve popups for FeatureGroup
2015-03-14 12:38:08 -07:00
Patrick Arlt
6917733750 restore toggling marker popups, pass ESLint 2015-03-14 12:13:44 -07:00
Patrick Arlt
6ed939422c Merge branch 'group-popup' of github.com:Leaflet/Leaflet into popup-debugging 2015-03-14 10:23:50 -07:00
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
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
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