Commit Graph

6515 Commits

Author SHA1 Message Date
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
Evgeniy Voynov
ce1326912e Added Leaflet.Canvas-Markers plugin (#5870) 2017-10-27 14:24:35 +02:00
scaddenp
118edb9a99 Fix for WMS on Leaflet when using Polar stereographic (#5618)
* Add new method to get NwSe.

Part of fix for https://github.com/Leaflet/Leaflet/issues/5617 for polar WMS systems. Added to bypass using an unsafe bounds object.

* Fix WMS getTileUrl for polar coordinates.

Part of fix for https://github.com/Leaflet/Leaflet/issues/5617 to fetch proper bbox coordinate on polar stereographic projections.

* Update TileLayer.WMS.js

* Update TileLayer.WMS.js

* Update GridLayer.js

* Update GridLayer.js

* Update TileLayer.WMS.js

* Updates to fix syntax/ style issues

Cut/paste error and buch of style stuff.

* Fix style errors

* More style issues

* Yet more style fixes

* More indentation complaints fixed

* Some more code style cleanup

* Even more code style / indentation

* Use bounds
2017-10-27 13:08:35 +02:00
iH8
59d1dea135 Removed master reference and standarized dates (#5882)
Removed master reference and standarized dates
2017-10-27 12:45:33 +02:00
Per Liedman
ca6aff0295 Add notes to classes which don't inherit Class (#5878)
* Add note about LatLng not inheriting Class

Fixes #3301.

* Add note about LatLngBounds, Bounds, Point, CRSs and projections not inheriting Class
2017-10-27 08:27:41 +02:00
Andrew
0f5507d2a7 Add license to route (#5879) 2017-10-26 23:30:08 +02:00
Per Liedman
4bbec02d14 Add license to route
Fixes #2721.
2017-10-26 23:16:20 +02:00
Andrew
c64ae48e1a Merge pull request #5877 from Leaflet/document-custom-options-data
Clarify that any option keys can be used
2017-10-26 22:37:33 +02:00
Per Liedman
fb613bcaed Clarify that any option keys can be used
Fixes #4001.
2017-10-26 22:32:01 +02:00
Per Liedman
d9846d106b Round pan offset towards zero (#5858)
* Add Point.trunc/_trunc

* Truncate pan offset instead of flooring

Fixes #5821
2017-10-26 15:35:35 +03:00