Commit Graph

6224 Commits

Author SHA1 Message Date
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
Vladimir Agafonkin
863cf74461 move zoom animation code into Map.js 2016-09-30 19:51:01 +03:00
Vladimir Agafonkin
ff73971294 move pan animation code into Map.js 2016-09-30 19:51:01 +03:00
Vladimir Agafonkin
5110298c45 get rid of separate Layer.Popup.js and Layer.Tooltip.js 2016-09-30 19:51:01 +03:00
Vladimir Agafonkin
88b593b7ab move flyTo to Map.js 2016-09-30 19:51:01 +03:00
Vladimir Agafonkin
d0879e14af move geolocation methods to Map.js 2016-09-30 19:51:01 +03:00
Vladimir Agafonkin
e3545bc9b9 move marker extensions to Marker.js 2016-09-30 19:51:01 +03:00
Michal Haták
7ec434e505 docs:plugins.md: add Leaflet-gplaces-autocomplete (#4949) 2016-09-30 16:44:03 +02:00
Dan Brown
4c8aff03fd add link to "leaflet-betterscale" (#4987)
This is a more GIS-like scale bar with alternating black/white bars.
2016-09-30 17:40:40 +03:00
Iván Sánchez Ortega
c7a129ba9c Docs: Fix leatest/latest leaflet version 2016-09-30 14:37:01 +02:00
Iván Sánchez Ortega
0ff89b7b33 Changelog for 1.0.1 2016-09-30 14:19:56 +02:00
Iván Sánchez Ortega
9a1d786075 Version bump to 1.0.1 2016-09-30 14:19:56 +02:00
Iván Sánchez Ortega
60b35c0920 Docs: Make the latest leaflet version into a Jekyll variable, for templates. (#4986) 2016-09-30 15:10:33 +03:00
Iván Sánchez Ortega
6ee1a6eb65 Clean up docs/examples - one directory per tutorial, more templating. (#4965)
* Clean up docs/examples - one directory per tutorial, more templating.

* Fix some URLs

* tutorials: update rendered CDN links to 1.0.0 and L.circle signature (#4975)

* Update shown CDN links to 1.0.0

As initially done in PR #4967, but just for the rendered links (what the users sees), as actual link / script tags are already updated.

* DOCS update L.circle to new syntax

in quick-start tutorial, following PR #4974.

* DOCS update L.circle to new syntak (example src)

updated L.circle to new signature (radius as an option instead of 2nd parameter).

* tutorials: use L.geoJSON new syntax (#4983)

* tutorials: use new syntax L.geoJSON

for consistency with recommended factory new syntax (`L.geoJSON` instead of legacy `L.geoJson`).
As done in PR #4933 for docstrings.

* tutorials: L.geoJSON new syntax in script

* Renamed several files to directory/index.md
2016-09-30 13:56:05 +02:00
ghybs
d0ffe8a1ab docstrings: L.GeoJSON functions to methods
Corrected docstrings of L.GeoJSON for methods (addData, resetStyle, setStyle) to be really counted as "methods" instead of static "functions" (geometryToLayer, coordsToLatLng, coordsToLatLngs, latLngToCoords, latLngsToCoords, asFeature)
2016-09-30 13:59:58 +03:00
ghybs
bc01b2b30b docstrings: explicit effect of L.GeoJSON filter
Following https://stackoverflow.com/questions/39776919/how-to-reference-the-data-of-an-existing-geojson-leaflet-object/39787583#39787583, sounds like the current definition "decide whether to show a feature or not" implies that the data is retained in memory, but just not shown.

Replaced "show" by "include" to try to make it clearer that the filtered out data is _lost_ (not retained at all within the group).

Also took the opportunity to add a note about changing the `filter` option dynamically (no re-evaluation of child layers, whether they meet the new filter conditions or not).
2016-09-30 13:59:58 +03:00
Jeff Barnes
837d190933 Fix webpack using valid image file for default icon path (#4849) (#4979) 2016-09-30 13:11:52 +03:00
Babajide Fowotade
6b0808d6f0 Don't load class leaflet-tile-loaded in case of error (#4980) 2016-09-30 09:28:42 +02:00
Steve Kashishian
c624a3ed50 remove explicit image path on two debug pages 2016-09-29 15:12:08 -05:00
ghybs
628fc04333 docstrings: update L.circle example to match new syntax (#4974)
docstrings: update L.circle example to match new syntax
2016-09-29 13:21:11 +02:00
Iván Sánchez Ortega
9cd41c0985 Update README.md: Leaflet 1.0.0 weights 37KiB, not 33KiB 2016-09-29 12:46:46 +02:00
Matthew Brener
9bb516970e docstrings: its to it's where appropriate in GridLayer.js (#4963)
Very nitpicky I know.
2016-09-28 10:53:33 +02:00
Vladimir Agafonkin
7e772661e5 update changelog 2016-09-28 01:14:21 +03:00
Per Liedman
d10077e13e Fire update event from VML renderer (#4956)
Close #4950.
2016-09-27 19:59:40 +02:00
Vladimir Agafonkin
52a3eefbc2 add a 1.0 notice on frontpage (#4955) 2016-09-27 19:31:58 +03:00
Vladimir Agafonkin
fd8c2599ef fix icon url warnings in tests 2016-09-27 17:58:08 +03:00