Commit Graph

6474 Commits

Author SHA1 Message Date
Robert Martin
49d384b32f
Update CONTRIBUTING.md
javascript => JavaScript
2018-01-01 20:10:53 -05:00
Michael Siadak
f31e39c1ac Set alt HTML attribute only for img-based Markers (#5979) 2018-01-01 11:30:16 +02:00
Andrew
fa40fa3a48
Merge pull request #5977 from Oliv/master
Add plugin leaflet-polycolor
2017-12-22 18:37:29 +01:00
Oliv
a4096877f9 Add plugin leaflet-polycolor 2017-12-22 18:03:23 +01:00
Andrew
572938c741
Merge pull request #5948 from ronikar/master
ImageOverlay accept ImageElement
2017-12-21 13:50:48 +01:00
Andrew
0638210e63
Merge pull request #5975 from skedgo/master
We'd like to add a new routing plugin (leaflet.tripgo.routing)
2017-12-21 13:48:18 +01:00
gimenna
fd91e7a4df Doc update: Add leaflet.tripgo.routing in routing section. 2017-12-20 17:00:36 -03:00
ghybs
b1e59c9247 Fix(SVGrenderer): reset svgSize on remove from map (#5966)
so that when the SVG Renderer is re-used and re-added on map, in `_update` method, the check on `_svgSize` triggers and re-assigns `width` and `height` attributes on the `_container`. Otherwise, the latter no longer has width and height, therefore is invisible, until the viewport size is changed.
2017-12-19 12:31:46 +01:00
Andrew
5832b6bd09
Merge pull request #5963 from Leaflet/issueTemplateReferenceLink
Docs(issueTemplate): use generic reference URL
2017-12-18 20:31:11 +01:00
Andrew
2ce37c5771 Fix map pan when touchZoom is disabled (#5952)
* fix map pan when touchZoom is disabled

* add pinch-zoom for non-ie

* add fallback for FF
2017-12-15 16:36:00 +01:00
ghybs
33fcac5cbb
Docs(issueTemplate): use generic reference URL
relying on redirection to point to the latest reference page, instead of the hard-coded versioned one.
2017-12-12 22:59:58 +04:00
Unknown
cd910249d1 this._url keeps sources after _initImage VideoOverlay 2017-12-09 11:36:20 +02:00
songyumeng
e9ffabdd17 fix wms tilesize (#5958)
* fix wms tilesize as L.point
2017-12-08 20:43:12 +01:00
Unknown
575ced6e2c this._url keep an url after _initImage
updated ImageOverlay and VideoOverlay
2017-12-05 20:51:34 +02:00
Jussi Mattas
f0c31c1691 Use more stable form of Haversine formula. (#5935)
* Use more stable form of Haversine formula.

The new form does not give a non-zero distance from a point to itself.

* Pre-compute sines which are used twice.
2017-12-05 09:11:23 +01:00
Vincent D
45b3e041d2 Removed markdown syntax in plugin description 2017-12-04 17:00:05 +01:00
Andrew
5cb9c22f51
Merge pull request #5947 from idawave/patch-1
Updated plugins file with L.DraggableEnhancer under ##Events
2017-12-03 13:11:16 +01:00
GeoportalPL
73bef08c55 Add WMTS plugin demo. (#5945) 2017-12-03 13:08:48 +01:00
Unknown
39c3bf7ed3 ImageOverlay accept ImageElement 2017-12-03 13:20:18 +02:00
Vincent D
9aaa8698dc
Updated plugins file with L.DraggableEnhancer under Events 2017-12-02 22:56:52 +01:00
GeoportalPL
abb14f0b8c Add a plugin to add WMTS services (#5943) 2017-11-30 18:25:23 +01:00
germansokolov13
623fa6161e Docs: add mouseup event to interactive layer (#5941) 2017-11-28 09:20:11 +01:00
Andrew
30d7b8997d add addTo function to Handler (#5930) 2017-11-27 19:40:14 +02:00
Guillaume Rischard
b22ca31716 Optimised images. Saved 1.1 MB out of 9.7 MB. 22.3% per file on average (up to 62%) (#5936) 2017-11-22 15:33:24 +01:00
Iván Sánchez Ortega
67ab617f82
Tweak 'legacy' option in rollup config (#5929) 2017-11-20 10:34:18 +01:00
Andrew
047780659b
Merge pull request #5925 from andyyaldoo/patch-1
Docs: Update extending-1-classes.md
2017-11-18 09:13:38 +01:00
Andy Aldo Dharmawan
bc3a168de8
Update extending-1-classes.md 2017-11-18 15:55:34 +08:00
Per Liedman
1da6222cfb Revert "Enable mouse events on multiple canvas renderers (#5752)" (#5924)
This reverts commit d6739c20c1.
2017-11-17 16:15:21 +01:00
Isak Prytz
4c0c3acdd6 added check for noMoveStart option in map.flyTo (#5923)
* added check for noMoveStart option in map.flyTo

* added implicit false parameter to _moveStart when noMoveStart option is not set

* Shorten option check

* Fix typo :(
2017-11-17 16:08:26 +01:00
jaymmartin
d6739c20c1 Enable mouse events on multiple canvas renderers (#5752)
* Enable mouse events on multiple canvas renderers

* Style Fixes

* Define position before using it
2017-11-17 16:06:20 +01:00
Martin Palmér
1d8cc53408 #5921 Remove touch based click tolerance (#5922) 2017-11-17 14:36:23 +01:00
Andrew
127c023f18
Merge pull request #5918 from aaronplanell/master
Fix function _animateZoom if redirects in the middle of a transition (flyTo)
2017-11-16 19:15:47 +01:00
Aaron Planell Lopez
ceb41bca98 Fix function _animateZoom if redirects in the middle of a transition (flyTo). 2017-11-15 09:21:59 +01:00
iH8
abc3bf3027 Set _tilezoom to undefined instead of null (#5888)
* Set _tilezoom to undefined instead of null

Set _tilezoom to undefined instead of null

Fix for #5871 https://github.com/Leaflet/Leaflet/issues/5871

* add test
2017-11-13 14:27:52 +01:00
Andrew
a5a8f44ed2 update playground link (#5910) 2017-11-11 20:49:29 +01:00
Adel Shah
39245dced0 Updated building instructions (#5908) (#5911) 2017-11-11 20:48:45 +01:00
Louis Pierrestiger
e04bb8bb1d docstrings: renamed Zoom/Pan to zoom/pan (#5905) 2017-11-10 09:13:12 +01:00
Andrew
4a10843d8e
Merge pull request #5903 from briannaAndCo/master
Added Leaflet.Antimeridian to the plugin list.
2017-11-09 19:57:41 +01:00
landonbj
44e43fd5a8 Added Leaflet.Antimeridian to the plugin list. 2017-11-09 10:35:48 -08:00
Andrew
96164fcff0
Merge pull request #5901 from murb/patch-1
add typeof check to checkDeprecatedMixinEvents
2017-11-09 18:43:07 +01:00
Maarten Brouwers
52bd90c27c
add typeof check to checkDeprecatedMixinEvents
!L may result in a undefined error when running tests that also touch including a leaflet plugin.
2017-11-09 10:10:41 +01:00
Sandro Pibia
8e32e31ef8 Update plugins.md (#5862) 2017-11-01 12:59:49 +01:00
iH8
87f81bcb01 Make editors use source instead of minified (#5887)
Make editors use source instead of minified
2017-10-31 18:45:34 +01:00
Arne Schubert
875ed3dfe1 Add a link to YAGA leaflet-ng2 demos (#5889) 2017-10-31 18:45:02 +01:00
ghybs
cf518ff1a5 Fix(Map): stopLocate on map.remove (#5893)
so that Geolocation handlers (namely _handleGeolocationResponse and _handleGeolocationError) do not try to access DOM elements which have been cleared by map.remove().
Of course developer should currently call map.stopLocate() manually before map.remove(), but it looks like he/she may forget it.
Check for _locationWatchId is not perfect (watch may have been already stopped), but calling stopLocate again does not harm. It prevents trying to access the Geolocation API if locate had never been called, even though doing so should not harm either.
2017-10-31 17:46:28 +02:00
ghybs
8dbc4fc9d7 Docs(Map): typo on Map Geolocation watch option (#5894) 2017-10-31 17:37:49 +02:00
Per Liedman
0bcccb0190 An event target is considered a marker if it has getLatLng and no or small radius (#5885)
Fixes #5635.
2017-10-30 19:39:33 +02:00
Alexander Musienko
50b77520b3 Stop animation before destroy map (#5876)
* Null ref fix:

TypeError: Cannot read property latLngToLayerPoint of null\n    at NewClass.update (http://my.uboro.eu/js/vendor/leaflet-1.2.0.js?t=1503882088:7295:23)\n    at NewClass.setLatLng (http://my.uboro.eu/js/vendor/leaflet-1.2.0.js?t=1503882088:7256:8)\n

* stop animation before destroy map
2017-10-30 19:38:49 +02:00
iH8
f6e1a9be91 Removed trailing spaces (#5890)
Removed trailing spaces
2017-10-30 16:30:12 +02:00
Per Liedman
c5cbbf8174 Clean up and document event propagation properties (#5880)
* Add sourceTarget and propagatedFrom to events

Also documents events' target, sourceTarget, propagatedFrom
and layer properties.

Fixes #4510.

* Use propagatedFrom, which is equivalent of the original code

* propagetedFrom -> propagatedFrom
2017-10-27 16:18:12 +02:00