Commit Graph

2618 Commits

Author SHA1 Message Date
Yohan Boniface
1b1d21b1bf Let's say I'm @IvanSanchez for once 2016-04-02 15:59:54 +02:00
Iván Sánchez Ortega
560e73bac5 Trying out Leafdoc comments in L.Marker
Added Leafdoc comments to Layer.js

Leafdoc comments for Popup, Layer

Leafdoc comments: L.Evented, inheritances, minor tilelayer

Leafdoc comments: gridlayer & tilelayer options

Leafdoc comments: tilelayer, marker drag

Typos

Leafdoc: switch to shorthand method params

Leafdoc: Switch to shorthands in marker drag, WMS.

Leafdoc: Vector layers

Leafdoc: Layer group, feature group, geojson

Leafdoc: LatLng, Point, Bounds, Icons.

Leafdoc: Controls.

Leafdoc: DOM & utils.

Leafdoc: "jake docs" now builds the documentation

Leafdoc: Commit actual templates instead of symlinks

Leafdoc: Fix broken build, have jake print out uglifyjs errors

Leafdoc: Several L.Map bits.

Leafdoc: Map handlers

Leafdoc: Map events, L.CRS, misc. fixes

Leafdoc: Fixed ordering of classes by using new leafdoc features

Leafdoc: Misc bits at the bottom of the docs

🍂doc: Map panes

🍂doc: CRSs, projections and their templates

🍂doc: miniclasses for map methods' options

Leafdoc: Cleanup L.Class, mark uninheritable sections, use Leafdoc 0.3.0

🍂doc: miniclasses for event types, bump to Leafdoc 1.0.0

🍂doc: Make linter happy after branch rebase

🍂doc: Tweaked headers for inherited stuff.

🍂doc: Tweaking section headers (white, padding, triangles)

Leafdoc: upgrade to 1.2, document SVG&Canvas, and misc bits

🍂doc: minor CSS tweaks, version in filename, typo.

Add missing bits - supersedes #4105, #4065, #4031

🍂doc: moved sections around, minor typos & fixes

Typo about LocationEvent
2016-04-02 15:59:39 +02:00
Yohan Boniface
ec10c1bb6b Merge pull request #4364 from Leaflet/fix-canvas-dasharray
Initialize canvas dash on init. Check that canvas supports setLineDash.
2016-04-02 11:51:57 +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
Per Liedman
4267291527 Initialize canvas dash on init. Check that canvas supports setLineDash.
Close #4363. Close #4351.
2016-04-02 09:41:59 +02:00
Manuel Villing
19d91d5bcd feat: added better error for fitBounds
related to #4345
2016-03-28 15:34:34 +08: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
Vladimir Agafonkin
73c8242667 Merge pull request #4340 from Leaflet/bounce-touch
Fix zoom handling on Map.TouchZoom
2016-03-22 09:29:49 +02:00
Iván Sánchez Ortega
6829134e90 Possible fix for #3530, also should fix some shaking on pinch-zooming. 2016-03-21 15:51:29 +01:00
Jan Pieter Waagmeester
37254587be Allow dashes in template placeholders + tests 2016-03-21 14:36:21 +01:00
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