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
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
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
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
Iván Sánchez Ortega
4b38a7165a
rm spurious check, fixes #4068
2016-04-02 18:32:31 +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
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
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
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
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
Yohan Boniface
fd5411d74b
Fix popup toggle on marker click ( fix #3992 )
...
Issue was:
- popup toggling is made on 'click' event
- map listen to 'preclick' to close any open popup
- at second user click, 'preclick' has been fired, then popup
closed, so the popup toggling was reopening it
- this was not an issue before 0d3448d494
because 'preclick' on the marker was not bubbled to the map
- also the unittest covering this use case was too much coupled with
the use case with calling marker.fire instead of simulating user
click on the marker icon
2015-11-14 20:41:53 +01:00
Yohan Boniface
d901a5fc07
Fix interactive=false not taken into account for canvas ( fix #3946 )
2015-10-19 21:39:04 +02:00
Vladimir Agafonkin
8a5184193e
Merge pull request #3917 from Leaflet/canvas-stop-event
...
Canvas events fixes (fix #3915 )
2015-10-10 21:24:37 +03:00
Yohan Boniface
6c3b9e10b8
Fix L.Circle init without options.radius
2015-10-09 20:24:42 +02:00
Yohan Boniface
0b0989f9f1
Canvas events fixes ( fix #3915 )
...
- fix fireEvent called for each layer containing event point
- fix layer not removed from this._layer at remove
- fix L.DomEvent.stop(e) not honoured for canvas because events
are both listenned on canvas container and map container
2015-10-09 18:28:35 +02:00
Vladimir Agafonkin
cfdbd10431
enforce indentation in specs
2015-09-25 13:55:37 +03:00
Iván Sánchez Ortega
3924d49bcd
Consistency between L.circle and L.circleMarker ( #3785 )
2015-09-17 23:22:55 +09:00
Vladimir Agafonkin
08d655fe66
upgrade deps and stricter eslint
2015-09-04 17:46:55 +02:00
Per Liedman
fecd412209
Truncate high/low latitudes for Spherical Mercator like previous versions.
...
Close #3700 .
2015-08-03 21:26:56 +02:00
Fabrizio Minuti
93c2b52604
fix imageoverlay setBound when not added to map
...
If imageoverlay#setBounds is called when the layer is not added to a
map, the _reset method gets errors on execution
2015-07-28 12:10:40 +02:00
Yohan Boniface
8d980ce49b
Add a unittest to cover dragging map not closing open popup (cf #3632 )
2015-07-16 17:01:44 +02:00
Yohan Boniface
07b7219bc9
Only consider a target if it listens for event type ( fix #3607 )
2015-07-09 23:00:52 +02:00
Yohan Boniface
74018f284e
Add nonBubblingEvents option ( fix #3604 )
2015-07-09 14:12:12 +02:00
petr
18933e1764
accept geojson with null geometry
2015-07-01 13:28:10 -07:00
Vladimir Agafonkin
fdd60cc66b
ditch viewreset event, reliable zoomend
...
removes viewreset use everywhere; also changes event order to have
zoomend before move and moveend to make zoomend a reliable viewreset
successor
2015-06-04 20:42:28 +03:00
Yohan Boniface
298a27fbe4
Add Polyline/Polygon.isEmpty method
2015-05-09 23:03:22 +02:00