Commit Graph

6532 Commits

Author SHA1 Message Date
ghybs
fa374e67a2 Fix(TileLayer.WMS & Canvas): get rid of calls to global L (#6048)
* Fix(TileLayerWMS): get rid of L.TileLayer global call

and rely on imported TileLayer instead.

* Fix(Canvas): get rid of L.stamp global call

and rely on imported Util.stamp instead.
2018-02-12 13:52:10 +01:00
ghybs
870365de4c Fix(MarkerDrag): get rid of L.DomUtil calls (#6047)
* Style(MarkerDrag): fix smart tab indentation

* Fix(MarkerDrag): get rid of L.DomUtil global call

and rely on imported DomUtil instead.
2018-02-12 13:51:37 +01:00
ghybs
224bb9372b
Test(MarkerDragSpec): remove commented code (#6049) 2018-02-12 16:39:15 +04:00
Andrew
e3b049cefd Chore(scripts): Remove jake dependency and use NPM scripts instead (#5828)
* run `docs` via npm

* add shebang line to integrity.js, so npm will resolve node binary automatically

* remove unnecessary build-jake npm script

* add test.js script as replacement of Jakefile.js

* remove Jakefile, remove jake from devDependencies

* update docs

* move scripts to separate directory

* change shebang line from nodejs to js

* change shebang line from js to node

* update docs

* use Karma cli instead of custom test script

* add pretest and test-nolint scripts, remove lint scripts from travis.ci

Run linting scripts in pretest script, this way test script will automatically trigger code linting.

Add test-nolint script to have possibility to run tests without triggering pretest script with linting. This is useful when running tests in different browsers and tere's no sense to lint code more than one time

* replace shebang lines with node executable in npm scripts

* remove note about nodejs symlink in CONTRIBUTING.md
2018-02-05 11:15:32 +04:00
Moritz
be8899c0e4 plugins: add Leaflet Truesize (#6039) 2018-02-02 14:03:28 +01:00
Rich Harris
d188cc5ede add pkg.module (#6021)
* add pkg.module version

* get tests to pass

* export noConflict
2018-02-01 10:42:54 -05:00
Dražen Tutić
d3175e807f Plugins: add EdgeScaleBar (#6036)
Add plugin EdgeScaleBar that draw scale bars along map edges in Web Mercator projection.
2018-01-31 16:32:03 +01:00
louMoxy
3e8e76c790 Fix race condition when removing canvas before it has rendered (#6033)
Fixes #6030: Cancel animation frame request before removing the map.
This fixes the bug where the the delayed call to _redraw is trying to get the drawing context which has already been destroyed.
2018-01-29 15:36:50 +01:00
Andrew
c3a6a5b60a Move external dependencies to node_modules (#6028)
* remove sinon from repo and add sinon and karma-sinon devDeps

* remove expect from repo and add karma-expect to devDeps instead

* fix path to sinon and expect in html file for browser testing

* include leaflet-src directly from dist instead of symlink pointing to it
2018-01-29 09:38:05 +04:00
ghybs
510c3e7ba7 Test(ImageOverlay+TileLayer): crossOrigin option add 5th test case (#6027)
when passing `crossOrigin: ''` (empty string) option, the `crossorigin` attribute should also be set an empty string value (valid keyword, with same effect as `"anonymous"` value). Need to add this test, because in JavaScript the empty string is a falsy value that could have been caught as `false` and led to no `crossorigin` attribute set.
2018-01-25 13:46:34 +01:00
Andrew
ad8fc9c36b Fix(GridLayer): Do not fire 'tileload' event if tile src is empty image (#6025)
* do not fire 'load' event if tile src is the empty image (i.e. L.Util.emptyImageUrl)

* add TileLayer setUrl test
2018-01-25 11:08:05 +04:00
ghybs
2dc70945f8 Test(ImageOverlay+TileLayer): crossOrigin option to IMG crossorigin attribute (#6022)
* Test(ImageOverlay): crossOrigin option to IMG crossorigin attribute

typical values: false (default), true => '', <string> => <string>
now that a string value can be passed to this option.

* Test(TileLayer): crossOrigin option to IMG crossorigin attribute

typical values: false (default), true => '', <string> => <string>
now that a string value can be passed to this option.

* Style(TileLayerSpec): remove commented code

* Style(TileLayerSpec): remove more commented code
2018-01-24 15:24:02 +01:00
Mjumbe Poe
34251900ae Respect the preferCanvas option in all panes (#6019)
When creating a renderer for a pane other than overlayPane, use the same logic as default to determine whether to create a canvas or svg renderer.
2018-01-23 19:52:10 +01:00
caleb logan
b2cb8f79e8 Feat(TileLayer+ImageOverlay): add 'use-credentials' CORS Option (#6016)
* Added support for crossorigin using a String besides a Boolean (typically set `crossOrigin: 'use-credentials' / 'anonymous' / '' / true / false (default))

* Changed boolean to result in empty string and updated docs
2018-01-23 16:50:08 +04:00
ghybs
80ee940e14 Docs(tutorials): map panes use more explicit tiles (#6018)
so that it is more obvious what the difference is between the base map, the labels, and when both are stacked.
The chosen tile is similar to the initial view of the result example below (example.html), and contains many labels.
2018-01-19 10:40:45 +01:00
Andrew
bb08848734
Merge pull request #6017 from Leaflet/pluginRotatedMarker
Docs(plugins): add Rotated Marker plugin
2018-01-19 09:05:59 +01:00
Jeffrey Warren
fb7af21d55 Docs(plugins): add leaflet-blurred-location plugin (#6015)
to "Map interaction > User interface" section.
2018-01-19 09:01:20 +04:00
ghybs
d74e3340a1
Docs(plugins): add Rotated Marker plugin
by Benjamin Becquet, who already submitted a few plugins on this list and mentioned this one in https://github.com/Leaflet/Leaflet/issues/143
Added into "Overlay Display > Markers & renderers" section.
2018-01-19 08:43:31 +04:00
ghybs
86099a8502
Test(TileLayer): check zoomOffset option is used (#6011)
following issue #6004 (fixed by PR #6006).
Added 2 dedicated tests.
Unfortunately I could not add a test for detectRetina option that easily, because since the move to Rollup, Browser values became internal variables, and overriding them later on does not have any effect on Leaflet internal references… Not sure how to workaround this for the sake of testing.
2018-01-19 06:12:11 +04:00
Andrew
ae8a1a645a
Release 1.3.1 (#6010)
* update changelog

* add blog post

* update reference

* update download page

* update version in config.yml

* update announcement

* point reference.html to 1.3.1 docs

Also add reference-1.3.1.html, which redirects to 1.3.0 docs

* update integrity hashes

* redirect reference.html directly to 1.3.0 to avoid double redirect
2018-01-18 13:56:04 +01:00
Thomas
756dd14d3b Docs(plugins): add a plugin that displays path and direction of marker (#6008)
* add a plugin

* Correct the demo address of the plugin

* Correct the demo address of the plugin

(The link does not work (404 error). Most probably the trailing slash (/) should be removed.)

* Update plugins.md

remove the mistake (<te) at line 1045

* correct plugin name

change marker-drection to marker-direction( miss i in word 'drection')

* Update plugins.md
2018-01-18 16:37:49 +04:00
Andrew
bafaa8a436 bump version to 1.3.1 2018-01-18 13:14:19 +01:00
Andrew
bfbaf6522e Revert "use zoom parameter if passed" (#6006) 2018-01-16 22:10:05 +04:00
Andrew
4704037365
Merge pull request #5988 from Leaflet/release-v1.3.0
Let's ship v1.3.0 release!
2018-01-15 08:45:03 +01:00
Andrew
1574cafdf4 blog post formatting 2018-01-15 08:42:40 +01:00
Andrew
58ade1625e integrity 2018-01-15 08:36:44 +01:00
Andrew
0c25ba8706 update release date 2018-01-15 08:28:45 +01:00
Andrew
9f19e723da bump version to 1.3.0 (#6003) 2018-01-15 08:26:21 +01:00
Andrew
4271237e3f
Merge pull request #5998 from dj0001/master
add Leaflet.mytrack
2018-01-13 18:53:49 +01:00
dj
4a7fadb876
add Leaflet.mytrack 2018-01-13 17:36:10 +01:00
Andrew
3d4f691331
Merge pull request #5981 from rbrtmrtn/patch-2
Update CONTRIBUTING.md
2018-01-10 18:27:33 +01:00
Andrew
2a4c4c9755
Merge pull request #5991 from dj0001/master
Leaflet.timezones
2018-01-10 17:40:45 +01:00
dj
b9f35b813d
Leaflet.timezones
Overlay timezones on a Leaflet Earth map
2018-01-10 17:10:54 +01:00
Andrew
cf00e0d493 update changelog and reference 2018-01-10 16:42:07 +01:00
Andrew
7686816a95 Merge branch 'master' into release-v1.3.0 2018-01-10 15:47:53 +01:00
Andrew
9796e1183e update docs 2018-01-10 16:33:05 +02:00
Andrew
5c2d3d8ebc move tooltipAnchor and popupAnchor defaults from Marker to Icon 2018-01-10 16:33:05 +02:00
Andrew
031ff12873 document tooltipAnchor option 2018-01-10 16:33:05 +02:00
Andrew
16f1c48420 update changelog and reference 2018-01-09 19:08:02 +01:00
Andrew
ffb432cafe Merge remote-tracking branch 'Leaflet/master' into release-v1.3.0 2018-01-09 18:59:39 +01:00
Andrew
f44ec8f889
Merge pull request #5976 from kring/patch-1
Fix incorrect documentation of off function
2018-01-09 18:58:39 +01:00
Andrew
89ba393b31 add new blog post 2018-01-09 17:56:02 +01:00
Andrew
ae9eaa2b34 update date in changelog 2018-01-09 17:55:01 +01:00
Andrew
a22ca2f6f6 update reference-versions 2018-01-09 17:53:42 +01:00
Andrew
3e32b74dbe update RELEASE.md 2018-01-09 17:52:26 +01:00
Andrew
b301e9acfb update announcement 2018-01-09 17:48:27 +01:00
Andrew
deb95c8dac update config.yml 2018-01-09 17:47:37 +01:00
Andrew
d7d8bc0782 update download page 2018-01-09 17:47:00 +01:00
Andrew
9d5ae57bcb update reference.html 2018-01-09 17:45:45 +01:00
Andrew
17ddd9d15f add reference-1.3.0 2018-01-09 17:44:37 +01:00