Commit Graph

6269 Commits

Author SHA1 Message Date
Jan Pieter Waagmeester
02b263af52 Plugins: Add leaflet-clonelayer (#5291)
repo: https://github.com/jieter/leaflet-clonelayer
2017-01-31 16:46:05 +01:00
Vladimir Agafonkin
703ae02aa8 ES6 modules & Rollup (#4989)
* WIP ES6 modules & rollup

* WIP ES6 modules & rollup 2

* WIP ES6 modules & rollup 3

* WIP ES6 modules Browser

* WIP ES6 module fixes

* WIP ES6 modules: simpler browser exports

* WIP ES6: refactor CRS/Projection modules, CRS obj -> CRS.Base

* get rid of unnecessary index.js

* WIP ES6 modules, dom events and stuff

* Make linter happy, rollup to dist/

* revert to CRS namespace/class for now

* WIP rollup: export more stuff

* export controls

* rollup: export Layer

* rollup: export DomEvent

* rollup: export more layer types

* rollup: export Popup/Tooltip

* WIP: ES6-ify marker, icon, domutil, draggable.

* ES6-ify gridlayer, tilelayer.

* ES6-ify: Tweak imports-exports, code is now runnable!!

* ES6-ify: Fix scope in some DomUtils

* ES6-ify: Path, fix Popup

* ES6-ify: Lint & cleanup

* ES6-ify map handlers, more linting

* ES6-ify: Icon.Default namespacing

* ES6-ify: Renderers, CircleMarker

* ES6-ify: Circle, Polyline, LineUtil

* ES6-ify: Polygon, Rectangle, LineUtil, PolyUtil, linting

* ES6-ify: SVG.VML

* ES6-ify: DomEvent.Pointer, DomEvent.DoubleTap

* ES6-ify: Linting, make Karma play nice with Rollup

* ES6-ify: More work on fixing bits breaking some unit tests.

* ES6-ify: rollup the version number, fiddled with build scripts

* ES6-ify: Fiddle with test scripts

* ES6-ify: cleanup (refs to global L, imports from (DOM)Util), prevent cyclic loop on Map imports

* ES6-ify: More cleanup of (DOM)Util/Browser/DomEvent imports

* ES6ify: Use rollup's "legacy" option for ES3 (IE8) builds

* ES6-ify: Clean up build scripts, fix CONTRIBUTING.md instructions

* Typo

* ES6-ify: minor fixes and lefovers after rebasing on top of 1.0.2

* ES6-ify: upgrade to rollup 0.38 for proper IE8 builds, fix L.SVG.VML

* Make linter happy.

* ES6: Fixing typos and sxrew-ups after big rebase

* Fix symlink for debugging scripts

* ES6: Cleanup old build scripts

* ES6-ify: Update build system to include git rev in L.version

* ES6-ify: re-enable unit tests replacing L.Path with L.Polyline

* Export Path

* ES6ify: cleanup old banner file

* ES6-ify: whitespace in var declarations

* ES6-ify: Export toTransformation as L.transformation

* ES6-ify: cleanup L.transform exports

* ES6-ify: "import Util" in Transformation and SVG.VML
2017-01-30 11:35:16 +01:00
Markus
3ac37c29a4 Add L.transformation factory, allow creation from array (#5282)
* added transformation getter

* fixed lint, added editorconfig

* added CRS.Simple transformation values again

* removed editorconfig
2017-01-30 09:43:50 +01:00
Jan Pieter Waagmeester
60d1f78977 Remove MapQuest from leaflet-providers description (#5286) 2017-01-28 12:21:33 +01:00
Vladimir Agafonkin
174e693912 fix badge 1.0.3 blog link 2017-01-23 18:05:46 +02:00
Iván Sánchez Ortega
bfc3092e9c Blog post for v1.0.3 release (#5275)
* Blog post for v1.0.3 release

* Update blog link in front page

* Remove badge for 1.0.0 announcement
2017-01-23 18:02:02 +02:00
Iván Sánchez Ortega
03e4116e5f Update API reference (and links) to 1.0.3. (#5276) 2017-01-23 17:50:21 +02:00
Iván Sánchez Ortega
1cc4660d98 Changelog for 1.0.3, version bump. (#5274)
* Changelog for 1.0.3, version bump.

* Fix 1.0.3 release date
2017-01-23 12:16:07 +01:00
Per Liedman
67f12ee6e9 Avoid multiple canvas updatePaths/redraws during viewreset (#5250)
* Avoid multiple canvas updatePaths/redraws during viewreset

Close #5170.

* Fix code style

* Add a code comment
2017-01-23 11:06:03 +01:00
Iván Sánchez Ortega
2b5d401976 Another blind attemp to work around dblclicks on Edge (#5268)
* Another blind attemp to work around dblclicks on Edge

* Make linter happy, do not forget about IE11 & IE11 pointer events
2017-01-23 10:56:08 +01:00
Sylvenas
f8bcccc24f Plugins: add magicmarker
add magicMarker plugin
2017-01-20 09:13:35 +01:00
Reinier Battenberg
af72aa7647 IE8: Remove trailing comma in L.Layer options (#5270)
The trailing column in the Layer default Options Object definition crashes IE8.
2017-01-19 16:55:43 +01:00
Iván Sánchez Ortega
ad271063a4 Docstrings: clarify L.Browser.Touch (see #5266) 2017-01-19 09:33:57 +01:00
Mariano Carballal
7f11fdfbae Add alternative text to marker shadows (#5259) 2017-01-17 20:26:44 +02:00
Sylvenas
7ea3ab8888 Plugins: add migrationLayer (#5261) 2017-01-17 10:19:42 +01:00
Per Liedman
d250465fef Merge branch 'jieter-patch-3'
Close #5168.
2017-01-13 17:53:55 +01:00
Jan Pieter Waagmeester
01a4b95853 Now use the correct regression fix: #5131 2017-01-13 17:53:22 +01:00
Jan Pieter Waagmeester
15e4456581 Point to correct PR for the layers control PR 2017-01-13 17:53:22 +01:00
Iván Sánchez Ortega
059a722b5b Implement wrapLatLngBounds (to fix #5149) (#5166)
* Implement wrapLatLngBounds (to fix #5149)

* Unit tests for wrapLatLngBounds
2017-01-13 16:39:01 +01:00
Iván Sánchez Ortega
694da33fc6 Blind attemp to fix Edge dblclicks (side effects of #5185) (#5248)
Blind attempt to fix Edge dblclicks (side effects of #5185)
2017-01-13 08:47:41 +01:00
Iván Sánchez Ortega
007a63ab65 Fix typo in docstrings 2017-01-11 10:29:57 +01:00
Yiğit Yüce
bc3270177e Plugins: Add L.Control.Custom (#5240) 2017-01-10 09:38:57 +01:00
Jason
ea7900ad62 Plugins: Add Leaflet.LinearMeasurement (#5239)
I added a plug in to the measurement section.  https://github.com/NLTGit/Leaflet.LinearMeasurement  Let me know what additional steps are required for this to go live.  Feedback on the tool is encouraged and welcome!
2017-01-10 09:37:01 +01:00
Grigory Golikov
a1c1ea214f Add Leaflet.Viewpoint to plugins list (#5219) 2017-01-03 13:22:50 +02:00
Iván Sánchez Ortega
2996298d59 Inclue changes from #5054 into VML code (fixes #5213) (#5215) 2016-12-23 16:32:14 +02:00
Aaron Petcoff
9e5903db40 adds graceful fallback to clientWidth & clinetHeight in getSize (#5209) 2016-12-22 01:36:58 +02:00
Iván Sánchez Ortega
b8b7281ee8 Added unit test for #5202 2016-12-21 14:49:47 +01:00
Hagai
4e58391235 Fix edge case of closing popups during their popupopen event (#5202)
Replacing `this._map` with `map`.
2016-12-21 14:46:34 +01:00
Marvin Bredal Lillehaug
884463bb09 Avoid getBoundsZoom return Infinity when using CRS with flipped axis (#5204)
* Create new bounds from projected coordinates rather than subtract in getBoundsZoom to avoid negative scale. Fixes #5195

* Fix unit test mocks

Apparently, mocking `project()` instead of `latLngToPoint()` magically works.

* Expected zoomlevel is 9, not 7
2016-12-19 12:40:22 +01:00
Yet Another Fred
3c1c14f64f Plugins: Add leaflet-responsive-popup (#5203)
* Add leaflet-responsive-popup to plugins page

* simplify leaflet-responsive-popup description
2016-12-18 11:43:17 +01:00
Mark Lee
7c96246044 docs: fix quick start link in mobile tutorial (#5192) 2016-12-15 09:43:30 +01:00
Iván Sánchez Ortega
ad6a33aed2 Prevent infinite loop on failing errorTileUrls (fixes #5176) (#5177) 2016-12-14 09:37:57 +01:00
Iván Sánchez Ortega
19d2bd027e Be more picky about pointer events (blind attempt to fix #5180) (#5185) 2016-12-14 09:33:21 +01:00
Iván Sánchez Ortega
8c95bc4503 Fix typo in touch-action CSS rules (#5187) 2016-12-13 10:26:06 +01:00
Pablo Alonso
b1fd47a5a4 Fixed method docs (#5184) 2016-12-12 15:45:33 +01:00
jasonoverland
b1c2e99c1f docstrings: Correct polygon & polyline examples (#5161) 2016-12-07 09:35:20 +01:00
Brandon Kerr
240918d742 Remove incrementation of uninitialized typeListeners attribute 'count' (#5160) 2016-12-06 16:18:31 +01:00
Dave Leaver
107859379e Add missing method documentation for ImageOverlay (#5158) 2016-12-02 13:42:54 +01:00
Iván Sánchez Ortega
1f4c1b9c0f Docstrings: second parameter for map.fitBounds is optional 2016-12-01 13:40:00 +01:00
Zakaria Amine
d760505483 Plugins: Added gwty-leaflet project to Integrations section (#5143) 2016-12-01 13:38:44 +01:00
ghybs
a359ac72eb docstring: grid layer use bounds with noWrap (#5156)
Following #5154, added mention about using `bounds` on Grid Layer when `noWrap` is used (i.e. set to `true`), in order to prevent requesting tiles outside the main world (CRS limits).
Looks like behaviour changed compared to Leaflet 0.7, where the CRS limits were still effective.
In order to restore that behaviour, application developer must now specify `bounds`.
Especially visible with CartoDB tiles which do serve tiles outside the main world.
2016-12-01 13:37:20 +01:00
b_b
cf6fa4f468 Plugins: update shramov's description (#5155) 2016-12-01 12:58:18 +01:00
Ernie23
3f8b6b3b28 Vertical lines while moving over canvas elements (#5148)
* Vertical lines while moving over canvas elements

* Vertical lines while moving over canvas elements

* bounds.min._floor(); bounds.max._ceil(); instead

* Rounding bounds in _redraw function instead of _clear function
2016-12-01 10:48:28 +01:00
Gert Van Gool
9d6e6fcdf4 Fixes Layer.isPopupOpen when no popup is bound (#5106)
* Adds initial tests for L.Layer#popup

* Fixes Layer.isPopupOpen when no popup is bound

This fixes uncaught exception when checking whether a popup isOpen(),
when the layer has no popup bound to it.
2016-11-29 10:33:54 +01:00
Semen Levenson
188362098b Docs: peerDependencies in plugins guide (#5142)
If I some plugin include leaflet to dependencies and I have local version leaflet, then I have two version - leaflet from plugin and my.
2016-11-24 12:19:48 +01:00
Iván Sánchez Ortega
633182a836 Sanity check in LatLngBounds.contains (fixes #5132) (#5135) 2016-11-24 09:36:33 +01:00
geoloep
4f52a36dc1 docstrings: Update bounds property in Projection.leafdoc (#5139)
* Update Projection.leafdoc

To me it appears that the property bounds expects 'Bounds' and not 'LatLngBounds'. All the included projections pass 'Bounds'. Giving the area where the projection is valid in latlng's did not work for me.

* Update Projection.leafdoc
2016-11-23 16:29:06 +01:00
Per Liedman
2253672051 Only collapse layer control if collapsed: true (#5131)
Close #5126
2016-11-23 10:49:59 +01:00
Jack
e0f80e0e1a Plugins: Add routing.amap (#5133)
* This is a routing implementation from AMap(高德地图),you need set a location points and key,Leaflet.Routing.Amap will generates colorful route. Because of most china map use unique Projection , include AMap, this should be attention.so I import Project class for projection transform.

* English grammar for L.Routing.Amap
2016-11-23 10:15:50 +01:00
Yuzo Matsuzawa
308ba02d69 Update L.version to 1.0.2 (#5134) 2016-11-23 09:59:32 +01:00