Commit Graph

3024 Commits

Author SHA1 Message Date
Yohan Boniface
a1d64678f2 Do not call zoomIn/zoomOut on zoomControl click if already at zoom limit (#4791)
fix #4790
2016-08-04 10:56:08 +02:00
Yohan Boniface
c07f43825b Only stop "preclick" on popup open for markers (#4788)
We actually do not toggle the popup on click for L.Path.
2016-08-03 21:37:29 +03:00
Steve
3d2b92af82 Provide oldLatLng during marker dragging (#4752)
* Provide oldLatLng during dragging

References #4736

* Store temporary _oldLatLng on MarkerDrag not _marker
2016-08-02 18:40:28 +03:00
Yohan Boniface
a0ee68558f Close non permanent tooltip on map click on touch (fix #4741) 2016-08-02 16:55:17 +02:00
Yohan Boniface
71d3bc02e5 Move closePopupOnClick from DivOverlay to Popup
This option is only used by popup.
2016-08-02 16:55:17 +02:00
Yohan Boniface
8047b0b7a9 Make sure we call event listeners in the order they are registered (fix #4743) (#4769) 2016-08-02 17:53:06 +03:00
Yohan Boniface
450ef3ec77 Take the popup container margin-bottom into account to compute autopan (#4768)
Fix #4759
2016-08-02 17:52:09 +03:00
Yohan Boniface
e746211be7 Better tooltip offset handling (fix #4772) (#4773)
- default offset is now [0, 0]
- both offset.x and offset.y are always honoured
- positive x always move the tooltip on the right
- positive y always move the tooltip on the bottom
2016-08-02 17:51:22 +03:00
Yohan Boniface
fc1dc96638 Allow to call bindTooltip on a layer not yet added to a map (fix #4778) (#4779) 2016-08-02 17:50:53 +03:00
Yohan Boniface
6dec6660b2 Fix tooltip zoomanimation (fix #4744) (#4765)
Actually something I forgot to port from umap-project/Leaflet.Label
2016-08-02 17:38:08 +03:00
Yohan Boniface
406e1f660a Bump version 2016-07-15 12:15:46 +02:00
Vladimir Agafonkin
94303a681b Merge pull request #3952 from Leaflet/label
Implement L.Label
2016-07-15 13:06:36 +03:00
Per Liedman
0bcfbdb537 Cleanup, tests and minor bug fixes for event system 2016-07-08 15:01:38 +02:00
Fabian Zeindl
0210071dad refactoring of events, it should be about 4 times faster now 2016-07-08 14:47:02 +02:00
Yohan Boniface
64ba1f7f95 Rename Label in Tooltip, PopupBase in DivOverlay 2016-07-08 13:51:18 +02:00
Per Liedman
d70602eb60 Fix documentation of default for wheelPxPerZoomLevel 2016-07-08 13:15:45 +02:00
Yohan Boniface
a6529d0ddf Typo in labelPane docstring 2016-07-08 11:37:01 +02:00
Yohan Boniface
fe3649f032 Default L.Label border and tip to white 2016-07-08 11:33:53 +02:00
Yohan Boniface
bd2616f901 Do not rely on options.draggable to compute draggableMoved (#4638)
One can enable dragging of a marker after it has been initialized
with draggable=false.
2016-07-08 11:22:54 +02:00
Yohan Boniface
0dd58bd01f Merge branch 'master' into label 2016-07-08 11:07:22 +02:00
Yohan Boniface
c263f2d8b1 Make L.Handler.enable/disable return this (#4708)
Those are methods used very often, this can save us a lot of
useless lines.
2016-07-05 12:12:51 +02:00
Yohan Boniface
0726f12bbf Make sure label has been opened before trying to interact with its container 2016-07-05 09:07:36 +02:00
Yohan Boniface
c56d48b3e1 CloseLabel when unbinding 2016-07-05 09:04:56 +02:00
Yohan Boniface
6c7e6d9f9e _originalLabelOffset is never used 2016-07-05 09:03:02 +02:00
Yohan Boniface
b8794346c5 L.Label: use direction=auto as default 2016-07-05 09:00:04 +02:00
Yohan Boniface
04c3b515ec Do not call GridLayer.resetView on moveEnd (fix #4702) (#4704) 2016-07-03 12:09:27 +03:00
Yohan Boniface
2f4b97de19 Add support for "center" Label position 2016-07-02 10:52:04 +02:00
Yohan Boniface
25fd9dfbd9 Move options from PopupBase to Popup 2016-07-02 10:42:12 +02:00
Yohan Boniface
14bfedf7ff Merge branch 'master' into label 2016-07-02 10:36:42 +02:00
Vladimir Agafonkin
f533bd908a Updated Readme Logo (#4701)
* clean up svg logo source

* try raw link

* try rawgit link

* add logo width
2016-07-01 19:51:15 +03:00
Iván Sánchez Ortega
cd30e283cf Fix #4592 by falling back to a legacy ScrollEvent property on Edge. (#4694)
* Fix #4592 by falling back to a legacy ScrollEvent property on Edge.

* Improve consistency of scroll zoom by rounding everything to 60px
2016-07-01 17:09:46 +03:00
Yohan Boniface
87e38f1aa4 Do not resetView on GridLayer.moveEnd (fix #4617) (#4669)
* Do not resetView on GridLayer.moveEnd (fix #4617)

* Only call GridLayer._setZoomTransform when zoomchanged
2016-07-01 13:09:38 +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
7add9d4c74 Correct handling of markerZoomAnimation event hooks (#4460)
* Better handling of markerZoomAnimation event hooks, fixes #4453
* Only remove events once on layer remove
2016-07-01 10:52:52 +02:00
Per Liedman
01790eacda Ignore events if Draggable is disabled, fixing disabling drag on click in IE11 (#4479)
* Ingore events if Draggable is disabled
Close #3666.

* Add test for verifying fix to #3666
2016-06-27 16:16:03 -07:00
Yohan Boniface
bddfb1168f Do not alter popup.options.offset (fix #4645) (#4662)
* Do not alter popup.options.offset (fix #4645)
* Remove unused code after commit 33e7fca
2016-06-27 04:03:06 -07: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
1d1b7e2aea Be more defensive when using other layers pxBounds in L.Canvas._draw (#4653)
In some edge cases, it will not be defined. For example if a poly
with no latlngs (or only one) is attached to the canvas renderer.
2016-06-18 23:51:41 -07:00
Ray Hammond
e2caf40cad docstrings: Adds missing GeoJSON functions to API docs (#4642)
Fixes #4630
2016-06-13 10:51:01 +02:00
Yohan Boniface
d1de37aa88 Fix broken sizeOption when L.point instance (#4636) 2016-06-10 15:36:07 +02:00
Alexander Myshov
f1f96933f0 docstrings: Add description to time argument of Util.throttle (#4633) 2016-06-09 09:37:49 +02:00
Alexander Myshov
f701789c90 docstrings: Fix getEvents() description, update FAQ (#4625)
* Fix description for getEvents() method

* Fix outdated info in FAQ about MapQuest (fix #4624)
2016-06-06 15:42:46 +02:00
Alexander Myshov
43676fe6e9 Fix example of calling parent methods 2016-06-03 18:01:15 +06:00
Alexander Myshov
1a3f56701b Add links onto wikipedia page about WMS 2016-06-02 16:29:52 +06:00
Alexander Myshov
f5b3cf0535 Add link onto wikipedia page about TMS (#4615) 2016-06-02 10:24:56 +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
Per Liedman
bb7d23d7a0 Prevent touch-action depending on enabled handlers (#4552)
Close #4051.
2016-06-01 17:41:50 +03:00
Jon Woyame
35caae1a1a remove extra init of drag start (#4591) 2016-06-01 17:30:02 +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
Iván Sánchez Ortega
bd2093a3af docstrings: linkify map panes 2016-05-27 10:52:37 +02:00
Iván Sánchez Ortega
5cc9b79c97 docstrings: Refactor interactive layers, implements #4583 (#4585) 2016-05-25 10:57:18 +02:00
Iván Sánchez Ortega
d4ea41214d docstrings: minor links around. 2016-05-20 13:45:12 +02:00
Iván Sánchez Ortega
dd91852303 docstrings: Minor improvements to map panes and popup factory 2016-05-20 12:55:03 +02:00
Iván Sánchez Ortega
061fbd1ca6 Scale down getWheelDelta() in win+chrome and ffx+retina, should fix #4538 (#4557) 2016-05-20 10:21:59 +02:00
Per Liedman
fbc6265fb7 Fix when all listeners are removed during dispatch (#4555)
Close #4478.
2016-05-12 10:22:36 +02:00
Matthew Mueller
fb6b4776c6 Prevents L.DomUtil.create() from automatically setting the class name to 'undefined' when no class is sent to the function. (#4563) 2016-05-12 10:18:01 +02:00
Valentin Hervieu
5edeb408c0 Control.Layers._getLayer - Fix #4560 : _getLayer iterates too far on layers array (#4561) 2016-05-11 16:02:17 +02:00
Benjamin Becquet
4ca0133704 docstrings: fix typos and mistakes in L.GridLayer (#4559) 2016-05-11 15:05:20 +02:00
Iván Sánchez Ortega
03dc9697b6 Docstrings: non-standard WMS parameters as L.TileLayer.WMS options (#4531) 2016-05-11 10:47:31 +02:00
Jay Varner
1b405dc10e Classname gridlayers (#4553)
* Adding  option to TileLayers.

* Fix spacing.
2016-05-10 15:32:34 +02:00
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
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
Iván Sánchez Ortega
653f5d01ff Merge pull request #4099 from tcoats/tileunload-cases
Fire tileunload for all unloading of tiles
2016-01-08 13:27:24 +01:00
Iván Sánchez Ortega
7de33f0f7b Merge pull request #4108 from Leaflet/geojson-case
Consistent GeoJSON casing
2016-01-08 11:32:36 +01:00
Iván Sánchez Ortega
6b23688121 Merge pull request #4110 from hyperknot/retina-fix
retina url fix
2016-01-08 11:31:20 +01:00
Iván Sánchez Ortega
adbcf75c92 Merge pull request #4114 from Leaflet/projected-bounds-from-all-polyline-coords
Use all projected coords when calculating Polyline's pixel bounds.
2016-01-08 11:25:27 +01:00
Per Liedman
832b43ac58 Use all projected coords when calculating Polyline's pixel bounds.
Close #3968. Close #4020.
2015-12-28 20:59:57 +01:00
Yohan Boniface
748ae5338f Merge pull request #4089 from Leaflet/always-reset-enforcing-bounds
Make sure to always reset _enforcingBounds.
2015-12-28 16:43:00 +01:00
Per Liedman
2b64978c9e Don't use try-finally 2015-12-28 15:00:20 +01:00
Zsolt Ero
b5d3dcf2ab retina url fix 2015-12-28 05:45:31 +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
Yohan Boniface
64484d5c74 Fix event target fallbacking to map after marker drag (fix #3971) 2015-12-25 11:54:31 +01:00
Thomas Coats
8a0719f16c Fire tileunload for all unloading of tiles 2015-12-17 21:34:35 +13:00
Jesper Baasch-Larsen
9d1c59b5cd use _tileCoordsToKey everywhere 2015-12-15 14:13:52 +01:00
perliedman
2919d8b7bf src/layer/marker/DivIcon.js
Cast bgPos to L.Point. Fixes #4067
2015-12-14 14:19:17 +01:00
perliedman
b6c87c3fa8 Make sure to always reset _enforcingBounds.
Even in case of early exit or exception.

Fixes #3938.
2015-12-14 13:45:47 +01:00
Ole Laursen
f90678a593 Fix bug with max bounds and custom projections.
_getBoundsOffset was assuming that SE/NW were the min/max corners, but
this isn't necessarily true after projection.
2015-12-09 14:34:32 +01:00
Per Liedman
7c3d7cb139 When limiting center to bounds, ignore offsets less than a pixel. 2015-12-08 23:10:57 +01:00
Daniela Remogna
609a792792 fix bug for hover event between circle overlapping polygon on canvas 2015-12-05 12:51:11 +00:00
Brobin
70ed0e75c9 call getSize() instead of _size to avoid render error 2015-12-01 17:50:21 -06:00
Iván Sánchez Ortega
edacdf3bd5 Merge pull request #3653 from Leaflet/wheel
Switch to wheel event where available
2015-12-01 09:40:32 +01:00
Iván Sánchez Ortega
fa3da6503f Skip horizontal scroll on wheel events. Thanks to Julius Buset and his laptop's trackpad. 2015-11-30 17:09:30 +01:00
Vladimir Agafonkin
5b0384ea12 Merge pull request #4046 from RLRR/pan-anim-round-newpos
Round new map position before animating pan
2015-11-24 12:54:55 +02:00
Vladimir Agafonkin
f23074d790 Merge pull request #4040 from Leaflet/gridlayer-pixelbounds
Fix GridLayer pixelBounds computation
2015-11-23 23:48:31 +02:00
Alex Fedosov
3a2331d6c1 round new map position before animating pan 2015-11-23 19:05:39 +06: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
850ba7fe62 Move _setPosition from L.Popup to L.PopupBase so it can be inherited
Idea is to make it easier for plugins to create custom popups or
labels or whatever HTML element that would be bound to a map layer.
2015-11-15 19:18:29 +01:00
Yohan Boniface
d8b7f6fcbe L.Label: honour opacity option 2015-11-15 19:15:14 +01:00
Yohan Boniface
92217bc969 Distinguish labelopen/close and popupopen/close events 2015-11-15 17:47:25 +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
Iván Sánchez Ortega
99a48a5255 Merge pull request #4000 from simsibimsiwimsi/master
issue #3995 fixed check for maxZoom option to honor maxZoom 0
2015-11-10 09:04:02 +01:00
Iván Sánchez Ortega
7d35531236 Skip _updateLevels when out of min/max zoom (prevents IE8 exceptions) 2015-11-09 14:35:54 +01:00
Iván Sánchez Ortega
da57507494 L.DomUtil.getPosition should return a fallback value (for VML in IE8) 2015-11-09 12:40:21 +01:00
simsibimsiwimsi
3cfb1eff04 fixed check for maxZoom option to honor maxZoom 0
Checking if maxZoom is a number will work fine for {maxZoom: 0} where
options.maxZoom evaluates to false.
2015-11-08 22:44:47 +01:00
Haoyang Xu
772220070f init interaction regardless of new icon or not
[issue #3976]

previously interaction only get inited when not reusing icon, i.e. when addIcon
flag is set to true. by taking the statement out of the if condition,
interaction is inited whenever setIcon is called.
2015-10-30 20:50:28 +08:00
Iván Sánchez Ortega
a969d20476 DomEvent.getWheelDelta() now aware of WheelEvent.deltaMode 2015-10-20 10:31:16 +02:00
Iván Sánchez Ortega
f6e9f90c41 Merge pull request #3950 from klaftertief/fix-canvas-zoom_split-events
Alternative fix for #3947
2015-10-20 09:40:53 +02:00
Yohan Boniface
d901a5fc07 Fix interactive=false not taken into account for canvas (fix #3946) 2015-10-19 21:39:04 +02:00
Yohan Boniface
b685d22eee Add popup in label debug page 2015-10-18 10:37:12 +02:00
Yohan Boniface
d7b721877c First naive L.Label version 2015-10-17 22:42:17 +02:00
Jonas Coch
3e0067fab7 Split renderer events and use zoomstart only in SVG renderer 2015-10-16 20:32:44 +02:00
Jonas Coch
e6e165869f Disable _onZoomStart in canvas renderer
This fixes disappearing paths when starting an animated zoom.
2015-10-16 13:27:53 +02:00
Jonas Coch
0df4d57f91 Use moving() method to simplify check in canvas renderer 2015-10-15 20:45:23 +02:00
Jonas Coch
b0d5c12b50 Add moving() method to MapDrag handler 2015-10-15 20:44:17 +02:00
Jonas Coch
ace08c17ca Only check for moving draggable in canvas renderer when map is draggable 2015-10-15 17:21:22 +02:00
Vladimir Agafonkin
a147dae838 Merge pull request #3923 from Leaflet/renderer-pinch-zoom
Better handling of Renderer positioning during pinch-zoom, fixes #3919
2015-10-13 15:58:52 +03:00
Yohan Boniface
f75d80a626 Canvas: layer is removed later by this._draw (fix #3926) 2015-10-12 17:11:50 +02:00
Iván Sánchez Ortega
a7f72fd6bd Merge pull request #3925 from Leaflet/layers-control-touch
Fix control layers scrolling on touch (fix #2882)
2015-10-12 14:48:52 +02:00
Yohan Boniface
9d10699bcd Fix control layers scrolling on touch (fix #2882) 2015-10-12 14:33:32 +02:00
Iván Sánchez Ortega
2191cfa8b0 Better handling of Renderer positioning during pinch-zoom, fixes #3919 2015-10-12 14:10:48 +02:00
Yohan Boniface
d3198d8d39 Fix duration not passed through from setView to panBy (fix #3300) 2015-10-12 14:02:30 +02:00
Vladimir Agafonkin
a0ff396b94 Merge pull request #3921 from Leaflet/pan-shiftkey
multiply offset by 3 on keyboard pan when shift key is pressed
2015-10-10 21:28:38 +03: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
6af0cfde53 multiply offset by 3 on keyboard pan when shift key is pressed 2015-10-10 18:03:05 +02: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
danzel
8f6d188088 bringToFront / bringToBack for popups.
Fixes #3813
2015-10-09 09:49:49 +13:00
Yohan Boniface
7c2ac9f39d Make sure mouse has an external relatedTarget on mouseout/over (fix #3797 #3708) 2015-10-08 14:57:33 +03:00
Vladimir Agafonkin
3bf767c5a9 Merge pull request #3897 from Leaflet/transitionend-timeout
Zoom anim fires 'transitionend' event handler on a timer
2015-10-08 14:08:03 +03:00
Iván Sánchez Ortega
8685e6a106 Do not reset a gridlayer during a zoom animation, fixes #3902 2015-10-08 11:46:19 +02:00
Vladimir Agafonkin
0964aa882d Revert "Removing unneeded L.Map._latLngToNewLayerPoint, see #3895"
This reverts commit 08c779367f.
2015-10-08 01:06:41 +03:00
Iván Sánchez Ortega
e15097dc1a Hack iOS tile loading race hack-fix from 3e200bed 2015-10-07 17:04:24 +02:00
Vladimir Agafonkin
4d934dfecb Merge pull request #3872 from Leaflet/tap-mousemove
Simulate mousemove on touchmove (fix #3825)
2015-10-07 16:50:17 +03:00
Vladimir Agafonkin
ca15b9be8d Merge pull request #3882 from Leaflet/openpopup-while-animating
Prevent Popup._adjustPan while already panning (fix #3744)
2015-10-07 13:52:32 +03:00
Yohan Boniface
03d3bee8b1 Prevent Popup._adjustPan while already panning (fix #3744) 2015-10-07 12:34:42 +02:00
Iván Sánchez Ortega
08c779367f Removing unneeded L.Map._latLngToNewLayerPoint, see #3895 2015-10-07 12:30:20 +02:00
Vladimir Agafonkin
be43485e02 Merge pull request #3895 from Leaflet/renderer-animatezoom
L.Renderer shall use center and not topleft as reference
2015-10-07 13:28:12 +03:00
Iván Sánchez Ortega
c101b836c7 GridLayers implement the 'noWrap' option (previously in 0.7.x TileLayers) 2015-10-06 16:38:30 +02:00
Iván Sánchez Ortega
4eb39d5312 Zoom anim fires 'transitionend' event handler on a timer, see #3689, #2693
Nothing but a port of a hack in stable, see 91477588fa
2015-10-06 16:09:33 +02:00
Iván Sánchez Ortega
a2595bbfe8 L.Renderer shall use center and not topleft as reference, fixes #3769 2015-10-06 15:35:10 +02:00
Iván Sánchez Ortega
c9532a8d92 Workaround for keyboard tabindex in MS Edge, fixes #3772 2015-10-06 10:12:11 +02:00
Yohan Boniface
8f189bce23 Add flag not to run panInsideBounds when already panning (fix #3848) 2015-09-30 12:11:26 +02:00
Yohan Boniface
a1d488a9ac Simulate mousemove on touchmove (fix #3825) 2015-09-28 16:28:07 +02:00
Vladimir Agafonkin
8c8d0ac7ee fix whitespace in comments 2015-09-25 15:37:07 +03:00
Vladimir Agafonkin
301473ad4d more strict eslinting 2015-09-25 13:40:21 +03:00
Coen Mulders
bcde047f09 Added zoom for the custom scale in L.CRS.Simple
Fixes #3867
2015-09-25 13:16:52 +03:00
Vladimir Agafonkin
7a9f2aefb3 Merge pull request #3859 from olee/patch-1
Fix bug with maxNativeZoom == 0
2015-09-22 00:57:53 +03:00
Björn Zeutzheim
458d5c9ac8 Fix bug with maxNativeZoom == 0
Setting `maxNativeZoom` to `0` does not work as expected (only use zoom level 0) but instead disables the function.
This PR fixes this problem.
Same fix applies for (afaik current stable) 0.7.5
2015-09-22 01:49:05 +09:00
Yohan Boniface
8ea42c1ccc Add padding on canvas redraw bounds 2015-09-20 12:32:40 +02:00
Yohan Boniface
f643d25637 Use clip to limit canvas redraw area (fix #3583) 2015-09-20 12:32:40 +02:00
Yohan Boniface
e576ce528e Linting 2015-09-20 12:32:15 +02:00
Vladimir Agafonkin
6e9236de93 Merge pull request #3837 from Leaflet/rendered-update
Always call renderer.getEvents before Path.getEvents (fix #3836)
2015-09-20 00:06:36 +09:00
Iván Sánchez Ortega
e0aa981818 Merge pull request #3841 from javimolla/fix2990
Extract logic from getScaleZoom to CRS
2015-09-19 11:03:00 +09: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
d1ea887b1b Merge pull request #3694 from Leaflet/disabled-layer-control
L.Control.Layers shows disabled inputs for non-visible tilelayers
2015-09-17 18:04:29 +09:00
Vladimir Agafonkin
e1c714edab Merge pull request #3722 from Leaflet/gridlayer-zindex-fix
Always force GridLayer to have a zIndex
2015-09-17 17:57:13 +09:00
Matthew Mueller
b8aea43414 Fixing negative acceptableHeights and supporting browser resize
The previous formula calculated acceptableHeight as (map height - (4 * element offset).  If the element had other controls above it, it might be pushed lower on the screen, which depending on screen size means that the acceptableHeight could quickly become a negative value which causes a bug.   For example: my map has a height of 815px, and my layer control is offset from the top 277px so it is almost halfway down my screen.  Using the old formula, the acceptable height would be 815 - (277 * 4) = -293.  Since the acceptable height was less than the client height the scrollbar would show up, but it would be greyed out, and because the height limit was negative, the window would not have a height limit and expand off the map. Using the new formula it takes the vertical offset, and adds 50px(element is 36px,+ bottom credits height + a few pixels for a bottom margin) to determine max height.  This means the element will be able to expand until it is a few pixels above the credits at the bottom of the map before it stops expanding.

Additionally, by resetting the form.style.height to null before checking the clientHeight, we are removing the limit on the height of the control, so that if someone resizes their browser window to make it larger when viewing the layer list, the list will reset the max height instead of keeping the smaller max height that was already set, and in addition, if the scrollbar is no longer needed, it will be removed.
2015-09-17 17:42:56 +09:00
Vladimir Agafonkin
a54c239238 Merge pull request #3815 from Leaflet/tilelayer-update-zoom
Fix TileLayer._update so it doesn't break drag-then-pinch interactions.
2015-09-17 17:36:13 +09:00
Yohan Boniface
bd55613cb5 Always call renderer.getEvents before Path.getEvents (fix #3836) 2015-09-16 11:35:26 +02:00