Commit Graph

2763 Commits

Author SHA1 Message Date
Yohan Boniface
6e8ac31993 Fix setMaxBounds not resetting when passing null argument (#4494) 2016-05-09 15:12:51 +02:00
Nathan Cahill
88f5f234cd docstrings: uncomment maxZoom option in L.GridLayer (#4424)
Not sure why this was commented out in @IvanSanchez's doc fixes. It will be undefined regardless.
2016-05-09 13:15:59 +02:00
Nathan Cahill
875e1987b5 docstrings: uncomment crossOrigin option in L.ImageOverlay (#4426)
The check that's used later is `if (this.options.crossOrigin)`, which currently evaluates to undefined. Setting the default option to false keeps the typing consistent.
2016-05-09 13:15:19 +02:00
Nathan Cahill
e2de21481e docstrings: add missing parameters to L.Util.indexOf docstring (#4473) 2016-05-09 13:06:25 +02:00
Nathan Cahill
181022ffa7 docstrings: correct TileEvent and TileErrorEvent properties (#4492) 2016-05-09 13:02:12 +02:00
Nathan Cahill
faeb46b27c docstrings: add missing L.Map controls method docs (#4496) 2016-05-09 13:01:37 +02:00
Nathan Cahill
6d961d7eee add L.Control extension docs (#4513) 2016-05-09 12:56:26 +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
b4b97277c4 Support top and bottom direction 2016-05-06 13:30:58 +02:00
Nathan Cahill
fdc0063b01 correct gridlayer tile async example docs - fixes #4541 (#4543) 2016-05-06 09:06:35 +02:00
Yuzo Matsuzawa
4d490139bd Fix typo in L.Bounds docs (#4536) 2016-05-04 13:43:23 +02:00
Nathan Cahill
63f3c851ba correct docs for GeoJSON.onEachFeature (#4512) 2016-05-01 08:57:54 +02:00
Iván Sánchez Ortega
9bbfc6aefb Docstrings: Add a note about using locate() over plain HTTP (#4520) 2016-05-01 08:56:06 +02:00
Yohan Boniface
8a2255afc3 Merge branch 'master' into label 2016-04-30 14:36:48 +02:00
Iván Sánchez Ortega
19f048110f Docstrings: linkify map.locate() 2016-04-27 16:06:21 +02:00
Iván Sánchez Ortega
4460bd74ad Minor typo in docstrings 2016-04-27 11:09:57 +02:00
Jan Pieter Waagmeester
4febc5d629 Replace for..in with standard for in L.Control.Layers, fixes #4508 (#4509) 2016-04-26 15:24:34 +02:00
Per Liedman
17ec366263 Fix retina logic when zoomReverse is enabled. (#4503)
Close #4399.
2016-04-25 21:30:59 +03:00
Nathan Cahill
8bfb37bbf4 consistent return if layer exists (#4504) 2016-04-25 20:03:08 +02:00
Nathan Cahill
4ad74d879d correct DragEndEvent event type (#4491)
DragEndEvent has a distance property
2016-04-22 20:51:55 +02:00
Nathan Cahill
c5ae732b7d correct ResizeEvent event type (#4490) 2016-04-22 20:48:07 +02:00
Nathan Cahill
3fc3a4d1c5 fix inconsistency in GeoJSON event class name (#4489) 2016-04-22 21:21:31 +03: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
269eabc490 fix typo in PosAnimation docs (#4482) 2016-04-21 20:20:06 +02:00
Nathan Cahill
2b52369fac Add CRS.distance docstring (#4466)
* add CRS.distance docstring

* add CRS.distance return values
2016-04-20 20:57:06 +02:00
Yuzo Matsuzawa
442d710b51 Fix typo in L.Draggable docstring (#4471) 2016-04-20 17:56:29 +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
ddf8f0575e Leafdoc: fix internal links & inconsistent return types (#4469)
* Leafdoc: fix internal links & inconsistent return types

* an -> a
2016-04-20 16:29:08 +02:00
Iván Sánchez Ortega
c3426d6bb6 docstring fixes regarding Polyline/Circle options 2016-04-20 09:48:53 +02:00
Nathan Cahill
86e49f92ff fix Util.template docstring (#4468) 2016-04-19 23:55:51 +02:00
Iván Sánchez Ortega
91fa757571 Add 'updateWhenZooming' option to L.GridLayer (#4462) 2016-04-19 16:36:10 +03:00
Nathan Cahill
3e8fcbda97 add option type for 'center' value (#4456) 2016-04-19 14:19:45 +02:00
Nathan Cahill
7347446c57 add LineUtil.clipSegment docstring (#4437) 2016-04-19 14:19:19 +02:00
Iván Sánchez Ortega
ca01120227 Use git rev as semver metadata 2016-04-19 12:32:08 +02:00
Per Liedman
c22ee29d79 Bump version to 1.0.0-rc.1 (#4454) 2016-04-18 09:26:02 +02:00
Nathan Cahill
c59bf6ad30 remove duplicate Map.options.renderer 2016-04-16 12:42:59 -06:00
Nathan Cahill
25d5a8119e remove duplicate maxBoundsViscosity option (#4449) 2016-04-15 23:53:41 +02:00
Nathan Cahill
46083ad881 add missing types to Map.createPane docstring (#4450)
Last one, hopefully.
2016-04-15 23:52:03 +02:00
Nathan Cahill
ede3246f4d fix typo in Map.getMaxZoom docstring (#4447) 2016-04-15 20:48:01 +02:00
Nathan Cahill
f060a832e8 add missing type to Map.getPixelWorldBounds (#4448) 2016-04-15 20:47:41 +02:00
Nathan Cahill
119c80fe94 fix typo in flyTo docstring options type (#4446) 2016-04-15 20:46:53 +02:00
Nathan Cahill
c09f83a1fb fix autoPanPadding typo in docstring (#4445) 2016-04-15 19:14:13 +02:00
Nathan Cahill
c10f405a11 switch options type from path to polyline for polygon and rectangle - fixes #4427 (#4444) 2016-04-15 17:22:51 +02:00
Per Liedman
ce9b9f58bd Don't prevent pointerdown if target is a form control (#4371)
* Don't prevent pointerdown if target is a form control.

* Add clarifying comment.

As per https://github.com/Leaflet/Leaflet/pull/4371#issuecomment-204815017
2016-04-15 16:10:51 +02:00
Yohan Boniface
a069c41dd7 Merge pull request #4441 from Leaflet/sheppard-zoom-topleft
Fix regression for default control position
2016-04-15 15:56:41 +02:00
Per Liedman
24d8be60ad Fix regression of control positions 2016-04-15 15:53:38 +02:00
Per Liedman
f3c80fdbdc Add comments 2016-04-15 15:29:24 +02:00
Per Liedman
e5dcb007c6 Add comments 2016-04-15 15:29:24 +02:00
Per Liedman
f05af08a2c Ignore simulated mouse events in Draggable.
Draggable handles touch events, and does not rely on
simualted mouse events; under some circumstances, it
even breaks on simualted events (see #4315).

This ignores any simulated events in the event handlers,
to just deal with the real events.

Close #4315.
2016-04-15 15:29:24 +02:00
Nathan Cahill
37532b33eb add missing type to setZIndex docstring in L.LayerGroup (#4428) 2016-04-15 13:31:52 +02:00
Nathan Cahill
755c7ed0c0 add missing docstring options for L.GeoJSON.latLngsToCoords() (#4429) 2016-04-15 13:31:15 +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
Nathan Cahill
978fdb5add fix typo in Browser.mobile docstring (#4434) 2016-04-15 09:42:37 +02:00
Nathan Cahill
1964f35ea4 correct return type in docstring of LatLngBounds.extend (#4430) 2016-04-15 09:30:21 +02:00
Nathan Cahill
70a208b088 correct return type in docstring of L.Point (#4431) 2016-04-15 09:27:05 +02:00
Nathan Cahill
f8a453dc3a add missing round parameter to Bounds.getCenter docstring (#4432) 2016-04-15 08:44:30 +02:00
Nathan Cahill
51e155483d change parameter type in docstring from |null to optional (#4433) 2016-04-15 08:42:34 +02:00
Nathan Cahill
4ff5b10a27 add docstrings for L.Control methods (#4435) 2016-04-15 08:29:30 +02:00
Nathan Cahill
5d2607a947 Add missing return type in docstring for Util.indexOf (#4436) 2016-04-15 08:27:10 +02:00
Nathan Cahill
5b67a2d093 fix DomUtil.getClass docstring (#4438) 2016-04-15 08:05:33 +02:00
Nathan Cahill
1db460ab2b correct docstring default value for L.ImageOverlay interactive (#4425)
Was true, should be false.
2016-04-14 19:39:42 +02:00
Nathan Cahill
da614f9253 correct docstring for L.TileLayer.WMS transparent option
Fix copy/paste error from styles
2016-04-14 10:24:06 -06:00
Nathan Cahill
67c1370404 consistent return type with aliased method (#4418)
Evented.listens() returns a boolean, so hasEventListeners() will as well
2016-04-14 08:52:25 +02:00
Nathan Cahill
095003ac2a fix capitalization in L.GridLayer.getContainer() doc (#4419) 2016-04-14 08:51:06 +02:00
Zsolt Ero
63870f1c5b fitBounds round fix (#4402)
* fitBounds zoom snapping round fix

* fitBounds zoomSnap rounding fix
2016-04-11 16:16:51 +02:00
S. Andrew Sheppard
8258a3e3e7 update default position to match leafdoc
(indirectly fixes zoom control, which no longer has it's own default)
2016-04-08 14:34:01 -05: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
Iván Sánchez Ortega
2d548af829 Add leafdoc comments for the 'crossOrigin' option in ImageOverlay, fixes #3646 2016-04-02 18:16:27 -07:00
Iván Sánchez Ortega
3305aa2b05 Added leafdoc comments for the 'zoomanim' event, fixes #2862 2016-04-02 18:16:11 -07:00
Per Liedman
4adba1256e Fix SVG dragging in IE and Edge.
Use correspondingUseElement as target for SVG.



Close #4359.
2016-04-02 18:15:39 -07: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
Iván Sánchez Ortega
e083d41ff7 Merge pull request #4367 from Leaflet/fix-4023
Just keep _moveEnd inside requestAnimFrame. Close #4023.
2016-04-02 20:08:51 +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
Per Liedman
fa3aeced7a Merge pull request #4370 from Leaflet/collapse-expand
Make L.Control.Layers.collapse/expand public methods
2016-04-02 19:48:06 +02:00
Iván Sánchez Ortega
0cfe85897f Make non-interactive markers not fire pointer events
* Make non-interactive markers not fire pointer events, fixes #3936

* Make non-interactive image overlays and SVGs not fire pointer events

* Make gridlayers non-interactive, fixing #2396 too.
2016-04-02 19:33: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
8b888915e0 Make L.Control.expand() and collapse() return this 2016-04-02 18:34:47 +02:00
Yohan Boniface
e287b5ec15 Make L.Control.Layers.collapse/expand public methods
The aim is to allow people to call them programmatically.
So they must be public, documented and thus reliable.

Closes #3049
Closes #2713
2016-04-02 18:34:47 +02:00
Iván Sánchez Ortega
4b38a7165a rm spurious check, fixes #4068 2016-04-02 18:32:31 +02:00
Per Liedman
f1ce036caf Remove use of ES5 function (map). Close #4362. 2016-04-02 18:25:57 +02:00
Iván Sánchez Ortega
86a7f79dc9 Fire 'viewreset' on map.stop(), fixes #3985 2016-04-02 18:18:05 +02:00
Yohan Boniface
9560b28515 Merge pull request #3916 from Leaflet/leafdoc
🍂doc
2016-04-02 16:18:41 +02:00
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
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
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
4a009962a4 Just keep _moveEnd inside requestAnimFrame. Close #4023. 2016-04-02 11:09:01 +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