Commit Graph

4217 Commits

Author SHA1 Message Date
Iván Sánchez Ortega
5389d23e79 Add unit test for drag handler enable/disable bug (#4387) 2016-04-15 15:30:39 +02:00
Per Liedman
f3c80fdbdc Add comments 2016-04-15 15:29:24 +02:00
Per Liedman
e5dcb007c6 Add comments 2016-04-15 15:29:24 +02:00
Per Liedman
f05af08a2c Ignore simulated mouse events in Draggable.
Draggable handles touch events, and does not rely on
simualted mouse events; under some circumstances, it
even breaks on simualted events (see #4315).

This ignores any simulated events in the event handlers,
to just deal with the real events.

Close #4315.
2016-04-15 15:29:24 +02:00
Nathan Cahill
37532b33eb add missing type to setZIndex docstring in L.LayerGroup (#4428) 2016-04-15 13:31:52 +02:00
Nathan Cahill
755c7ed0c0 add missing docstring options for L.GeoJSON.latLngsToCoords() (#4429) 2016-04-15 13:31:15 +02:00
David Uvenman
864326610a Added click tolerance also for non-touch devices (#4396)
* Added option for click tolerance. This option is used as a threshold to determine if the user event should be considered a click or a drag.

* Updated docs for clickTolerance to state the correct default value.

* Added tests for click threshold
2016-04-15 10:18:50 +02:00
Nathan Cahill
978fdb5add fix typo in Browser.mobile docstring (#4434) 2016-04-15 09:42:37 +02:00
Nathan Cahill
1964f35ea4 correct return type in docstring of LatLngBounds.extend (#4430) 2016-04-15 09:30:21 +02:00
Nathan Cahill
70a208b088 correct return type in docstring of L.Point (#4431) 2016-04-15 09:27:05 +02:00
Nathan Cahill
f8a453dc3a add missing round parameter to Bounds.getCenter docstring (#4432) 2016-04-15 08:44:30 +02:00
Nathan Cahill
51e155483d change parameter type in docstring from |null to optional (#4433) 2016-04-15 08:42:34 +02:00
Nathan Cahill
4ff5b10a27 add docstrings for L.Control methods (#4435) 2016-04-15 08:29:30 +02:00
Nathan Cahill
5d2607a947 Add missing return type in docstring for Util.indexOf (#4436) 2016-04-15 08:27:10 +02:00
Nathan Cahill
5b67a2d093 fix DomUtil.getClass docstring (#4438) 2016-04-15 08:05:33 +02:00
Nathan Cahill
1db460ab2b correct docstring default value for L.ImageOverlay interactive (#4425)
Was true, should be false.
2016-04-14 19:39:42 +02:00
Iván Sánchez Ortega
d1ab25fc3d Merge pull request #4423 from nathancahill/patch-3
Correct docstring for L.TileLayer.WMS transparent option
2016-04-14 18:28:26 +02:00
Nathan Cahill
da614f9253 correct docstring for L.TileLayer.WMS transparent option
Fix copy/paste error from styles
2016-04-14 10:24:06 -06:00
Nathan Cahill
67c1370404 consistent return type with aliased method (#4418)
Evented.listens() returns a boolean, so hasEventListeners() will as well
2016-04-14 08:52:25 +02:00
Nathan Cahill
095003ac2a fix capitalization in L.GridLayer.getContainer() doc (#4419) 2016-04-14 08:51:06 +02:00
Zsolt Ero
63870f1c5b fitBounds round fix (#4402)
* fitBounds zoom snapping round fix

* fitBounds zoomSnap rounding fix
2016-04-11 16:16:51 +02:00
S. Andrew Sheppard
8258a3e3e7 update default position to match leafdoc
(indirectly fixes zoom control, which no longer has it's own default)
2016-04-08 14:34:01 -05:00
Iván Sánchez Ortega
b74cf171f8 Merge pull request #4404 from Leaflet/fix-4401
Fix regression when setting style of Path with canvas renderer
2016-04-08 17:50:13 +02:00
Per Liedman
593a553e64 Pass layer on when calling _updateDashArray
Add specs to verify intialization and setStyle with dashArray.
Close #4401.
2016-04-08 16:43:21 +02:00
Per Liedman
36b60b7c88 Round scale to avoid float rounding issues in fitBounds
Reverts _round() fix from b511c7bcc8.

Close #4395.
2016-04-06 22:58:00 +02:00
Dave Leaver
8c9759aa2f Change simple test case link to the Leaflet JS Bin 2016-04-05 16:04:46 +02:00
Vladimir Agafonkin
139340ecc7 remove silly personal links from the readme 2016-04-03 10:26:48 -07:00
Iván Sánchez Ortega
2d548af829 Add leafdoc comments for the 'crossOrigin' option in ImageOverlay, fixes #3646 2016-04-02 18:16:27 -07:00
Iván Sánchez Ortega
3305aa2b05 Added leafdoc comments for the 'zoomanim' event, fixes #2862 2016-04-02 18:16:11 -07:00
Per Liedman
4adba1256e Fix SVG dragging in IE and Edge.
Use correspondingUseElement as target for SVG.



Close #4359.
2016-04-02 18:15:39 -07:00
Zsolt Ero
928100f961 Workaround for flyTo bug
* test for flyTo start latlng == end latlng condition
* workaround for flyTo infinite loop
* expect for zoomend values

Close #4226
2016-04-02 21:12:40 +02:00
Iván Sánchez Ortega
a4a72ccb17 Finish @yohanboniface's job by replacing more 🍂s with @s 2016-04-02 20:50:27 +02:00
Jan Pieter Waagmeester
0bed05d537 Use array in L.Control.Layers to preserve layer order fixes #2086 2016-04-02 20:48:31 +02:00
Iván Sánchez Ortega
e083d41ff7 Merge pull request #4367 from Leaflet/fix-4023
Just keep _moveEnd inside requestAnimFrame. Close #4023.
2016-04-02 20:08:51 +02:00
Zsolt Ero
cd9c813ee6 Merge pull request #4377 from Leaflet/fix-get-bounds-fit-bounds
Round bounds size.
2016-04-02 19:56:52 +02:00
Per Liedman
b511c7bcc8 Round bounds size.
Bounds size should be in pixels, so round it to avoid
any floating point inaccuracies from projection.

Closes #4255.
2016-04-02 19:55:02 +02:00
Per Liedman
fa3aeced7a Merge pull request #4370 from Leaflet/collapse-expand
Make L.Control.Layers.collapse/expand public methods
2016-04-02 19:48:06 +02:00
Yohan Boniface
711dcf3ea4 Merge branch 'master' of github.com:Leaflet/Leaflet 2016-04-02 19:36:53 +02:00
Yohan Boniface
04dbce8186 Add debug/local in .gitignore
Put in there all the debug pages you don't want to commit.
2016-04-02 19:36:22 +02:00
Iván Sánchez Ortega
0cfe85897f Make non-interactive markers not fire pointer events
* Make non-interactive markers not fire pointer events, fixes #3936

* Make non-interactive image overlays and SVGs not fire pointer events

* Make gridlayers non-interactive, fixing #2396 too.
2016-04-02 19:33:02 +02:00
Yohan Boniface
4bcc89bc54 Make sure bounds are bounds before testing its validity in fitBounds
Fix #4374
2016-04-02 19:23:58 +02:00
Iván Sánchez Ortega
8b888915e0 Make L.Control.expand() and collapse() return this 2016-04-02 18:34:47 +02:00
Yohan Boniface
e287b5ec15 Make L.Control.Layers.collapse/expand public methods
The aim is to allow people to call them programmatically.
So they must be public, documented and thus reliable.

Closes #3049
Closes #2713
2016-04-02 18:34:47 +02:00
Iván Sánchez Ortega
4b38a7165a rm spurious check, fixes #4068 2016-04-02 18:32:31 +02:00
Per Liedman
f1ce036caf Remove use of ES5 function (map). Close #4362. 2016-04-02 18:25:57 +02:00
Iván Sánchez Ortega
86a7f79dc9 Fire 'viewreset' on map.stop(), fixes #3985 2016-04-02 18:18:05 +02:00
Yohan Boniface
714cbb9ec6 Merge pull request #4372 from Leaflet/prosthetic-callbacks
Switch prosthetic-hand to 1.3.0 and use onStop callback
2016-04-02 17:59:58 +02:00
Iván Sánchez Ortega
c6c0e4f484 Switch prosthetic-hand to 1.3.0 and use onStop callback 2016-04-02 17:55:22 +02:00
Yohan Boniface
9560b28515 Merge pull request #3916 from Leaflet/leafdoc
🍂doc
2016-04-02 16:18:41 +02:00
Yohan Boniface
1b1d21b1bf Let's say I'm @IvanSanchez for once 2016-04-02 15:59:54 +02:00