Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1279 commits
Select commit Hold shift + click to select a range
07d5b64
Leaflet Coordinates Control pull request
Jun 27, 2014
656e5c3
Merge pull request #2761 from Zverik/gh-pages
mourner Jun 27, 2014
4a93896
Merge pull request #2763 from zimmicz/patch-1
mourner Jun 27, 2014
6859988
Added easyPrint plugin
rowanwins Jul 4, 2014
d1cf1b7
Added Route360° Library to routing section
Jul 8, 2014
b1ac31e
Merge pull request #2785 from gerbsen/patch-1
mourner Jul 8, 2014
5fffe15
Add Leaflet.GameController in the plugins list
fungiboletus Jul 10, 2014
3039f61
Merge pull request #2787 from SINTEF-9012/gh-pages
tmcw Jul 10, 2014
597c4b5
Update plugins.md
rowanwins Jul 10, 2014
c9118b1
Update plugins.md
rowanwins Jul 10, 2014
e017148
Merge pull request #2775 from rowanwins/gh-pages
tmcw Jul 11, 2014
390e925
add new plugin Leaflet Control Compass
stefanocudini Jul 13, 2014
f9d9489
Update plugins.md
henrythasler Jul 15, 2014
ba7dc5a
Leaflet.MeasureAreaControl plugin pull request
Jul 15, 2014
51ab14d
Merge pull request #2792 from zvaraondrej/gh-pages
mourner Jul 15, 2014
e5acd5e
Merge pull request #2791 from henrythasler/patch-1
tmcw Jul 16, 2014
173a37e
Implement #2702
Jul 18, 2014
07edd3a
Merge pull request #2799 from Starefossen/patch-5
mourner Jul 18, 2014
311e988
Add comment to removeEventListener doc noting that arguments to remov…
justinmanley Jul 23, 2014
daf83c2
Merge pull request #2810 from manleyjster/gh-pages
mourner Jul 23, 2014
dde5e26
Mention Leaflet.LineExtremities
leplatrem Jul 30, 2014
5e2567e
Merge pull request #2819 from leplatrem/patch-13
mourner Jul 30, 2014
9b8457b
Added Leaflet.twoFingerZoom plugin
aratcliffe Jul 31, 2014
95f8638
Merge pull request #2823 from aratcliffe/gh-pages
mourner Jul 31, 2014
cfc48ee
merge from leaflet
stefanocudini Jul 31, 2014
7ad72f0
Merge pull request #2790 from stefanocudini/gh-pages
mourner Jul 31, 2014
6403991
Suggestion to add Leaflet.Editable in plugins list
yohanboniface Aug 3, 2014
c3b0ab0
Merge pull request #2829 from yohanboniface/gh-pages
mourner Aug 4, 2014
b509124
Add Leaflet.AccuratePosition plugin
M165437 Aug 4, 2014
5a780a5
Merge pull request #2832 from M165437/patch-1
mourner Aug 4, 2014
62ca8a8
Add Leaflet.geojsonCSS plugin
albburtsev Aug 5, 2014
aa4c943
Merge pull request #2835 from albburtsev/plugin-geojsoncss
mourner Aug 5, 2014
d1f8aad
Fix map click event name
vassilevsky Aug 9, 2014
773317c
L.Class usage example Said L.Class where it should've said MyClass
oskosk Aug 13, 2014
101f3f0
Merge pull request #2853 from oskosk/patch-1
mourner Aug 13, 2014
b2825f5
Add leaflet.locationlist plugin
mithron Aug 22, 2014
45ec705
Merge pull request #2866 from mithron/gh-pages
mourner Aug 22, 2014
0c11098
Added L.FreeDraw
Wildhoney Aug 26, 2014
31ac409
add Leaflet.defaultextent
nguyenning Aug 26, 2014
daddb7b
Merge pull request #2874 from Wildhoney/gh-pages
mourner Aug 26, 2014
48effb1
update description of Leaflet.defaultextent
nguyenning Aug 26, 2014
2a5ed5d
update description. Third time is a charm.
nguyenning Aug 26, 2014
64c512a
Merge pull request #2875 from nguyenning/patch-1
mourner Aug 26, 2014
88b9d6e
Changed Leaflet.FreeDraw label
Wildhoney Aug 27, 2014
f924c3e
Merge pull request #2876 from Wildhoney/gh-pages
mourner Aug 27, 2014
972bc46
Update plugins.md
moklick Sep 2, 2014
d227797
Merge pull request #2884 from moklick/patch-2
mourner Sep 3, 2014
997d9ac
New plugin for SVG markers
hiasinho Sep 10, 2014
c64502c
Merge pull request #2895 from hiasinho/patch-1
mourner Sep 11, 2014
9fe5f41
plugins: Added sidebar-v2 project
Turbo87 Sep 11, 2014
4ab348a
Merge pull request #2898 from Turbo87/patch-2
mourner Sep 11, 2014
8fbcb7f
Change map
aaronlidman Sep 18, 2014
3e0694d
Merge pull request #2902 from aaronlidman/rotate
mourner Sep 18, 2014
be2babc
Update plugins.md
davicustodio Sep 23, 2014
f219b6e
Update plugins.md
davicustodio Sep 23, 2014
a70611e
Update plugins.md
davicustodio Sep 23, 2014
1d535e9
Merge pull request #2911 from davicustodio/gh-pages
mourner Sep 23, 2014
fa534c0
Update plugins.md
skeate Sep 24, 2014
d4fb3bf
Merge pull request #2912 from skeate/patch-1
perliedman Sep 25, 2014
19205bb
Add Leaflet.MovingMarker to Plugins
ewoken Sep 30, 2014
81025c3
Add Leaflet.MovingMarker to Plugins
ewoken Sep 30, 2014
71732ef
Fixed setPopupContent 2nd argument
brunolellis Oct 1, 2014
cdf0281
Update plugins.md
ablakey Oct 5, 2014
53e2e90
Merge pull request #2932 from ablakey/patch-1
perliedman Oct 5, 2014
64840a5
Add Leaflet Layer-Config plugin
robpvn Oct 7, 2014
3778aa4
Merge pull request #2935 from robpvn/patch-3
mourner Oct 12, 2014
2cfa905
Merge pull request #2929 from brunolellis/patch-1
mourner Oct 12, 2014
c9275a6
Merge pull request #2925 from ewoken/gh-pages
mourner Oct 12, 2014
d14f8a9
Add Leaflet.ZoomCSS Plugin to plugins.md
dagjomar Oct 12, 2014
03095a7
leaflet.wms plugin
sheppard Oct 14, 2014
4322141
rm extra spaces
sheppard Oct 14, 2014
d25edf6
Merge pull request #2948 from heigeo/gh-pages
mourner Oct 15, 2014
59f05a9
Merge pull request #2939 from dagjomar/patch-1
mourner Oct 15, 2014
973521f
added Leaflet.Bookmarks and Greiner-Hormann
w8r Oct 15, 2014
2a552dd
Merge pull request #2950 from w8r/gh-pages
mourner Oct 15, 2014
b1bb536
Add Leaflet Realtime plugin
perliedman Oct 18, 2014
9936653
Merge pull request #2956 from perliedman/leaflet-realtime-plugin
perliedman Oct 18, 2014
fb9d929
Move Leaflet Realtime to layers section
perliedman Oct 18, 2014
5bc0beb
Update reference.html
moklick Oct 20, 2014
7f119d8
Merge pull request #2958 from moklick/patch-3
mourner Oct 23, 2014
8dfba89
add popupAnchor option to DivIcon
snkashis Oct 31, 2014
1e42df6
Add a sentence clarifying that L.bind is not a polyfill for ES5 bind.
justinmanley Nov 3, 2014
f0b42b9
Merge pull request #2989 from manleyjster/clarify-leaflet-bind
mourner Nov 3, 2014
e063a96
Merge pull request #2847 from vassilevsky/fix-map-event
mourner Nov 4, 2014
eb46eb0
Leaflet.MapPaint added to plugins.md
fungiboletus Nov 5, 2014
97b130a
Merge pull request #2995 from SINTEF-9012/gh-pages
mourner Nov 5, 2014
65402d9
Update plugins.md - add Leaflet.ShowAll
florpor Sep 29, 2014
87ddb27
Merge pull request #2922 from florpor/patch-1
mourner Nov 9, 2014
114ca1e
update api reference with section on class constructors
Nov 12, 2014
b1f7bc8
update gemfile to reflect github pages production env
Nov 12, 2014
e1e456b
simplify initialize clarification
Nov 12, 2014
975b6be
Merge pull request #3017 from mnquintana/gh-pages
mourner Nov 12, 2014
eecbe1d
Change anchor hrefs from #map to #map-class
kdeloach Nov 21, 2014
89cbca2
Merge pull request #3051 from kdeloach/topic/fix-map-links
mourner Nov 21, 2014
ccc2826
Update plugins.md - Add Leaflet.timeline
skeate Dec 8, 2014
9d8ce0c
Merge pull request #3083 from skeate/patch-1
mourner Dec 8, 2014
cf94c20
minor typo fix
jseppi Dec 8, 2014
377f534
Merge pull request #3085 from jseppi/patch-1
mourner Dec 8, 2014
79962a7
adds Leaflet-IIIF plugin to plugin page
mejackreed Dec 8, 2014
224c967
Merge pull request #3086 from mejackreed/gh-pages
mourner Dec 9, 2014
8814783
Added Leaflet.D3SvgOverlay plugin to the list
xEviL Dec 19, 2014
d47400b
Merge pull request #3095 from xEviL/gh-pages
mourner Dec 19, 2014
c6c30e9
Added Leaflet.ZoomBox and Leaflet.Geonames
brendan-ward Dec 24, 2014
a75e4a2
Merge pull request #3104 from brendan-ward/add_zoombox_geonames
mourner Dec 25, 2014
7347390
added L.Control.LineStringSelect plugin
w8r Jan 5, 2015
03564ad
Merge pull request #3114 from w8r/gh-pages
mourner Jan 5, 2015
dacf32d
Added Leaflet.TransitionedIcon plugin to list.
brianreavis Jan 8, 2015
b77af2e
Merge pull request #3118 from naturalatlas/gh-pages
mourner Jan 8, 2015
7a3bf47
Add leaflet-layer-overpass to plugins
k-nut Jan 7, 2015
757c3a5
Merge pull request #3117 from k-nut/gh-pages
mourner Jan 9, 2015
6c5dd2a
Add Leaflet.TimeDimension plugin to list
bielfrontera Jan 14, 2015
e6ad9e3
Update mouseup event description
kyletolle Jan 14, 2015
450c100
Merge pull request #3137 from bielfrontera/patch-1
mourner Jan 14, 2015
728edbe
Merge pull request #3140 from kyletolle/patch-1
mourner Jan 14, 2015
153b114
Use appropriate loses instead of looses
kyletolle Jan 14, 2015
3c9700e
Merge pull request #3141 from kyletolle/patch-1
mourner Jan 14, 2015
c759481
Prevent race condition with marker position and zoom animation
perliedman Jan 18, 2015
61c39eb
+ missing lineCap and lineJoin options for Path.Canvas.
northerneyes Jan 20, 2015
5a95425
Merge pull request #3156 from northerneyes/stable
mourner Jan 22, 2015
69801c3
Merge pull request #3152 from perliedman/fix-marker-zoom-race
mourner Jan 22, 2015
5004da2
Remove insertAtTheBottom option from addLayer()
Starefossen Jan 24, 2015
8849980
switch to OSM on the debug page
mourner Jan 28, 2015
b9cf9c6
Merge pull request #3170 from Starefossen/patch-2
mourner Jan 28, 2015
a2d0dfc
Add Leaflet.Liveupdate and Leaflet.Messagebox to the plugins list
Jan 28, 2015
f46d164
Merge pull request #3179 from tinuzz/gh-pages
mourner Jan 29, 2015
adc5db9
Update plugins.md
w8r Jan 29, 2015
017e03e
Merge pull request #3180 from w8r/gh-pages
mourner Jan 29, 2015
111d9a1
Added Leaflet.pattern to plugins.md
teastman Feb 1, 2015
f94bd51
Merge pull request #3188 from teastman/gh-pages
mourner Feb 1, 2015
9092058
Added Leaflet.NACCoordinates to plugins.md
mahmoodvcs Feb 12, 2015
92382aa
Merge pull request #3228 from mahmoodvcs/gh-pages
mourner Feb 12, 2015
3665045
update the url of the leaflet-tilejson plugin
paulovieira Feb 16, 2015
2856de3
Merge pull request #3234 from paulovieira/gh-pages
mourner Feb 16, 2015
e39184b
add Maptiks to list of plugins
Feb 20, 2015
a8f8f28
Merge pull request #3241 from maxmalynowsky/patch-2
mourner Feb 21, 2015
9ca6788
Add Leaflet.SmoothMarkerBouncing plugin on the list of available Leaf…
hosuaby Feb 22, 2015
591de21
Merge pull request #3247 from hosuaby/gh-pages
mourner Feb 24, 2015
cc260e3
Add plugin Leaflet.TileLayer.PouchDBCached
IvanSanchez Feb 26, 2015
8c79df1
Merge pull request #3256 from MazeMap/gh-pages
mourner Feb 26, 2015
f1a14a5
Added Spectrum4Leaflet plugin
SVoyt Feb 26, 2015
b1202fc
Merge pull request #3259 from SVoyt/patch-2
mourner Feb 27, 2015
c901474
Add TileLayer.Gigapan
namrehs Mar 4, 2015
030495b
Changing PouchDBCached plugin description, because https://github.com…
IvanSanchez Mar 4, 2015
890c47d
Merge pull request #3276 from MazeMap/gh-pages
mourner Mar 4, 2015
6b565ae
Merge pull request #3274 from namrehs/patch-1
mourner Mar 4, 2015
c7f53a2
Added Leaflet.zoomhome to plugins.md.
torfsen Mar 5, 2015
b9f64a4
Merge pull request #3282 from torfuspolymorphus/gh-pages
mourner Mar 5, 2015
805ac6b
remove DomUtil.getViewportOffset
snkashis Jan 2, 2014
9a23bb6
Documentation for oldLatlng in marker move event. refs #2412
danzel Jan 28, 2014
02d3620
oldLatLng
danzel Jan 29, 2014
b0777d0
Update reference.html
Feb 5, 2014
fccc98e
Update reference related to touchZoom:center
mtmail Mar 8, 2014
443e232
Updated reference for crossOrigin option
bennlich Apr 23, 2014
83c815f
#2501, wheelDebounceTime option documented
Aug 5, 2014
0f98815
this commit fixes #2499 documentation
Aug 5, 2014
58ff298
Add documentation for WMS TileLayer uppercase option.
Aug 5, 2014
0bdd1d6
Removed documented url property of TileEvent
bennlich Sep 29, 2014
c7c33c1
add nav links and headers
patrickarlt Dec 21, 2014
64e967f
L.Evented docs
patrickarlt Dec 21, 2014
8ffb9ec
layer and evented docs
patrickarlt Dec 21, 2014
35adcdb
refactory into utilities and base classes
patrickarlt Dec 26, 2014
b1559f0
remove interface references
patrickarlt Dec 26, 2014
9d2b046
impliment -> implement typo fixes
mourner Mar 6, 2015
d9bf46a
remove multi shapes from ref, examples for polygon+polyline
patrickarlt Dec 22, 2014
2823162
update default path options
patrickarlt Dec 22, 2014
3c47983
getCenter() docs
patrickarlt Dec 22, 2014
f1bdb23
flip Circle/CircleMarker inheritance
patrickarlt Dec 22, 2014
0e65dfe
renderer docs and methods
patrickarlt Dec 22, 2014
c9877de
polygon/polyline docs fixes and cleanup
mourner Mar 6, 2015
4b7e669
more layer docs
patrickarlt Dec 29, 2014
6dde7d4
remove layout: nil in atom.xml
mourner Mar 6, 2015
86c80ad
clean up docs merges
mourner Mar 6, 2015
8548b4c
move all docs to docs subfolder
mourner Mar 6, 2015
ea504a0
merge master
mourner Mar 6, 2015
94b63b4
TileLayer - Use correct tileSize when checking tile bounds
jlaxson Apr 30, 2015
4bdd049
Merge pull request #3415 from jlaxson/tile-max-native-zoom-bounds
mourner Apr 30, 2015
7986d00
Backport #2726 to stable
IvanSanchez May 8, 2015
6b90011
Merge pull request #3448 from IvanSanchez/stable-bower
mourner May 8, 2015
ec0b5ee
Canvas path holes fillRule fix
w8r May 18, 2015
6feb4ab
Merge pull request #3477 from w8r/stable
IvanSanchez May 18, 2015
3cec7fc
Implement contextclick and dblclick for canvas paths, fixes #3481
IvanSanchez May 20, 2015
07aee81
Merge pull request #3482 from Leaflet/stable-canvas-contextmenu
mourner May 20, 2015
f3dca3b
Update outdated cloudmade tiles with OSM.
IvanSanchez May 20, 2015
981ee47
Backport master's L.Browser.touch, fixes #3466
IvanSanchez Jun 8, 2015
8f02433
Merge pull request #3520 from Leaflet/stable-emulated-touch
mourner Jun 8, 2015
8eb11d7
set Popup source to marker when bindPopup gets an instance of L.Popup
Jul 27, 2015
47cc2a5
Merge pull request #3675 from Intermaps/marker-popup-fix
mourner Jul 27, 2015
610993f
Backport L.Browser.mspointer detection from #3674
IvanSanchez Aug 4, 2015
4422602
Merge pull request #3710 from Leaflet/stable-mspointer
mourner Aug 5, 2015
55d3e7d
Clear tilelayer's BG buffer on zoomanim end if out of zoom limits
IvanSanchez Aug 26, 2015
622f0ea
Merge pull request #3778 from Leaflet/stable-tilezoomlimits
mourner Aug 26, 2015
10b1ff5
v0.7.4: changelog, version bump
IvanSanchez Aug 26, 2015
9147758
work around a transitionend Chrome bug, close #3689
mourner Aug 26, 2015
0d95c31
fix build
mourner Aug 28, 2015
a0e04da
Merge pull request #3779 from Leaflet/stable-0.7.4-changelog
mourner Aug 28, 2015
bb925b4
update changelog
mourner Aug 31, 2015
19c295e
revert c759481 (fixed elsewhere), close #3796
mourner Sep 2, 2015
4b289ab
Backport of pointer fixes in #3839
danzel Sep 14, 2015
a51c0c7
Issue #3829 - Removed Path with mouseout throws error
Sep 15, 2015
4a6675e
Merge pull request #3849 from sambernet/3829-avoid-mouseout-event-on-…
mourner Sep 17, 2015
b7241d7
Merge pull request #3842 from danzel/stable-3804
mourner Sep 17, 2015
5e3bab2
Fix touch drag in Edge browser
neorth Sep 18, 2015
3dd6ee7
Merge pull request #3853 from Neorth/patch-1
mourner Sep 18, 2015
d52707a
horrible hack that could fix a tile loading race condition in iOS
mourner Sep 24, 2015
0532055
Fixed FeatureGroup crash
Lambdac0re Sep 25, 2015
e0fce81
Merge pull request #3869 from Lambdac0re/patch-1
mourner Sep 25, 2015
3e200be
horrible hack that could fix a tile loading race condition in iOS
mourner Sep 24, 2015
787e600
bump version to v0.7.6
mourner Oct 26, 2015
727c4fb
update changelog for 0.7.6
mourner Oct 26, 2015
8032c24
port new release config from master
mourner Oct 26, 2015
c3ade05
fox publish script
mourner Oct 26, 2015
b7a77d1
update deps
mourner Oct 26, 2015
91d96d7
update karma code
mourner Oct 26, 2015
be67b48
bump to 0.7.7 :(
mourner Oct 26, 2015
197f9d4
v0.7.7
mourner Oct 26, 2015
234dd06
remove npm beta tag for stable versions
mourner Oct 26, 2015
bf8153d
bump year
mourner Oct 26, 2015
162190c
fixed check for maxZoom option to honor maxZoom 0
simsibimsiwimsi Nov 8, 2015
d9778d3
Merge pull request #3996 from simsibimsiwimsi/stable
IvanSanchez Nov 10, 2015
c185cb5
prevent all click events from being removed from map if path doesn't …
robertleeplummerjr Dec 28, 2015
f55bf72
move check so as not to create a function
robertleeplummerjr Dec 28, 2015
3543fc6
Merge pull request #4113 from robertleeplummerjr/stable
mourner Dec 31, 2015
21b1f9a
Run tests in SlimerJS also.
IvanSanchez Feb 5, 2016
e8e6dae
Do not kill SlimerJS when running unit tests on win32
IvanSanchez Feb 10, 2016
d8c51ad
Throw error on NaN circle radius, #4235
IvanSanchez Feb 15, 2016
21475cb
Merge pull request #4237 from Leaflet/stable-radius-nan
yohanboniface Feb 15, 2016
b1194a4
Possible change for #200 - Adding support for dashArray for line canv…
gommo Jan 25, 2016
3e3cc5b
Merge pull request #4173 from socialpinpoint/canvas-dash-array-support
mourner Feb 22, 2016
66f6843
Fix #4313 : correct simulated click handling in L.Path
elkami12 Mar 10, 2016
8cb20b0
Merge pull request #4314 from elkami12/stable
yohanboniface Mar 12, 2016
dcd7c63
Fix undefined map dragging bug on mobile
yangshun Apr 25, 2016
98bec86
npmpublish
Nov 14, 2019
fab3d8a
ResolveConfilct
Nov 27, 2019
d8f44d6
ResolveConfilctagain
Nov 27, 2019
e099b8f
Merge remote-tracking branch 'origin/0.7.8'
Nov 27, 2019
232c63b
Merge branch master into BranchMergeIntoNpm
Nov 28, 2019
cb2b88a
Merge branch origin/BranchMergeIntoNpm into master-origin
Nov 28, 2019
dad7bae
Merge branch 'master' into testleaflet
Nov 30, 2019
ed37691
Merge branch 'master' into testleaflet
Nov 30, 2019
7a483d0
MergerConfilct
Jan 25, 2020
87fdd39
Update Map.ZoomAnimation.js
Jan 25, 2020
46fe31e
mergerIntoBranchSlimerjs
Jan 25, 2020
1d7c0d6
Merge remote-tracking branch 'origin/fix-ios-tiles' into 0.7.8
Jan 25, 2020
396bbdc
Merge branch 'slimerjs' into 0.7.8
Jan 25, 2020
732a4d0
Merge branch 'stable'
Jan 25, 2020
bfe5ee7
mergerIntoBranchSlimerjs
Jan 25, 2020
0c7e70b
Merge branch 'master' into fix-ios-tiles
Jan 25, 2020
a15179d
Merge branch 'slimerjs'
Jan 25, 2020
4955583
Merge branch 'fix-ios-tiles'
Jan 25, 2020
4d555c9
Merge remote-tracking branch 'hm/0.7.8' into pr/5
Feb 9, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Node.js Package

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- run: npm test

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

publish-gpr:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
scope: '@your-github-username'
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
leafletjs.com
98 changes: 58 additions & 40 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,20 @@ Contributing to Leaflet
1. [Getting Involved](#getting-involved)
2. [Reporting Bugs](#reporting-bugs)
3. [Contributing Code](#contributing-code)
4. [Improving Documentation](#improving-documentation)
5. [Code of Conduct](#code-of-conduct)
4. [Running the Tests](#running-the-tests)
6. [Improving Documentation](#improving-documentation)
7. [Code of Conduct](#code-of-conduct)
8. [Thank You](#thank-you)

## Getting Involved

Third-party patches are absolutely essential on our quest to create the best mapping library that will ever exist.
Third-party patches are absolutely essential in our quest to create the best mapping library that will ever exist.
However, they're not the only way to get involved with Leaflet development.
You can help the project tremendously by discovering and [reporting bugs](#reporting-bugs);
[improving documentation](#improving-documentation);
helping others on [Stack Overflow](https://stackoverflow.com/questions/tagged/leaflet),
[GIS Stack Exchange](https://gis.stackexchange.com/questions/tagged/leaflet)
and [GitHub issues](https://github.com/Leaflet/Leaflet/issues);
showing your support for your favorite feature suggestions on [Leaflet UserVoice page](http://leaflet.uservoice.com);
tweeting to [@LeafletJS](http://twitter.com/LeafletJS);
and spreading the word about Leaflet among your colleagues and friends.

Expand All @@ -33,7 +34,7 @@ here are some tips for creating a helpful report that will make fixing it much e

* Write a **descriptive, specific title**. Bad: *Problem with polylines*. Good: *Doing X in IE9 causes Z*.
* Include **browser, OS and Leaflet version** info in the description.
* Create a **simple test case** that demonstrates the bug (e.g. using [Leaflet playground](http://playground-leaflet.rhcloud.com/)).
* Create a **simple test case** that demonstrates the bug (e.g. using [Leaflet plunker](http://leafletjs.com/edit.html)).
* Check whether the bug can be reproduced in **other browsers**.
* Check if the bug occurs in the stable version, master, or both.
* *Bonus tip:* if the bug only appears in the master version but the stable version is fine,
Expand All @@ -52,8 +53,7 @@ So bugfixes, performance optimizations and small improvements that don't add a l
are much more likely to get accepted quickly.

Before sending a pull request with a new feature, check if it's been discussed before already
(either on [GitHub issues](https://github.com/Leaflet/Leaflet/issues)
or [Leaflet UserVoice](http://leaflet.uservoice.com/)),
on [GitHub issues](https://github.com/Leaflet/Leaflet/issues)
and ask yourself two questions:

1. Are you sure that this new feature is important enough to justify its presence in the Leaflet core?
Expand All @@ -65,16 +65,17 @@ please consider submitting another pull request with the corresponding [document

### Setting up the Build System

The Leaflet build system uses [Node](http://nodejs.org/), and the [Jake](http://jakejs.com/) Javascript build tool.
To set up the Leaflet build system, install Node then run the following commands in the project root to install Jake:
The Leaflet build system uses [NodeJS](http://nodejs.org/).
To set up the Leaflet build system, install [NodeJS](https://nodejs.org/).
Then run the following commands in the project root to install dependencies:

```
npm install -g jake
npm install
```

You can build minified Leaflet by running `jake` (it will be built from source in the `dist` folder).
For a custom build with selected components, open `build/build.html` in the browser and follow the instructions from there.
or, if you prefer [`yarn`](https://yarnpkg.com/) over `npm`:
```
yarn install
```

### Making Changes to Leaflet Source

Expand All @@ -88,61 +89,78 @@ Please do not commit to the `master` branch, or your unrelated changes will go i
You should also follow the code style and whitespace conventions of the original codebase.
In particular, use tabs for indentation and spaces for alignment.

Before committing your changes, run `jake lint` to catch any JS errors in the code and fix them.
Before committing your changes, run `npm run lint` to catch any JS errors in the code and fix them.
If you add any new files to the Leaflet source, make sure to also add them to `build/deps.js`
so that the build system knows about them.

Also, please make sure that you have [line endings configured properly](https://help.github.com/articles/dealing-with-line-endings) in Git! Otherwise the diff will show that all lines of a file were changed even if you touched only one.

Happy coding!

## Running the Tests
### Using RollupJS

To run the tests from the command line,
install [PhantomJS](http://phantomjs.org/) (and make sure it's in your `PATH`),
then run:
The source JavaScript code for Leaflet is a few dozen files, in the `src/` directory.
But normally, Leaflet is loaded in a web browser as just one JavaScript file.

```
jake test
```
In order to create this file, run `npm run rollup` or `yarn run rollup`.

To run all the tests in actual browsers at the same time, you can do:
You'll find `dist/leaflet-src.js` and `dist/leaflet.js`. The difference is that
`dist/leaflet-src.js` has sourcemaps and it's not uglified, so it's better for
development. `dist/leaflet.js` is uglified and thus is smaller, so it's better
for deployment.

When developing (or bugfixing) core Leaflet functionalities, it's common to use
the webpages in the `debug/` directory, and run the unit tests (`spec/index.html`)
in a graphical browser. This requires regenerating the bundled files quickly.

In order to do so, run `npm run watch` or `yarn run watch`. This will keep
on rebuilding the bundles whenever any source file changes.

## Running the Tests

To run the tests from the command line, first make sure you have installed all
the build system requirements with `npm install`. Then, simply run:

```
jake test --ff --chrome --safari --ie
npm test
```

To run the tests in a browser manually, open `spec/index.html`.

## Code Coverage
By default, the tests will run in [PhantomJS](http://phantomjs.org/), and also
in [SlimerJS](https://slimerjs.org/) if possible. If `npm test` complains about
PhantomJS, install it manually and make sure it's in your `PATH`.

To generate a detailed report about test coverage (which helps tremendously when working on test improvements), run:
To run all the tests in actual browsers at the same time, you can do:

```
jake test --cov
npm test -- -- --browsers Firefox,Chrome,Safari,IE
```

After that, open `spec/coverage/<environment>/index.html` in a browser to see the report.
From there you can click through folders/files to get details on their individual coverage.
(Note: the doubling of "`--`" [special option](https://docs.npmjs.com/cli/run-script#description) is [important](https://github.com/Leaflet/Leaflet/pull/6166#issuecomment-390959903))

To run the tests in a browser manually, open `spec/index.html`.

## Improving Documentation

The code of the live Leaflet website that contains all documentation and examples is located in the `gh-pages` branch
The code of the live Leaflet website that contains all documentation and examples is located in the `docs/` directory of the `master` branch
and is automatically generated from a set of HTML and Markdown files by [Jekyll](http://jekyllrb.com/).

The easiest way to make little improvements such as fixing typos without even leaving the browser
is by editing one of the files with the online GitHub editor:
browse the [gh-pages branch](https://github.com/Leaflet/Leaflet/tree/gh-pages),
choose a certain file for editing (e.g. `plugins.html` for the list of Leaflet plugins),
browse the [`docs/ directory`](https://github.com/Leaflet/Leaflet/tree/master/docs),
choose a certain file for editing (e.g. `plugins.md` for the list of Leaflet plugins),
click the Edit button, make changes and follow instructions from there.
Once it gets merged, the changes will immediately appear on the website.

If you need to make edits in a local repository to see how it looks in the process, do the following:

1. [Install Ruby](http://www.ruby-lang.org/en/) if don't have it yet.
1. [Install Ruby](http://www.ruby-lang.org/en/) if you don't have it yet.
2. Run `gem install jekyll`.
3. Run `jekyll serve --watch` in the root `Leaflet` folder.
4. Open `localhost:4000` in your browser.
3. Enter the directory where you cloned the Leaflet repository
4. Run `bundle install`
5. Make sure you are in the `master` branch by running `git checkout master`
6. Enter the documentation subdirectory by running `cd docs`
7. Run `jekyll serve --watch`.
8. Open `localhost:4000` in your web browser.

Now any file changes will be updated when you reload pages automatically.
After committing the changes, just send a pull request.
Expand All @@ -155,17 +173,17 @@ code for every method, option or property there is a special code comment docume
that feature. In order to edit the API documentation, just edit these comments in the
source code.

In order to generate the documentation, just run
In order to generate the documentation, make sure that the development dependencies
are installed (run either `npm install` or `yarn install`), then just run

```
jake docs
npm run docs
```

and you'll find a `.html` file in the `dist/` directory.

On every release of a new Leaflet version, this file will be generated and copied
over to the `gh-pages` branch - there is no need to send pull requests to this
branch anymore to update the API documentation.
over to `docs/reference.html` - there is no need to send pull requests with changes to this file to update the API documentation.

## Code of Conduct

Expand Down
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source 'https://rubygems.org'

gem 'github-pages'
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2010-2016, Vladimir Agafonkin
Copyright (c) 2010-2015, Vladimir Agafonkin
Copyright (c) 2010-2011, CloudMade
All rights reserved.

Expand Down
6 changes: 6 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
source: docs

markdown: kramdown

kramdown:
entity_output: as_input
10 changes: 8 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
{
"name": "leaflet",
"version": "0.7.8",
"description": "JavaScript library for mobile-friendly interactive maps",
"main": [
"dist/leaflet.css",
"dist/leaflet-src.js"
"dist/leaflet-src.js",
"dist/images/layers-2x.png",
"dist/images/layers.png",
"dist/images/marker-icon-2x.png",
"dist/images/marker-icon.png",
"dist/images/marker-shadow.png"
],
"ignore": [
"ignore": [
".*",
"CHANGELOG.json",
"FAQ.md",
Expand Down
22 changes: 22 additions & 0 deletions build/bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "leaflet",
"description": "JavaScript library for mobile-friendly interactive maps",
"main": [
"dist/leaflet.css",
"dist/leaflet-src.js",
"dist/images/layers-2x.png",
"dist/images/layers.png",
"dist/images/marker-icon-2x.png",
"dist/images/marker-icon.png",
"dist/images/marker-shadow.png"
],
"ignore": [
".*",
"CHANGELOG.json",
"FAQ.md",
"debug",
"spec",
"src",
"build"
]
}
Loading