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
Matthew Brener
b4045f05fd
Remove spec.hintrc.js ( #4499 )
2016-04-25 08:42:25 +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
Vladimir Agafonkin
a626826974
update deps and bump travis node version
2016-04-18 11:15:46 +03: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
Iván Sánchez Ortega
8da61993d2
Added four prosthetic-hand tests, checking mouse&touch drag events and touch-zoom
2016-03-18 15:24:42 +01:00
Daniel Ritz
0af11b064e
Fix attribution text not removed when Layer is removed from map
...
Symptom: Switching between layers with different attributions does
not remove the attribution from the previously selected layer.
Control.Attribution keeps track of its attributions with a counter for
each text. The problem described in #4285 is that each time the layer
is added to the map, the counter is increased by two. It's because
Layer calls Control.Attribution.addAttribution() twice, once from
addLayer() and the second time via the whenReady() callback _layerAdd().
This was not caught by the tests since the callback was never fired
(missing map.setView() call).
Fixes #4285
2016-03-01 13:46:40 +01:00
Iván Sánchez Ortega
663978227d
Unit tests for #4257 , attributionControl layeradd/layerremove
2016-02-18 21:31:00 +01:00
Iván Sánchez Ortega
ccd95e38e6
L.Class.include & mergeOptions now return 'this'
2016-02-15 16:38:35 +01:00
Knut Hühne
df19ec7c30
Add test for throwing error if circle radius is NaN
2016-02-15 11:51:27 +01:00
Iván Sánchez Ortega
63970e9b6c
Better cleanup of L.Control.Layers, fixes #4213 (plus unit tests)
2016-02-09 15:43:03 +01:00
Iván Sánchez Ortega
8dee2d3591
Fix for #4208 with extra unit tests
2016-02-09 10:07:36 +01:00
Vladimir Agafonkin
01455c0167
Merge pull request #4193 from Leaflet/grid-extra-loads
...
Fix extra tile usage
2016-02-08 16:53:50 +02:00
Iván Sánchez Ortega
c6e2a2021a
Unit tests for flyTo and TileLayers.
2016-02-05 16:30:29 +01:00
Iván Sánchez Ortega
efdc626262
Fix tile pruning on fade-in, pass all unit tests now :-D
2016-02-04 15:19:35 +01:00
Iván Sánchez Ortega
f777f42c6b
More GridLayer unit tests; Grid zoom calculation changed during zoom anims
2016-02-03 17:35:52 +01:00
Iván Sánchez Ortega
bf37a9106c
Change the way GridLayer is reset on a map viewreset
2016-02-02 16:56:18 +01:00
Iván Sánchez Ortega
ed05d4ac1e
Unit tests for GridLayer loading logic
2016-02-02 14:56:02 +01:00
Iván Sánchez Ortega
afd7959959
Make linter happy.
2016-01-18 10:10:32 +01:00
Iván Sánchez Ortega
65ccc2b36c
Fractional zoom controls.
2016-01-18 10:10:32 +01:00
Yohan Boniface
5e6ef5ce12
Consistent GeoJSON casing
...
I've made the choice to:
- switch API and method to upper case version (GeoJSON, geoJSON, toGeoJSON)
- keep internal variable all lower case (geojson), because we usually do not
uppercase variables
Fix #2444
2015-12-25 14:00:21 +01:00
Vladimir Agafonkin
f23074d790
Merge pull request #4040 from Leaflet/gridlayer-pixelbounds
...
Fix GridLayer pixelBounds computation
2015-11-23 23:48:31 +02:00
Yohan Boniface
e2fbe19683
Fix GridLayer pixelBounds computation
...
Map size does not change from one zoom to another, so we dont need
to scale it.
Without this change, we are creating more or less 4x tiles when
zooming in.
There are still cases where we are requesting a bit more tiles than
what I would expect, but I see it also happens on 0.7.3
2015-11-22 23:19:57 +01:00
Vladimir Agafonkin
63f239a20f
Merge pull request #4028 from Leaflet/geojson-setstyle
...
Do not set layer.options a reference to layer.defaultOptions (fix #3990 )
2015-11-18 17:02:46 +02:00
Yohan Boniface
7a1496ea4d
Do not set layer.options a reference to layer.defaultOptions ( fix #3990 )
...
git bisect point at ad9d0f8c7f
2015-11-18 13:29:02 +01:00
Yohan Boniface
d8b7f6fcbe
L.Label: honour opacity option
2015-11-15 19:15:14 +01:00
Yohan Boniface
9d0b13b991
Add some basic unittests for L.Label
2015-11-15 18:56:27 +01:00