Commit Graph

6500 Commits

Author SHA1 Message Date
Iván Sánchez Ortega
8437311e17 Plugins: Add Vaadin framework component 2016-11-15 14:40:01 +01:00
Lazarev Alexandr
4a75faf2ef tutorials: Fixed broken relative links (#5099)
* Fixed broken realtive links

* Fixed links

* Convert relative link to ./

* Convert relative link to ./
2016-11-15 10:41:38 +01:00
Aleksey Shmigelski
feb716401a round tooltip position (#5089) 2016-11-13 18:33:17 +01:00
Patrick Arlt
ab31976c75 A11y fixes from #3210 (#5092) 2016-11-11 17:17:49 -08:00
Yohan Boniface
88d107ca96 Merge pull request #5087 from Leaflet/layers-collapse-alt
Always create L.Control.Layers as collapsed; expand if collapse option not set
2016-11-11 16:15:49 +01:00
Per Liedman
a656a0b9ec Add unit test 2016-11-11 15:54:05 +01:00
Iván Sánchez Ortega
df0a81e365 Finish drags when a L.Draggable is removed, fix #5063. (#5065)
* Finish drags when a L.Draggable is removed, fix #5063.

* Use L.Draggable._dragging to check if we should stop the drag

* Add Draggable.finishDrag to allow finishing drag programmaticaly

Out of any event.
2016-11-11 15:34:03 +01:00
Iván Sánchez Ortega
2967ffd49d Changelog: update with #4597, #5090 2016-11-11 12:09:14 +01:00
Per Liedman
a4bbec5924 Make sure mouseout for previous hovered layer before mouseover for new (#5090)
Close #5082
2016-11-11 12:04:03 +01:00
Iván Sánchez Ortega
8c22c4e385 Ensure zoom is within span when adding a layer with min/maxzoom, fixes #4915 (#4916)
* Ensure zoom is within span when adding a layer with min/maxzoom, fixes #4915.

* Add tests written by @theashyster

* Add tests to verify map's zoom is actually adjusted to layer's min/max
2016-11-11 10:46:31 +01:00
Jon Woyame
d5c499b732 limit css selectors for svg/canvas (#4597) 2016-11-11 10:45:34 +01:00
Per Liedman
d2f91e39bd Always create as collapsed; expand if collapse option not set
Close #5073.
2016-11-10 17:30:31 +01:00
Iván Sánchez Ortega
4d24a118d9 Changelog: update with #5045, #4916 2016-11-10 14:24:44 +01:00
Iván Sánchez Ortega
fd78560036 L.GeoJSON.asFeature should pass through FeatureCollections (#5049)
* L.GeoJSON.asFeature should pass through FeatureCollections

* Add unit test to verify FeatureCollection toGeoJSON
2016-11-10 13:53:38 +01:00
Per Liedman
d0d699bfa4 Fix missing variable 2016-11-10 11:07:53 +01:00
Martin
94977ee7fb Remove unnecessary gendered text in documentation 2016-11-03 19:39:49 +00:00
Iván Sánchez Ortega
26cce79170 Mention TMS tile scheme for EPSG:4326 proj, fixes #5072 2016-11-03 16:28:21 +01:00
Per Liedman
957659fcd0 Move attribution option and getAttribution to L.Layer (#5070)
Close #5051.
2016-11-03 09:32:56 +01:00
ghybs
9d91ab06ff docstrings: correct GeoJSON methods returns (#5064)
`addData`, `resetStyle` and `setStyle` methods of `L.GeoJSON` actually return `this` (the current GeoJSON Layer Group), not any Layer.
Can be especially confusing in the case of `resetStyle`, where we pass a layer as argument, and with `addData`, which can accept a single GeoJSON feature, hence we could (mistakenly) think that it returns the newly created layer.
2016-10-30 11:02:24 +01:00
Iván Sánchez Ortega
d110f448cd Plugins: Remove Mandelbrot.GL and add TileLayer.GL 2016-10-29 23:14:55 +02:00
ghybs
aa6aa49f56 docstring: improve default icon customization text (#5058)
detailed that modifying `L.Icon.Default.prototype.options` only customizes the icon, but it remains an image-based icon.

Added a paragraph about completely replacing the default icon, so that it can now be anything (including a divIcon).
2016-10-28 15:21:42 +03:00
Iván Sánchez Ortega
7b3c673a16 docstrings: L.Control inherits from L.Class 2016-10-28 12:38:43 +02:00
ghybs
edbcff4386 Changed of L.LatLngBounds arg names to corners (#5059)
as proposed in a recent issue.
This change should not affect the code, it is only for consistency with docstrings.
docstrings: replaced southWest and northEast argument names by corner1 and corner2, to try to prevent confusion that Leaflet will keep these corners at those places, whereas it actually "re-orders" them to keep lowest values West-most / South-most, as if they were just corners.
2016-10-28 09:38:09 +02:00
Jack Reed
0b5c12fd65 Removes an incorrect semicolon (#5060) 2016-10-28 08:11:59 +02:00
Iván Sánchez Ortega
5fa0bf9750 Preliminary changelog for 1.0.2 2016-10-27 10:13:50 +02:00
Iván Sánchez Ortega
4b8762edf9 Refactor L.Path _update and _project into L.Renderer so that no event handling is needed (#5054)
* Refactor L.Path _update and _project into L.Renderer so that no event handling is needed

* Refactor away L.Path's _update event logic
2016-10-27 09:38:28 +02:00
commenthol
9fd0ba15b7 leaflet-rastercoords (#5038) 2016-10-25 15:18:53 +03:00
b_b
7300097d28 Fix marker shadow if max-width is set (#5046)
complement to c75af44ca2
2016-10-25 11:28:19 +02:00
Kenta Hakoishi
cf71ebaf51 Plugins: Add Leaflet.LabelTextCollision (#5042)
* Update plugins.md

Add Leaflet.LabelTextCollision to the list of plugins in docs

* grammar fixes
2016-10-24 11:22:06 +02:00
Per Liedman
670662e718 Fix canvas redraw when style updates fill and/or weight (#5034)
Close #5031.
2016-10-21 16:09:26 +02:00
Per Liedman
fa7accacef Prevent canvas from firing multiple mouseover for same layer. (#5033)
Also, fire mouseover for at most one layer for every mousemove,
preventing overlapping features from firing multiple
mouseover/mouseout (#4495).

Close #5028. Close #4495.
2016-10-21 16:57:59 +03:00
ghybs
34dca3cfd9 Fix #5011 (canvas remove+add) (#5024)
Bug when using map option `preferCanvas: true` (canvas renderer for paths) and removing then adding back a vector within the same animation frame (typically in the same sequence, as done by Leaflet.markercluster at `"zoomend"` event, to remove layers and clusters outside visible bounds).
This commit clears the `_removed` flag from paths when they are added to the canvas.
Also added corresponding test suites.
2016-10-20 15:50:15 +03:00
Jouke Witteveen
814fe5dab4 Fix language (#5023)
These struck me when reading the controls section.
2016-10-20 15:49:29 +03:00
John Muccigrosso
d135fc4527 Fix language (#5022)
1. Improve some of the language to be more readable
2. Correct reference to night style base map, which isn't actually used
3. Add detail that it's possible to style the text in the control
2016-10-20 15:48:48 +03:00
Per Liedman
a97b87d033 Remove extra word from doc string 2016-10-20 08:22:50 +02:00
Yohan Boniface
bc82976430 Remove duplicated test in Draggable (#5021)
We already are testing for this._enabled some lines before.
2016-10-18 08:00:44 +02:00
Vladimir Agafonkin
d8c3ead1b4 Merge pull request #5019 from mikhailshilkov/master
Add leaflet-corridor to the list of plugins in docs
2016-10-17 17:42:55 +03:00
Mikhail Shilkov
92ec6a0d4b Add leaflet-corridor to the list of plugins in docs 2016-10-15 23:36:21 +02:00
Per Liedman
08a140fc30 Add plugin Leaflet Touch Helper 2016-10-14 14:04:01 +02:00
Per Liedman
17f1815005 Add plugin Leaflet Measure Path 2016-10-14 13:54:30 +02:00
erick
d2add3dd5c docstrings: add clarification for projection; closes #4817 (#5010)
* Fix doc: add clarification for projection; closes #4817

Adds clarification in the documentation that specifies that the
`project` and `unproject` methods cannot take in arrays, but only
actual instances of `L.LatLng` and `L.Point`, respectively.

* Fix doc: add clarification for transform methods

Changes the word "real" for the word "actual" so that people don't
confuse actual instances of `L.Point` with coordinates using real
numbers.
2016-10-12 09:22:05 +02:00
Serdar Kaçka
eff82bfbbe docs: Fix path of Code Coverage report page on CONTRIBUTING.md file (#5005) 2016-10-11 16:39:51 +02:00
Per Liedman
b144d2f13e Fix docs typo: extend MyClass, not L.Class; close #5009 2016-10-10 12:49:19 +02:00
Iván Sánchez Ortega
d40d82a226 Docs: Add the plugin tutorials from #4356 (#4854)
* Docs: Add the plugin tutorials from #4356

* Include ImageOverlay in class diagram
2016-10-07 16:45:02 +02:00
Adam Roberts
fd438cb277 Plugins: addition of Leaflet.CondensedAttribution (#5006) 2016-10-06 18:10:46 +02:00
Iván Sánchez Ortega
16e04741a2 Docstrings: Marker.toGeoJSON 2016-10-06 09:15:05 +02:00
Iván Sánchez Ortega
d048e77a59 Link to "The Art of README" in the plugin guide (#5001) 2016-10-03 16:41:20 +03:00
Per Liedman
350919b2ff Use all four corners when projecting ImageOverlay during animation (#4993)
Close #4886.
2016-10-02 22:07:05 +03:00
John Muccigrosso
7f350e4442 docstrings: Better description for easelinearity (#4994) 2016-10-02 16:23:11 +02:00
Sumit Kumar
c2330c7ce6 Updated leaflet.pm description (#4990) 2016-10-01 22:02:57 +03:00