Commit Graph

204 Commits

Author SHA1 Message Date
e7129b44c0 Fix insecure content error in documentation
docs.js was prevented from loading due to it.
2018-12-22 16:54:54 +02:00
c189189b9d [hotfix] remove pkg.module (#6239)
remove pkg.module
2018-07-18 11:22:42 +02:00
00c1a8c969 extend publish.sh to commit dist/leaflet-src.esm.js too 2018-07-17 13:47:14 +02:00
5ffe207921 Use https everywhere for OSM links (#6082)
* Use https everywhere for OSM tile URLs

Use
https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png

instead of
http://{s}.tile.osm.org/{z}/{x}/{y}.png
http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png

* Use https everywhere for OSM attribution link

Use
https://www.openstreetmap.org/copyright

instead of
http://www.openstreetmap.org/copyright
http://osm.org/copyright
2018-03-12 08:46:20 +01:00
31575e8e7a 2018 (#6076)
* 2018

* 2018

* 2018
2018-03-05 22:46:47 +02:00
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
d188cc5ede add pkg.module (#6021)
* add pkg.module version

* get tests to pass

* export noConflict
2018-02-01 10:42:54 -05:00
67ab617f82 Tweak 'legacy' option in rollup config (#5929) 2017-11-20 10:34:18 +01:00
iH8
33415fcbab New rollup config signature (#5812)
Adapted rollup configurations to new signature., ironed out some minor
inconsistencies between configurations and some syntax cleanup. Fixes
following warnings when running rollup:

(!) Some options have been renamed
https://gist.github.com/Rich-Harris/d472c50732dab03efeb37472b08a3f32
options.entry is now options.input
options.sourceMap is now options.sourcemap
options.dest is now options.output.file
options.format is now options.output.format
2017-09-29 17:01:24 +03:00
88dd22cfe8 upgrade deps, fix indenting (#5743) 2017-08-31 08:58:42 +02:00
fe3a340f1c Remove warning alert in watch bundle (#5714) 2017-08-15 11:39:53 +02:00
567f13a1a8 ensure copyright banner survives minification (#5682) 2017-08-06 10:47:25 +02:00
276d6df153 Update copyright banner to the fact that it's in fact 2017 now (#5503) 2017-05-10 10:04:18 +02:00
561b7f737b Add subresource integrity information & scripts (#5468)
* Add subresource integrity information & scripts

* Include the integrity hashes in all tutorials also

* Change wording of one of the build scripts
2017-04-19 14:56:14 +02:00
013198c9e2 Change copyright year from 2015 to 2017 (#5433) 2017-04-07 13:34:14 +03:00
61ff641951 Add new class L.VideoOverlay (#4988)
* Add VideoOverlay class based on ImageOverlay

* Make linter happy

* Move VideoOverlay include to layer/index

* Fix mapbox tokens
2017-04-04 22:45:09 +02:00
0d1eae32be Fix debug examples after rollup (#5417)
Fix #5373.

- Remove references to removed file "../../build/deps.js"
- Update leaflet-include.js to point to "../dist/leaflet-src.js"
- Update watch to use the same destination file as rollup (dist/leaflet-src.js)
- Define getRandomLatLng where used
2017-03-28 08:40:48 +02:00
bd957ad32f Have uglifyjs spit out a sourcemap for leaflet.js too. (#5351)
* Have uglifyjs spit out a sourcemap for leaflet.js too.

Fixes #5341

* Fix incorrect source map file when publishing a release and add the new one too.
2017-02-21 13:53:07 +01:00
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
863cf74461 move zoom animation code into Map.js 2016-09-30 19:51:01 +03:00
ff73971294 move pan animation code into Map.js 2016-09-30 19:51:01 +03:00
5110298c45 get rid of separate Layer.Popup.js and Layer.Tooltip.js 2016-09-30 19:51:01 +03:00
88b593b7ab move flyTo to Map.js 2016-09-30 19:51:01 +03:00
d0879e14af move geolocation methods to Map.js 2016-09-30 19:51:01 +03:00
e3545bc9b9 move marker extensions to Marker.js 2016-09-30 19:51:01 +03:00
44176d9cea remove rc tag from the build script 2016-09-27 16:22:54 +03:00
6e08ae427d Improve docs for keypress events, local refs from leafdoc templates (#4907) 2016-09-21 17:38:23 +03:00
5dda4f4e0e Docstrings: clarifications about noWrap and wrapLng 2016-08-04 16:27:10 +02:00
64ba1f7f95 Rename Label in Tooltip, PopupBase in DivOverlay 2016-07-08 13:51:18 +02:00
0dd58bd01f Merge branch 'master' into label 2016-07-08 11:07:22 +02:00
5dfc3364d1 Allow to make screenshots in Phantomjs (#4705)
* Load CSS in PhantomJS

* Allow to take screenshot in PhantomJS while running tests

For that, one need to run this call:

    window.top.callPhantom({'render': 'screenshot.png'});

* Make PhantomJS serve images

* Bonus: those tests now passe in Phantom too

* Add helper to make screenshot in tests

	takeScreenshot();

or

	takeScreenshot('path/to/screenshot.png');
2016-07-08 11:05:12 +02:00
14bfedf7ff Merge branch 'master' into label 2016-07-02 10:36:42 +02:00
5cc9b79c97 docstrings: Refactor interactive layers, implements #4583 (#4585) 2016-05-25 10:57:18 +02:00
d4ea41214d docstrings: minor links around. 2016-05-20 13:45:12 +02:00
5aca1896b4 Add missing Leafdoc template files (#4558) 2016-05-11 14:19:53 +02:00
4a9140e6b1 Add L.Label related documentation 2016-05-06 15:00:01 +02:00
8a2255afc3 Merge branch 'master' into label 2016-04-30 14:36:48 +02:00
ca01120227 Use git rev as semver metadata 2016-04-19 12:32:08 +02:00
acbc6d23a9 Sourcemaps: replace magic-string with source-map.SourceNode 2016-04-19 10:22:52 +02:00
a626826974 update deps and bump travis node version 2016-04-18 11:15:46 +03:00
a4a72ccb17 Finish @yohanboniface's job by replacing more 🍂s with @s 2016-04-02 20:50:27 +02:00
1b1d21b1bf Let's say I'm @IvanSanchez for once 2016-04-02 15:59:54 +02:00
560e73bac5 Trying out Leafdoc comments in L.Marker
Added Leafdoc comments to Layer.js

Leafdoc comments for Popup, Layer

Leafdoc comments: L.Evented, inheritances, minor tilelayer

Leafdoc comments: gridlayer & tilelayer options

Leafdoc comments: tilelayer, marker drag

Typos

Leafdoc: switch to shorthand method params

Leafdoc: Switch to shorthands in marker drag, WMS.

Leafdoc: Vector layers

Leafdoc: Layer group, feature group, geojson

Leafdoc: LatLng, Point, Bounds, Icons.

Leafdoc: Controls.

Leafdoc: DOM & utils.

Leafdoc: "jake docs" now builds the documentation

Leafdoc: Commit actual templates instead of symlinks

Leafdoc: Fix broken build, have jake print out uglifyjs errors

Leafdoc: Several L.Map bits.

Leafdoc: Map handlers

Leafdoc: Map events, L.CRS, misc. fixes

Leafdoc: Fixed ordering of classes by using new leafdoc features

Leafdoc: Misc bits at the bottom of the docs

🍂doc: Map panes

🍂doc: CRSs, projections and their templates

🍂doc: miniclasses for map methods' options

Leafdoc: Cleanup L.Class, mark uninheritable sections, use Leafdoc 0.3.0

🍂doc: miniclasses for event types, bump to Leafdoc 1.0.0

🍂doc: Make linter happy after branch rebase

🍂doc: Tweaked headers for inherited stuff.

🍂doc: Tweaking section headers (white, padding, triangles)

Leafdoc: upgrade to 1.2, document SVG&Canvas, and misc bits

🍂doc: minor CSS tweaks, version in filename, typo.

Add missing bits - supersedes #4105, #4065, #4031

🍂doc: moved sections around, minor typos & fixes

Typo about LocationEvent
2016-04-02 15:59:39 +02:00
5fce8dda51 Fix bad Label description in deps.js 2015-11-15 19:22:57 +01:00
ca43794128 simplify bower setup, remove component
Component is not an active project anymore, and bower no longer
requires a version field in the config.
2015-10-26 19:25:39 +02:00
d7b721877c First naive L.Label version 2015-10-17 22:42:17 +02:00
857848fbee come back to the old publishing approach with improvements 2015-10-14 19:16:05 +03:00
213c602f4e new Travis configuration with automatic releases 2015-10-14 18:09:47 +03:00
08d655fe66 upgrade deps and stricter eslint 2015-09-04 17:46:55 +02:00
62f1cd2f58 Build sourcemaps via magic-string 2015-08-10 15:29:00 +02:00