Commit Graph

6449 Commits

Author SHA1 Message Date
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
Andrew
f83b5347f5 skipIfNotTouch instead of overriding Browser.touch (#5869) 2017-10-26 15:34:31 +03:00
Andrew
b5cc500de6 update happen to 0.3.2 - fixes Popup tests in FF and Chrome (#5872) 2017-10-26 09:06:13 +02:00
iH8
1681cca369 Redirect to Plunker, Codepen and JSFiddle (#5868)
* Redirect to Plunker, Codepen and JSFiddle

Redirects to Plunker, Codepen or JSFiddle with corresponding template.
For usage in issuetemplate, issues, StackOverflow etc.
Usage Examples:
http://leafletjs.org/edit.html // Defaults to Plunker using latest
version
http://leafletjs.org/edit.html#provider:codepen;version:1.1.0 // Codepen
with version 1.1.0
http://leafletjs.org/edit.html#provider:jsfiddle;version:master //
JSFiddle with master version.

* To ES5 and file move

To ES5 and file move
2017-10-25 08:53:35 +02:00
Arne Schubert
1595b289ea Add YAGA leaflet-ng2 plugin (#5867) 2017-10-24 19:03:00 +02:00
Andrew
7e5cbceaa5 add icon popupAnchor option test for nonPhantom browsers (#5865) 2017-10-23 15:29:28 +02:00
Andrew
919ead4288 add namespace to svg factory (#5864) 2017-10-23 12:17:19 +02:00
iH8
14fc98cb52 Options for LayerGroup (#5792)
* Options for LayerGroup

Add options parameter to L.Layergroup.initialize and set options.

* Options for LayerGroup factory

Added options parameter to LayerGroup factory method and updated docs
2017-10-23 09:16:24 +02:00
Andrew
dd4667db61 Merge pull request #5859 from Leaflet/fix-circle-bounds-calc
Round circle radius in renderer instead of layer
2017-10-21 12:47:12 +02:00
Andrew
01f9274768 Merge pull request #5861 from danwild/plugin-leaflet-velocity
Add leaflet-velocity to plugin list
2017-10-21 11:13:05 +02:00
Dan Wild
6eb936d03d Added leaflet-velocity to plugin list 2017-10-21 09:27:50 +11:00
ghybs
47a9df194b plugins: add Leaflet.ActiveLayers plugin by vogdb (#5857)
Author already submitted another plugin (Leaflet.SelectLayers) himself some time ago (see commit 18e0061450)
2017-10-20 14:53:13 +02:00
Per Liedman
a9742e0d4b Round circle radius in renderer instead of layer
Makes bounds calculation more precise and zoom level independant.
Fixes #4582.
2017-10-20 14:51:48 +02:00
C Ganesh Sundar
38b3fdec80 Update docs for L.DomEvent.off() (#5855) 2017-10-20 08:29:21 +02:00
ghybs
4782eace28 Docs(MapPanes): add class names links to panes description (#5850)
* Docs(MapPanes): explicitly list layer types in overlayPane

"overlayPane" is the default pane for Layers (https://github.com/Leaflet/Leaflet/blob/v1.2.0/src/layer/Layer.js#L36), but it is overridden for many sub-classes (Marker, DivOverlay, GridLayer).
It would be easier to understand where things go if we explicitly list them in Map Panes section as well. It is almost the case, except for Image Overlay and Video Overlay.

* Docs(MapPanes): convert tooltip class name into code and hyperlink

for consistency with other class names.
2017-10-19 14:23:53 +02:00
Raymond Duckworth
e63370ab4c Small typo (#5849) 2017-10-19 09:07:55 +02:00
ghybs
c0bc8ffe71 Docs(Download): use proper links for CDN's list (#5847)
since they are not parsed by GitHub Markdown when used on Leaflet website.
2017-10-17 17:28:52 +03:00