Commit Graph

6515 Commits

Author SHA1 Message Date
Iván Sánchez Ortega
65102bc4d1 Website updates for 1.0.2, version bump (#5123) 2016-11-21 12:33:57 +01:00
Iván Sánchez Ortega
c6f8e8eafd Update changelog 2016-11-21 11:17:51 +01:00
Iván Sánchez Ortega
232f5b6cf8 Plugins: Fix name 2016-11-21 09:23:22 +01:00
Craig Barnes
f3ba107531 Plugins: fix link URL (#5121)
The embedding of Markdown text within an outer, raw HTML block was
causing it to be rendered literally.
2016-11-21 09:22:17 +01:00
Iván Sánchez Ortega
d89271b404 Docstrings: 'x' and 'y' properties for L.Point, closes #5117 2016-11-18 16:35:23 +01:00
Per Liedman
54d6fc24c1 Merge pull request #5088 from bb-juliogarcia/minNativeZoom 2016-11-18 15:46:22 +01:00
Julio Garcia
3875722edf Removing unneeded comment 2016-11-18 15:45:23 +01:00
Julio Garcia
d303a7b681 Adding Unit Tests for minNativeZoom and maxNativeZoom 2016-11-18 15:45:23 +01:00
Julio Garcia
243daa90ef Fixing linting errors 2016-11-18 15:45:23 +01:00
Julio Garcia
4eba3a0973 Adding support for minNativeZoom in TileLayer.js 2016-11-18 15:45:23 +01:00
Per Liedman
4c484462dc Canvas improvements (#5115)
* WIP refactor canvas clear

* Fix clearing bounds, remov unnecessary code

* Refactor redraw logic

* Remove flicker on update

* Fix code style

* Add support for layer ordering with bringToFront/bringToBack

* Fix redraw when layer moves

* Add example for moving canvas layers

* Fix code style

* Use layer ordering for mouse events

* Fix removing first or last layer
2016-11-18 15:22:35 +01:00
Iván Sánchez Ortega
d28e3eeccb FAQ.md: Link to GoogleMutant instead of shramov, which is now deprecated 2016-11-18 15:00:33 +01:00
Per Liedman
9cb7274001 Make click on canvas fire for only one layer (#5100)
Close #5091.
2016-11-17 16:51:59 +01:00
Iván Sánchez Ortega
4e979514c3 Add a 'sortLayers' option to L.Control.Layers (#4711)
* Add a 'sortLayers' option to L.Control.Layers

* Add a sortFunction option to L.Control.Layers

* Fix default sort function; modify test
2016-11-17 12:52:29 +01:00
Iván Sánchez Ortega
0be6ee89da Plugins: add Leaflet.TileLayer.MBTiles 2016-11-16 15:53:58 +01:00
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