Commit Graph

2608 Commits

Author SHA1 Message Date
Jan Pieter Waagmeester
d5e78e2253 Support {-y} in tile layer urls (Fixes #4284) 2016-03-21 11:51:24 +01:00
Vladimir Agafonkin
8e2e790933 Merge pull request #4327 from Leaflet/prosthetic-hand-tests
prosthetic-hand unit tests
2016-03-18 16:37:38 +02: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
mouradeolive
5f7c2e07d6 fixing this._times.length undefined in Map.Drag.js
Update Map.Drag.js

Update Map.Drag.js
2016-03-15 15:47:37 +01:00
Iván Sánchez Ortega
8aa32484b4 Port #4173 to master 2016-03-08 16:58:36 +01:00
Vladimir Agafonkin
98e87d3d94 Revert "Stop drag propagation, fixes #4249"
This reverts commit a32017f890.
2016-03-07 23:12:39 +02:00
Bjorn Sandvik
a32017f890 Stop drag propagation, fixes #4249 2016-03-07 12:53:50 +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
Vladimir Agafonkin
f7d7ad22b3 Merge pull request #4280 from errebenito/master
Skip call to this._update() if this._map is null
2016-03-01 11:26:57 +02:00
Vladimir Agafonkin
ac6b18d7a2 Merge pull request #4290 from JrFolk/0.7-legacy-support
Increase depth of legacy support
2016-03-01 11:21:58 +02:00
Joseph Folkemer
97921d6cef Increase depth of legacy support
A lot of plugins use the capitalized internal constructors rather than
the API.  This should broaden legacy support for plugins that use the
L.Circle constructor.
2016-02-29 13:01:30 -06:00
Iván Sánchez Ortega
a1371507bf Clean up navigator.pointerEnabled 2016-02-29 16:19:34 +01:00
Raúl Benito
11e289ba7d Skip call to this._update() if this._map is null
Returns this instead of this._update() if this._map is not set on addBaseLayer(), addOverlay() and removeLayer().
2016-02-26 20:57:53 +01:00
Iván Sánchez Ortega
663978227d Unit tests for #4257, attributionControl layeradd/layerremove 2016-02-18 21:31:00 +01:00
Steve Kashishian
fb79bbf9dd centralize setting of attributionControl on map from onAdd 2016-02-18 11:24:44 -05:00
Iván Sánchez Ortega
8290a4179c Check for e.originalEvent in DomUtil._filterclick, should fix #3724 2016-02-17 17:08:00 +01:00
Vladimir Agafonkin
2dd8b8a3b4 Merge pull request #4244 from hyperknot/fix-tileprune-map-bug
check _map in _pruneTiles
2016-02-16 15:18:31 +02:00
Iván Sánchez Ortega
ccd95e38e6 L.Class.include & mergeOptions now return 'this' 2016-02-15 16:38:35 +01:00
Zsolt Ero
d891310b72 check _map in _pruneTiles 2016-02-15 14:49:24 +01:00
Yohan Boniface
0480e3c5f3 Merge pull request #4236 from Leaflet/radius-nan
Throw error on NaN circle radius
2016-02-15 11:19:42 +01:00
Yohan Boniface
50539d6fe5 Merge pull request #4131 from Leaflet/chrome-win10-dblclick
Possible fix for #4127, assume dblclick DOM event exists in touch-capable browsers
2016-02-15 11:18:42 +01:00
Iván Sánchez Ortega
2730a3e3cf Throw error on NaN circle radius, #4235 2016-02-15 10:20:36 +01:00
Zsolt Ero
3517a62729 fix fractional scroll zoom calculation 2016-02-12 00:48:49 +01:00
Per Liedman
0a93dc6d84 Merge pull request #4214 from Leaflet/control-layers-cleanup
Better cleanup of L.Control.Layers, fixes #4213 (plus unit tests)
2016-02-09 22:12:16 +01:00
Iván Sánchez Ortega
ae91ffd248 Merge pull request #4212 from Leaflet/non3d-updatetransform
Branch L.Renderer.updateTransform when not L.Browser.any3d, fixes #4211
2016-02-09 20:13:55 +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
c40aba27bc Branch L.Renderer.updateTransform when not L.Browser.any3d, fixes #4211 2016-02-09 11:05:18 +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
Vladimir Agafonkin
09c3221211 Merge pull request #3523 from Leaflet/fractional-zoom-controls
Fractional zoom controls
2016-02-08 16:39:04 +02:00
Iván Sánchez Ortega
39d7388a2f Revert back to "prune tiles every tileready" behaviour 2016-02-05 17:07:03 +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
cbafca7478 Typo in comments 2016-02-04 13:00:28 +01:00
Iván Sánchez Ortega
a1ff60bf9b Make wheel-zoom speed depend on a new wheelPxPerZoomLevel option 2016-02-04 12:50:42 +01:00
Yohan Boniface
de4526cc1d Sanity check: test pxBounds validity before using it (fix #4153)
Otherwise, we may have bug when polyline latlngs are cleared while
not updating the polyline bounds (so ending with empty latlngs
but this._bounds still valid).
2016-02-04 09:48: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
f43950e3fa Renaming parameters (just for legibility) 2016-01-18 18:08:57 +01:00
Iván Sánchez Ortega
db016b7a30 Partial revert of e2fbe196, fixes #4145 2016-01-18 11:04:48 +01:00
Iván Sánchez Ortega
12f8eb8b84 Fix conflict with wheel events from #3653 2016-01-18 10:27:29 +01:00
Iván Sánchez Ortega
afd7959959 Make linter happy. 2016-01-18 10:10:32 +01:00
Iván Sánchez Ortega
5c0ad75b44 Zoom control shall use the map's zoomDelta option. 2016-01-18 10:10:32 +01:00
Iván Sánchez Ortega
3fde3c0390 Got rid of the loop in Map.getBoundsZoom 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
Iván Sánchez Ortega
11ebda22d5 Work around MS Edge duplicated dblclick on DomEvent.DoubleTap 2016-01-13 14:44:33 +01:00
Iván Sánchez Ortega
ce0b289504 Test webpage for dblclick/dbltap performance 2016-01-13 14:40:30 +01:00
Iván Sánchez Ortega
25648b8f35 Possible fix for #4127, assume dblclick DOM event exists in touch-capable browsers 2016-01-13 14:40:30 +01:00
Iván Sánchez Ortega
dde24042d2 Implement L.Browser.edge 2016-01-13 14:29:46 +01:00
Iván Sánchez Ortega
228d357239 Work around precision issues in circle radius, fixes #2425 2016-01-08 14:45:34 +01:00
Iván Sánchez Ortega
88fa86a692 Merge pull request #4010 from Leaflet/dragend-click
Fix event target fallbacking to map after marker drag (fix #3971)
2016-01-08 13:43:11 +01:00