Commit Graph

6472 Commits

Author SHA1 Message Date
Dave Leaver
c758d18fa2 Merge pull request #5426 from jgravois/patch-1
add jsdoc for DomUtil.TRANSITION_END
2017-03-31 13:44:00 +13:00
john gravois
48a76bc6fd jsdoc DomUtil.TRANSITION_END 2017-03-30 17:34:51 -07:00
Bert Spaan
9baeb34dae Added Leaflet.GeotagPhoto to list of plugins (#5424)
* Added Leaflet.GeotagPhoto

* removed "Leaflet"
2017-03-29 15:23:14 +02:00
Iván Sánchez Ortega
28a0adc132 Ensure renderer's container is init'ed when a path is added to map (#5404) 2017-03-29 09:52:43 +02:00
Dave Leaver
27263b7afa Control.Layers: Only add layer events to layers when we are on the map. Fixes #5421 (#5422) 2017-03-28 23:10:29 +02:00
Tom Salisbury
96cfdd3a3d Added z-index support to ImageOverlay (#5418) 2017-03-28 10:54:24 +02:00
Tom Salisbury
8278ed393d Added error event to ImageOverlay layer and added tests for the new (#5416)
event and existing error handling. Also added missing
documentation for the load event.
2017-03-28 08:54:26 +02:00
Thach Hoang
0d1eae32be Fix debug examples after rollup (#5417)
Fix #5373.

- Remove references to removed file "../../build/deps.js"
- Update leaflet-include.js to point to "../dist/leaflet-src.js"
- Update watch to use the same destination file as rollup (dist/leaflet-src.js)
- Define getRandomLatLng where used
2017-03-28 08:40:48 +02:00
ghybs
06ed42ad2c Docstrings: LayerGroup.hasLayer add method call with id (#5411)
With the current `hasLayer` code, we can call this method by passing the `_leaflet_id` and get the same result as passing the corresponding layer object.
Added the alternative method call, as done for `removeLayer` method.
2017-03-27 09:35:05 +02:00
Dave Leaver
f044a45477 Fixing english 2017-03-27 13:14:09 +13:00
geografa
ca288ddc07 makes gender neutral (#5405) 2017-03-23 00:15:20 +02:00
Yuzo Matsuzawa
edaedb6f56 Add Leaflet.TileLayer.ColorPicker to plugins list (#5398)
Leaflet.TileLayer.ColoPicker adds getColor(latLng) to TileLayer. It will be useful when you just want to pick a color (or elevation encoded as color) from displaying tile.

color picker demo: <https://frogcat.github.io/leaflet-tilelayer-colorpicker/>
elevation picker demo: <https://frogcat.github.io/leaflet-tilelayer-colorpicker/mapbox-terrain-rgb.html>
2017-03-21 09:33:32 +01:00
PPete
087d14170f Plugins: add "Leaflet.PolylineMeasure" (#5394)
* Update plugins.md

* Update plugins.md

* Update plugins.md
2017-03-20 10:05:46 +01:00
BjoernSchilberg
94fff4f101 Use "yarn global add" (#5379)
Use "yarn global add" instead of "yarn install -g". Because "yarn install" is used to install all dependencies for a project [1]. "yarn global"  install packages globally on your operating system [2].

[1] https://yarnpkg.com/en/docs/cli/install
[2] https://yarnpkg.com/en/docs/cli/global
2017-03-08 13:36:58 -08:00
Per Liedman
d3c7ed13ad Stop map on drag start instead of pointer down (#5378)
* Stop map on drag start instead of pointer down; fix #5350

* Remove unused _onDown event handler
2017-03-08 15:41:02 +01:00
geoloep
25014b8825 Plugins: Add Leaflet.ClickTolerance (#5374) 2017-03-07 12:24:04 +01:00
Per Liedman
c18ac11efb Include L.Mixin.Events again; add deprecation notice (#5365)
Close #5358
2017-03-07 09:53:24 +01:00
Anant Prakash
da1a89871d Error handler in ImageOverlay for 404 links (#5307)
* Added Error handler in L.ImageOverlay._initImage

* fixed syntax
2017-03-02 13:28:52 +01:00
Lewis Christie
0ed260c847 fix invalid geoJSON produced by nested LayerGroups (#5359) 2017-03-02 13:21:56 +01:00
8to5Developer
3b4dcbcd2b Plugins: add leaftlet-custom-searchbox (#5363)
Extended the "search & popup" section with the details of the new "leaftlet-custom-searchbox" plugin.
2017-03-01 10:10:59 +01:00
Billy Newman
364bc77735 Update toolbar inner border radius (#5361)
Flatten toolbar inner border radius to match grey outline on touch devices (L.Browser.touch = true).  fixes #5360
2017-02-27 16:42:16 +01:00
Iván Sánchez Ortega
7c17df5d58 Minor formatting of the issue template, update doc link to 1.0.3 2017-02-24 10:32:44 +01:00
Iván Sánchez Ortega
01e0640335 Docstrings: recover lost docstring for L.Util.lastId (#5352) 2017-02-21 14:52:17 +01:00
ghybs
9e4f79d1e5 Fix(#5328): Layers Control can now become scrollable even if collapsed: false (#5348)
* Fix(#5328): Layers Control scrollable even if collapsed: false

the `expand()` method was called only when expanding the Layers Control through user action.
In the case of option `collapsed: false`, no event listener is attached (no user action expected to expand), therefore the control height is no longer adjusted compared to map container's height, whereas the only time it is done is at initialization, when the control is not yet inserted into the DOM, hence it does not have an actual height to check against.
Therefore added a hook on `addTo()` in order to run `expand()` AFTER the control has been insterted into the DOM.
The same issue happens when later adding more base layers / overlays to the Layers Control: it not collapsed, we should run again the height check (e.g. through the `expand()` method) to make sure we make it scrollable if necessary.
Therefore called `expand()` after each `_addLayer()`.
Actually checking first if the control is on map and if option `collapsed: false` in order to prevent calling `expand()` for nothing.

* Test(ControlLayers): 2 tests for collapsed: false being scrollable

(for issue #5328).
CAUTION: unlike most other tests, had to actually insert the map container into the DOM (i.e. `document.body`) for these tests to be useful, otherwise the height remains at 0.
This may lead to memory leak and tests hanging if done on too many tests (see Leaflet.markercluster tests issue, e.g. https://github.com/Leaflet/Leaflet.markercluster/pull/577)
2017-02-21 14:33:01 +01:00
Dave Leaver
bd957ad32f Have uglifyjs spit out a sourcemap for leaflet.js too. (#5351)
* Have uglifyjs spit out a sourcemap for leaflet.js too.

Fixes #5341

* Fix incorrect source map file when publishing a release and add the new one too.
2017-02-21 13:53:07 +01:00
Denis
643ca522c1 Export lastId in Util (#5349)
Looking over at the documentation I noticed that `lastId` was an available property however it wasn't exported.

http://leafletjs.com/reference-1.0.3.html#util-lastid
2017-02-21 13:37:57 +01:00
Thomas Brüggemann
c9fbf54570 Plugins: update boat marker links and text (#5347) 2017-02-20 10:03:04 +01:00
Benjamin J DeLong
7c2aafa58c Plugins: Fix to link to "3rd party" category (#5344) 2017-02-18 15:16:22 +01:00
Benjamin J DeLong
b11910abc0 Docs: plugins.md instead of plugins.html technically (#5345) 2017-02-18 15:15:39 +01:00
Flávio Carmo
893ebf5613 plugins: Add Leaflet.Zoominfo (#5336)
* Add Leaflet.Zoominfo plugin

* Update plugins.md
2017-02-16 10:27:29 +01:00
Lyzi Diamond
7391e308cc rotate access tokens (#5338) 2017-02-16 09:44:50 +02:00
Joachim Kuebart
29375b4b9c ES6ify: Provide missing SVG static methods. (#5330) 2017-02-14 19:39:57 +01:00
Iván Sánchez Ortega
f57b5bf7ee Couple tests for Map.Keyboard.disable() 2017-02-14 13:15:50 +01:00
Iván Sánchez Ortega
c856c6090f Do not stop keypress on escape if no popup is open 2017-02-14 13:15:50 +01:00
Iván Sánchez Ortega
b997839fe7 Docstrings: map.panBy has options 2017-02-14 12:08:13 +01:00
Simon Legner
c5f7dc4ad3 ES2015 modules: Add index.js files to subdirectories/namespace (#5329)
* Add index.js files to subdirectories/namespace

This allows to streamline the import/export in the main file.

* Fix tests by switching to karma-rollup-plugin
2017-02-13 14:14:00 +01:00
Tariq Soliman
fe496a2b2d Docs: remove iframe borders on examples (#5327) 2017-02-13 11:01:38 +01:00
Joachim Kuebart
1010451a66 Pull min/maxNativeZoom from TileLayer into GridLayer, as per #5316. (#5319)
* Pull min/maxNativeZoom from TileLayer into GridLayer, as per #5316.

* Add a couple unit tests for GridLayer's maxNativeZoom
2017-02-09 10:33:43 +01:00
Per Liedman
689b71e280 Disable click propagation on zoom control buttons (#5318)
Close #5308.
2017-02-08 13:02:10 +01:00
Madis Allikmaa
59298a72d0 Docstrings: Fix popup "autoClose" and "closeOnClick" options, fixes #5040 (#5304)
* Fix popup "autoClose" and "closeOnClick" options documentation, fixes #5040

* Docstring for Popup `closeOnClick` option

* Backticks on docstrings
2017-02-07 16:24:36 +01:00
Iván Sánchez Ortega
fa458e7511 Add CSS for -webkit-tap-highlight-color, fixes #5302 2017-02-07 10:44:56 +01:00
Per Liedman
ce6975057f Removed type attribute in HTML5 files (#5309) 2017-02-06 20:33:15 +01:00
Uzerus
cab880d4d8 type attribute not required in HTML5 2017-02-06 20:32:50 +01:00
Brandon XIANG
a58a28a9a0 Plugins: Add leaflet.marker.highlight (#5312) 2017-02-06 09:44:06 +01:00
Miguel Andrade
ad75456fa5 add margin to LatLngBounds.equals method (#5071)
* add margin to LatLngBounds equals method

* add tests
2017-02-02 16:55:30 +01:00
Iván Sánchez Ortega
53e90945aa add L.Draggable options and fix docstring (#5301) 2017-02-02 16:46:58 +01:00
Iván Sánchez Ortega
ddc3a9ca61 Fix max/min calculation for getBoundsZoom (fixes #5136) (#5137)
* Fix max/min calculation for getBoundsZoom (fixes #5136)

* Added test for inside param of L.Map.getBoundsZoom()
2017-02-02 16:21:10 +01:00
Iván Sánchez Ortega
14c5f1602c Scrubbing of detached DOM elements, prevents memory leaks (#5265)
* Scrubbing of detached DOM elements, prevents memory leaks and fixes #5263

* Make linter happy
2017-02-02 10:57:57 +01:00
Dave Leaver
5603a87c70 Remove marker.dragging when not on the map (#5295)
* Add some tests for #5293

* Fix enabling marker dragging while markers aren't on the map by removing the dragging object when not on the map.

This is a change of behavior (.dragging is only defined when a marker is on the map).

* Docs for dragging change
2017-02-02 10:14:39 +01:00
Rowan Winsemius
d10f3ca317 Plugins: Add leaflet-easyPrint (#5296) 2017-02-01 12:11:03 +01:00