Vladimir Agafonkin
94303a681b
Merge pull request #3952 from Leaflet/label
...
Implement L.Label
2016-07-15 13:06:36 +03:00
Per Liedman
0bcfbdb537
Cleanup, tests and minor bug fixes for event system
2016-07-08 15:01:38 +02:00
Fabian Zeindl
0210071dad
refactoring of events, it should be about 4 times faster now
2016-07-08 14:47:02 +02:00
Yohan Boniface
64ba1f7f95
Rename Label in Tooltip, PopupBase in DivOverlay
2016-07-08 13:51:18 +02:00
Yohan Boniface
fe3649f032
Default L.Label border and tip to white
2016-07-08 11:33:53 +02:00
Yohan Boniface
bd2616f901
Do not rely on options.draggable to compute draggableMoved ( #4638 )
...
One can enable dragging of a marker after it has been initialized
with draggable=false.
2016-07-08 11:22:54 +02:00
Yohan Boniface
f8221e09f7
We now load CSS in Phantom, so no need to skip those tests
2016-07-08 11:08:25 +02:00
Yohan Boniface
0dd58bd01f
Merge branch 'master' into label
2016-07-08 11:07:22 +02:00
Yohan Boniface
5dfc3364d1
Allow to make screenshots in Phantomjs ( #4705 )
...
* Load CSS in PhantomJS
* Allow to take screenshot in PhantomJS while running tests
For that, one need to run this call:
window.top.callPhantom({'render': 'screenshot.png'});
* Make PhantomJS serve images
* Bonus: those tests now passe in Phantom too
* Add helper to make screenshot in tests
takeScreenshot();
or
takeScreenshot('path/to/screenshot.png');
2016-07-08 11:05:12 +02:00
Yohan Boniface
d18d661837
More label tests
...
431579ce4a
needed to make them pass on Phantom
2016-07-02 23:02:48 +02:00
Yohan Boniface
2f4b97de19
Add support for "center" Label position
2016-07-02 10:52:04 +02:00
Yohan Boniface
14bfedf7ff
Merge branch 'master' into label
2016-07-02 10:36:42 +02:00
Iván Sánchez Ortega
8cb745ce0a
L.Evented.listens() returns false on removed event handlers, #4474 ( #4476 )
...
* Fix L.Evented.listens() on removed event handlers, #4474
* Fix bad unit tests for marker events
* Only check for listerners.length if listerners is actually defined
2016-07-01 11:14:22 +02:00
Per Liedman
01790eacda
Ignore events if Draggable is disabled, fixing disabling drag on click in IE11 ( #4479 )
...
* Ingore events if Draggable is disabled
Close #3666 .
* Add test for verifying fix to #3666
2016-06-27 16:16:03 -07:00
Iván Sánchez Ortega
b2d7cf110b
Fix #4039 : Use different L.Bounds for "marking as prunable" and loading tiles ( #4650 )
...
* Fix #4039 : Use different L.Bounds for "marking as prunable" and loading tiles.
* configurable tile pruning tests
* using spy for testing load did not happen
2016-06-21 15:27:44 +02:00
Yohan Boniface
d8a6ad4010
Use proper Hand onStop callback instead of setTimeout in popup spec
2016-06-16 15:34:16 +02:00
Yohan Boniface
d1de37aa88
Fix broken sizeOption when L.point instance ( #4636 )
2016-06-10 15:36:07 +02:00
Yohan Boniface
95d5b59c5f
Fix canvas not filtering click event after drag ( #4493 )
...
* Fix preclick not fired in canvas
* Do not add canvas layers to click event targets if just dragged (fix #4458 )
2016-06-01 17:43:32 +03:00
Ray Hammond
72c4f986b1
Icon size x can now be initialised with a number ( #4608 )
...
Icon size x can now be initialised with a number. Fixes #3185
2016-06-01 17:24:24 +03:00
Jon Woyame
878a022897
Prevent map click when layer has popup ( #4603 )
...
* prevent map click when layer has popup
* add test cases for click events on Paths
* update test for Path popups to check popup is open
2016-05-29 22:01:16 +02:00
Per Liedman
fbc6265fb7
Fix when all listeners are removed during dispatch ( #4555 )
...
Close #4478 .
2016-05-12 10:22:36 +02:00
Yohan Boniface
6e8ac31993
Fix setMaxBounds not resetting when passing null argument ( #4494 )
2016-05-09 15:12:51 +02:00
Iván Sánchez Ortega
cc3380f98e
Tweaked values of getBoundsZoom unit tests ( #4528 )
2016-05-09 10:42:19 +02:00
Dian Jin
a6888ab13f
getBoundsZoom fix for small size and padding and tests ( #4532 )
2016-05-09 10:39:14 +02:00
Yohan Boniface
4a9140e6b1
Add L.Label related documentation
2016-05-06 15:00:01 +02:00
Yohan Boniface
737137634e
Rename Label clickable option to interactive
2016-05-06 13:39:09 +02:00
Yohan Boniface
8a2255afc3
Merge branch 'master' into label
2016-04-30 14:36:48 +02:00
Jan Pieter Waagmeester
02078c2b39
Make sure L.Control.removeLayer() doesn't raise an error if a layer not in the control is removed from it ( #4487 )
2016-04-22 16:11:22 +02:00
Nathan Cahill
1eafc015c1
create points from objects with x and y properties ( #4465 )
2016-04-20 17:05:31 +02:00
Iván Sánchez Ortega
23890c5fa4
Skip a touch unit test on non-touch browsers
2016-04-19 12:21:01 +02:00
Iván Sánchez Ortega
5389d23e79
Add unit test for drag handler enable/disable bug ( #4387 )
2016-04-15 15:30:39 +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
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
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
Jan Pieter Waagmeester
0bed05d537
Use array in L.Control.Layers to preserve layer order fixes #2086
2016-04-02 20:48:31 +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
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
4b38a7165a
rm spurious check, fixes #4068
2016-04-02 18:32:31 +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
b7b409bd07
Merge pull request #4369 from Leaflet/use-mean-earth-radius
...
Use mean earth radius for distance calculation in L.CRS.Earth.
2016-04-02 15:51:40 +02:00
Per Liedman
868c102a86
Use mean earth radius for distance calculation in L.CRS.Earth.
...
Close #4184 .
2016-04-02 12:01:01 +02:00
Yohan Boniface
446c02f2e7
Make latLngBounds factory return an empty bounds with not argument
...
Just like the constructor.
Fix #3408
2016-04-02 11:27:56 +02:00
Yohan Boniface
5795f37fe4
Make sure a failing test will not leave the node in place
2016-03-29 10:39:05 +02:00
Yohan Boniface
6bc6e599a0
Increase timeout for "should not be closen when dragging map" test
2016-03-29 10:38:47 +02:00
Yohan Boniface
61da775379
Replace happen.drag by prosthetic-hand in specs
2016-03-28 21:51:27 +02:00
Jan Pieter Waagmeester
ccaf632268
Do not calculate inverted y coords for CRSes with infinite: true
...
Fixes #4338
2016-03-22 14:10:24 +01:00
Jan Pieter Waagmeester
34075a893a
Unit tests for TileLayer getTileUrl replacements
2016-03-21 15:00:13 +01:00
Jan Pieter Waagmeester
37254587be
Allow dashes in template placeholders + tests
2016-03-21 14:36:21 +01:00