Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.7.8 #4

Open
wants to merge 3,157 commits into
base: 0.7.8
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
3157 commits
Select commit Hold shift + click to select a range
d891310
check _map in _pruneTiles
hyperknot Feb 15, 2016
54f0f73
Merge pull request #4206 from hyperknot/tile-debug
IvanSanchez Feb 15, 2016
ccd95e3
L.Class.include & mergeOptions now return 'this'
IvanSanchez Feb 15, 2016
c967ed3
CRS.Simple tutorial
IvanSanchez Feb 15, 2016
e6771f3
Merge pull request #4248 from Leaflet/gh-pages-crs-simple
yohanboniface Feb 16, 2016
d75020b
Minor fixes to CRS.Simple example
IvanSanchez Feb 16, 2016
3e898e8
no EU in space
hyperknot Feb 16, 2016
4b08f72
Indian Ocean title case
hyperknot Feb 16, 2016
122317e
Merge pull request #4251 from hyperknot/fix-crs-tutorial
IvanSanchez Feb 16, 2016
c83e8eb
Merge pull request #4246 from Leaflet/class-returns
mourner Feb 16, 2016
2dd8b8a
Merge pull request #4244 from hyperknot/fix-tileprune-map-bug
mourner Feb 16, 2016
059a7cd
WIP: example for custom CRSs
IvanSanchez Feb 16, 2016
8290a41
Check for e.originalEvent in DomUtil._filterclick, should fix #3724
IvanSanchez Feb 17, 2016
093d772
Merge pull request #4256 from Leaflet/filterclick-originalevent
mourner Feb 17, 2016
fb79bbf
centralize setting of attributionControl on map from onAdd
snkashis Feb 18, 2016
e0c17bf
Merge pull request #4263 from snkashis/layer_attr_fix
IvanSanchez Feb 18, 2016
6639782
Unit tests for #4257, attributionControl layeradd/layerremove
IvanSanchez Feb 18, 2016
933dae3
adding Leaflet.Dialog to plugins list
NathanMarq Feb 19, 2016
964d2d5
Merge pull request #4265 from NathanMarq/gh-pages
mourner Feb 20, 2016
fdea7b3
Added Leaflet.PM
codeofsumit Feb 21, 2016
66560f2
Merge pull request #1 from codeofsumit/add-leaflet.pm-plugin
codeofsumit Feb 21, 2016
11f852d
Merge pull request #4267 from codeofsumit/gh-pages
mourner Feb 21, 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
dda1759
Adding Leaflet for Drupal to 3rd party integration list
pvhee Feb 22, 2016
2bc8a8b
Merge pull request #4268 from pvhee/gh-pages
IvanSanchez Feb 22, 2016
0c99f08
Update clipsegment documentation
pwilczynski Feb 24, 2016
fa6a927
Added Leaflet.CountrySelect plugin
Feb 25, 2016
11e289b
Skip call to this._update() if this._map is null
errebenito Feb 26, 2016
a137150
Clean up navigator.pointerEnabled
IvanSanchez Feb 29, 2016
3c38ae3
Update phantomjs dependency version
IvanSanchez Feb 29, 2016
97921d6
Increase depth of legacy support
JrFolk Feb 29, 2016
a959d70
DOCS Stable added `tileerror` event
ghybs Mar 1, 2016
9442f9a
Merge pull request #4275 from ahalota/patch-1
IvanSanchez Mar 1, 2016
2b970bf
Merge pull request #4287 from Leaflet/pointer-enabled
mourner Mar 1, 2016
33da55d
Merge pull request #4289 from Leaflet/phantomjs2
mourner Mar 1, 2016
ac6b18d
Merge pull request #4290 from JrFolk/0.7-legacy-support
mourner Mar 1, 2016
f7d7ad2
Merge pull request #4280 from errebenito/master
mourner Mar 1, 2016
0af11b0
Fix attribution text not removed when Layer is removed from map
dr-itz Mar 1, 2016
7ebbd19
Merge pull request #4293 from dr-itz/4285-attribution-text
mourner Mar 2, 2016
e1e223e
Added tagFilterButton to plugin list
Mar 3, 2016
19b46f4
Merge pull request #4297 from maydemirx/gh-pages
IvanSanchez Mar 3, 2016
9fb902e
Add plugin Leaflet Underneath
Mar 4, 2016
2b622c9
Merge pull request #4300 from Leaflet/add-leaflet-underneath
IvanSanchez Mar 4, 2016
797ef73
Added plugin leaflet.marker.pin
Mar 5, 2016
f5d0830
give distinct names for map object, map class, and map id
skorasaurus Mar 5, 2016
6c7faa8
Merge pull request #4304 from skorasaurus/gh-pages
IvanSanchez Mar 6, 2016
a32017f
Stop drag propagation, fixes #4249
turban Mar 7, 2016
4333f88
Merge pull request #4306 from MasterMaps/stop-drag-propagation
mourner Mar 7, 2016
98e87d3
Revert "Stop drag propagation, fixes #4249"
mourner Mar 7, 2016
8aa3248
Port #4173 to master
IvanSanchez Mar 8, 2016
2147c4c
Add demo link for leaflet-globe-minimap plugin
Mar 8, 2016
363e1e9
Merge pull request #4309 from chriswhong/gh-pages
IvanSanchez Mar 9, 2016
66f6843
Fix #4313 : correct simulated click handling in L.Path
elkami12 Mar 10, 2016
1fc7d37
Update quick-start.md (small correction)
Mar 11, 2016
7ca5347
Merge pull request #4317 from Kayoku/gh-pages
mourner Mar 11, 2016
8cb20b0
Merge pull request #4314 from elkami12/stable
yohanboniface Mar 12, 2016
58c44fe
Merge pull request #4303 from wwwouaiebe/gh-pages
yohanboniface Mar 12, 2016
d773d6a
Merge pull request #4308 from Leaflet/canvas-dasharray
mourner Mar 14, 2016
5f7c2e0
fixing this._times.length undefined in Map.Drag.js
LucasMouraDeOliveira Mar 15, 2016
0ea9832
Merge pull request #4324 from OpenDevTeam3/drag-undefineds
IvanSanchez Mar 15, 2016
8da6199
Added four prosthetic-hand tests, checking mouse&touch drag events an…
IvanSanchez Mar 17, 2016
bb2bcd6
Fixing a typo
LucasMouraDeOliveira Mar 18, 2016
b534440
Merge pull request #4329 from LucasMouraDeOliveira/patch-1
IvanSanchez Mar 18, 2016
8e2e790
Merge pull request #4327 from Leaflet/prosthetic-hand-tests
mourner Mar 18, 2016
3814292
Fixing some syntaxes erros
MaximeOpsommer Mar 18, 2016
98fb253
Merge pull request #4330 from MaximeOpsommer/patch-1
IvanSanchez Mar 18, 2016
d5e78e2
Support {-y} in tile layer urls (Fixes #4284)
jieter Mar 21, 2016
b60e18d
Merge pull request #4337 from jieter/tilelayer-y
IvanSanchez Mar 21, 2016
d420e5e
prosthetic-hand blog post
IvanSanchez Mar 20, 2016
740624a
Merge pull request #4336 from Leaflet/gh-pages-prosthetic-hand
hyperknot Mar 21, 2016
3725458
Allow dashes in template placeholders + tests
jieter Mar 21, 2016
34075a8
Unit tests for TileLayer getTileUrl replacements
jieter Mar 21, 2016
6262d64
Merge pull request #4339 from jieter/tilelayer-y-unittest
IvanSanchez Mar 21, 2016
6829134
Possible fix for #3530, also should fix some shaking on pinch-zooming.
IvanSanchez Mar 18, 2016
f58c69d
Fix 404 for Leaflet.BoatMarker demo
snkashis Mar 21, 2016
02d90e4
Update leaflet.mouseCoordinate plugins details
snkashis Mar 21, 2016
73c8242
Merge pull request #4340 from Leaflet/bounce-touch
mourner Mar 22, 2016
ccaf632
Do not calculate inverted y coords for CRSes with infinite: true
jieter Mar 22, 2016
d9349a0
Adding a new plugin Leaflet uGeoJSON
BenjaminVadant Mar 23, 2016
1b789ea
Merge pull request #4348 from BenjaminVadant/patch-1
IvanSanchez Mar 23, 2016
6ffbcdc
add Leaflet.BootstrapZoom
mad-gooze Mar 23, 2016
b6e7cd3
Merge pull request #4350 from MAD-GooZe/gh-pages
perliedman Mar 23, 2016
24a2a11
Merge pull request #4344 from jieter/infinite-crs-gettileurl
IvanSanchez Mar 23, 2016
19d91d5
feat: added better error for fitBounds
theotow Mar 28, 2016
61da775
Replace happen.drag by prosthetic-hand in specs
yohanboniface Mar 28, 2016
d75b890
Merge pull request #4354 from Leaflet/drag-to-prosthetic
IvanSanchez Mar 29, 2016
37f98cb
Merge pull request #4353 from theotow/feature/better-error-fitBounds
IvanSanchez Mar 29, 2016
6bc6e59
Increase timeout for "should not be closen when dragging map" test
yohanboniface Mar 29, 2016
5795f37
Make sure a failing test will not leave the node in place
yohanboniface Mar 29, 2016
4267291
Initialize canvas dash on init. Check that canvas supports setLineDash.
Apr 1, 2016
4a00996
Just keep _moveEnd inside requestAnimFrame. Close #4023.
Apr 2, 2016
446c02f
Make latLngBounds factory return an empty bounds with not argument
yohanboniface Apr 2, 2016
9cfeab6
Merge pull request #4368 from Leaflet/empty-latlngbounds
perliedman Apr 2, 2016
ec10c1b
Merge pull request #4364 from Leaflet/fix-canvas-dasharray
yohanboniface Apr 2, 2016
868c102
Use mean earth radius for distance calculation in L.CRS.Earth.
Apr 2, 2016
b7b409b
Merge pull request #4369 from Leaflet/use-mean-earth-radius
yohanboniface Apr 2, 2016
560e73b
Trying out Leafdoc comments in L.Marker
IvanSanchez Aug 12, 2015
1b1d21b
Let's say I'm @IvanSanchez for once
yohanboniface Apr 2, 2016
903f344
Example/tutorial for WMS and TMS
IvanSanchez Apr 2, 2016
9560b28
Merge pull request #3916 from Leaflet/leafdoc
yohanboniface Apr 2, 2016
3218127
Example/tutorial for WMS and TMS
IvanSanchez Mar 23, 2016
550bed6
Corrections from proof-reading the WMS tutorial; EPSG:4326 example
IvanSanchez Mar 24, 2016
31d7b0a
Tutorial about making leaflet plugins
IvanSanchez Mar 29, 2016
c6c0e4f
Switch prosthetic-hand to 1.3.0 and use onStop callback
IvanSanchez Apr 2, 2016
714cbb9
Merge pull request #4372 from Leaflet/prosthetic-callbacks
yohanboniface Apr 2, 2016
86a7f79
Fire 'viewreset' on map.stop(), fixes #3985
IvanSanchez Apr 2, 2016
f1ce036
Remove use of ES5 function (map). Close #4362.
perliedman Apr 2, 2016
4b38a71
rm spurious check, fixes #4068
IvanSanchez Apr 2, 2016
e287b5e
Make L.Control.Layers.collapse/expand public methods
yohanboniface Apr 2, 2016
8b88891
Make L.Control.expand() and collapse() return `this`
IvanSanchez Apr 2, 2016
4bcc89b
Make sure bounds are bounds before testing its validity in fitBounds
yohanboniface Apr 2, 2016
0cfe858
Make non-interactive markers not fire pointer events
IvanSanchez Apr 2, 2016
04dbce8
Add debug/local in .gitignore
yohanboniface Apr 2, 2016
711dcf3
Merge branch 'master' of github.com:Leaflet/Leaflet
yohanboniface Apr 2, 2016
fa3aece
Merge pull request #4370 from Leaflet/collapse-expand
perliedman Apr 2, 2016
b511c7b
Round bounds size.
perliedman Apr 2, 2016
cd9c813
Merge pull request #4377 from Leaflet/fix-get-bounds-fit-bounds
hyperknot Apr 2, 2016
e083d41
Merge pull request #4367 from Leaflet/fix-4023
IvanSanchez Apr 2, 2016
0bed05d
Use array in L.Control.Layers to preserve layer order fixes #2086
jieter Apr 2, 2016
a4a72cc
Finish @yohanboniface's job by replacing more 🍂s with @s
IvanSanchez Apr 2, 2016
a8e54b7
Replace 1.0 reference with Leafdoc-generated file
IvanSanchez Apr 2, 2016
928100f
Workaround for flyTo bug
hyperknot Apr 2, 2016
f6334bd
Merge pull request #4292 from ghybs/patch-1
IvanSanchez Apr 2, 2016
4adba12
Fix SVG dragging in IE and Edge.
perliedman Apr 3, 2016
3305aa2
Added leafdoc comments for the 'zoomanim' event, fixes #2862
IvanSanchez Apr 3, 2016
2d548af
Add leafdoc comments for the 'crossOrigin' option in ImageOverlay, fi…
IvanSanchez Apr 3, 2016
95f8edc
tutorial typos, english
hyperknot Apr 3, 2016
139340e
remove silly personal links from the readme
mourner Apr 3, 2016
8c9759a
Change simple test case link to the Leaflet JS Bin
danzel Apr 5, 2016
36b60b7
Round scale to avoid float rounding issues in fitBounds
perliedman Apr 6, 2016
593a553
Pass layer on when calling _updateDashArray
Apr 8, 2016
b74cf17
Merge pull request #4404 from Leaflet/fix-4401
IvanSanchez Apr 8, 2016
8258a3e
update default position to match leafdoc
sheppard Apr 8, 2016
63870f1
fitBounds round fix (#4402)
hyperknot Apr 11, 2016
4ae38e4
Update plugin list to add leaflet-popup-angular and rename my previou…
grantHarris Apr 12, 2016
e3f2a2d
Add anchors to control headings. Fixes #4412
domoritz Apr 12, 2016
d62ff6f
Merge pull request #4272 from pwilczynski/patch-1
IvanSanchez Apr 13, 2016
68b8f97
Merge pull request #4414 from domoritz/patch-2
IvanSanchez Apr 13, 2016
1bfc6ad
Merge pull request #4413 from grantHarris/gh-pages
IvanSanchez Apr 13, 2016
095003a
fix capitalization in L.GridLayer.getContainer() doc (#4419)
nathancahill Apr 14, 2016
67c1370
consistent return type with aliased method (#4418)
nathancahill Apr 14, 2016
f59343a
Added Leaflet.heat (why wasn't it already in the list?!)
IvanSanchez Apr 14, 2016
da614f9
correct docstring for L.TileLayer.WMS transparent option
nathancahill Apr 14, 2016
d1ab25f
Merge pull request #4423 from nathancahill/patch-3
IvanSanchez Apr 14, 2016
1db460a
correct docstring default value for L.ImageOverlay interactive (#4425)
nathancahill Apr 14, 2016
5b67a2d
fix DomUtil.getClass docstring (#4438)
nathancahill Apr 15, 2016
5d2607a
Add missing return type in docstring for Util.indexOf (#4436)
nathancahill Apr 15, 2016
4ff5b10
add docstrings for L.Control methods (#4435)
nathancahill Apr 15, 2016
51e1554
change parameter type in docstring from |null to optional (#4433)
nathancahill Apr 15, 2016
f8a453d
add missing round parameter to Bounds.getCenter docstring (#4432)
nathancahill Apr 15, 2016
70a208b
correct return type in docstring of L.Point (#4431)
nathancahill Apr 15, 2016
1964f35
correct return type in docstring of LatLngBounds.extend (#4430)
nathancahill Apr 15, 2016
978fdb5
fix typo in Browser.mobile docstring (#4434)
nathancahill Apr 15, 2016
8643266
Added click tolerance also for non-touch devices (#4396)
DavidUv Apr 15, 2016
755c7ed
add missing docstring options for L.GeoJSON.latLngsToCoords() (#4429)
nathancahill Apr 15, 2016
37532b3
add missing type to setZIndex docstring in L.LayerGroup (#4428)
nathancahill Apr 15, 2016
f05af08
Ignore simulated mouse events in Draggable.
Apr 3, 2016
e5dcb00
Add comments
Apr 15, 2016
f3c80fd
Add comments
Apr 15, 2016
5389d23
Add unit test for drag handler enable/disable bug (#4387)
IvanSanchez Apr 15, 2016
fcffa30
Merge pull request #4387 from Leaflet/fix-disable-enable-drag
IvanSanchez Apr 15, 2016
24d8be6
Fix regression of control positions
Apr 15, 2016
a069c41
Merge pull request #4441 from Leaflet/sheppard-zoom-topleft
yohanboniface Apr 15, 2016
ce9b9f5
Don't prevent pointerdown if target is a form control (#4371)
perliedman Apr 15, 2016
c10f405
switch options type from path to polyline for polygon and rectangle -…
nathancahill Apr 15, 2016
6dad7f3
Add plugin Leaflet.Marker.Stack
IvanSanchez Apr 15, 2016
c09f83a
fix autoPanPadding typo in docstring (#4445)
nathancahill Apr 15, 2016
119c80f
fix typo in flyTo docstring options type (#4446)
nathancahill Apr 15, 2016
f060a83
add missing type to Map.getPixelWorldBounds (#4448)
nathancahill Apr 15, 2016
ede3246
fix typo in Map.getMaxZoom docstring (#4447)
nathancahill Apr 15, 2016
46083ad
add missing types to Map.createPane docstring (#4450)
nathancahill Apr 15, 2016
25d5a81
remove duplicate maxBoundsViscosity option (#4449)
nathancahill Apr 15, 2016
c59bf6a
remove duplicate Map.options.renderer
nathancahill Apr 16, 2016
032bce6
Merge pull request #4451 from nathancahill/patch-2
IvanSanchez Apr 16, 2016
8e3e533
1.0.0-rc1 changelog (cf #4379) (#4383)
yohanboniface Apr 18, 2016
c22ee29
Bump version to 1.0.0-rc.1 (#4454)
perliedman Apr 18, 2016
a626826
update deps and bump travis node version
mourner Apr 18, 2016
e24e335
Blog post for 1.0.0-rc1 (#4443)
IvanSanchez Apr 18, 2016
9007b91
Update download links
IvanSanchez Apr 18, 2016
649470e
Update 1.0.0 docs to Leafdocs for 1.0.0-rc1 (from -beta2), tnx @natha…
IvanSanchez Apr 18, 2016
96bf8d9
Typo in changelog URL for rc1
IvanSanchez Apr 18, 2016
acbc6d2
Sourcemaps: replace magic-string with source-map.SourceNode
IvanSanchez Apr 19, 2016
5c8d4bb
Better handling of markerZoomAnimation event hooks, fixes #4453
IvanSanchez Apr 19, 2016
23890c5
Skip a touch unit test on non-touch browsers
IvanSanchez Apr 19, 2016
ca01120
Use git rev as semver metadata
IvanSanchez Apr 18, 2016
f3586fd
Merge pull request #4455 from Leaflet/build-version
perliedman Apr 19, 2016
7347446
add LineUtil.clipSegment docstring (#4437)
nathancahill Apr 19, 2016
3e8fcbd
add option type for 'center' value (#4456)
nathancahill Apr 19, 2016
91fa757
Add 'updateWhenZooming' option to L.GridLayer (#4462)
IvanSanchez Apr 19, 2016
86e49f9
fix Util.template docstring (#4468)
nathancahill Apr 19, 2016
c3426d6
docstring fixes regarding Polyline/Circle options
IvanSanchez Apr 20, 2016
71a1e85
Update notes about contributing to the API docs (#4470)
IvanSanchez Apr 20, 2016
ddf8f05
Leafdoc: fix internal links & inconsistent return types (#4469)
IvanSanchez Apr 20, 2016
1eafc01
create points from objects with x and y properties (#4465)
nathancahill Apr 20, 2016
442d710
Fix typo in L.Draggable docstring (#4471)
frogcat Apr 20, 2016
2b52369
Add CRS.distance docstring (#4466)
nathancahill Apr 20, 2016
32bf7b9
Fix L.Evented.listens() on removed event handlers, #4474
IvanSanchez Apr 21, 2016
c536377
Add Leaflet.VectorGrid plugin, note about deprecated vector tile plug…
IvanSanchez Apr 21, 2016
1c26b34
Ingore events if Draggable is disabled
perliedman Apr 21, 2016
0836527
Fix bad unit tests for marker events
IvanSanchez Apr 21, 2016
269eabc
fix typo in PosAnimation docs (#4482)
nathancahill Apr 21, 2016
74e72ce
Specify EdgeBuffer plugin is for Leaflet 1.0 (#4485)
TolonUK Apr 21, 2016
02078c2
Make sure L.Control.removeLayer() doesn't raise an error if a layer n…
jieter Apr 22, 2016
b544d5e
Remove images from Bower's main field (#4481)
simison Apr 22, 2016
3fc3a4d
fix inconsistency in GeoJSON event class name (#4489)
nathancahill Apr 22, 2016
c5ae732
correct ResizeEvent event type (#4490)
nathancahill Apr 22, 2016
4ad74d8
correct DragEndEvent event type (#4491)
nathancahill Apr 22, 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
f4b50cc
Merge remote-tracking branch 'hm/master' into 0.7.8
Feb 9, 2020
c82de33
Update Map.ScrollWheelZoom.js
Feb 9, 2020
7894171
merge origin/rotate
Feb 9, 2020
52a9ca1
merge origin/pyramid
Feb 9, 2020
d362f98
merge origin/prune2
Feb 9, 2020
a165c0d
merge origin/prune
Feb 9, 2020
b8d35fc
merge origin/move-latlg-equals-to-crs
Feb 9, 2020
27cde79
merge origin/cache-mouse-pos
Feb 9, 2020
6baed8c
Merge remote-tracking branch 'hm/domevent-once' into 0.7.8
Feb 9, 2020
2f493bb
merge origin/drag-cancel-click
Feb 9, 2020
852671e
merge origin/fix-ie11-disable-drag-on-click
Feb 9, 2020
442b0d7
Merge remote-tracking branch 'origin/geojson-round-trip-test' into 0.7.8
Feb 9, 2020
c2412f1
merge origin/gh-pages
Feb 9, 2020
a32a0c8
merge origin/gh-pages-custom-crs
Feb 9, 2020
8baa935
hm/0.7.8
Feb 9, 2020
8f86928
hm/0.7.8
Feb 9, 2020
e704bd7
hm/0.7.8
Feb 9, 2020
a2cb213
Merge remote-tracking branch 'origin/listens' into 0.7.8
Feb 9, 2020
b99077a
Merge remote-tracking branch 'origin/marker-zoom-animation' into 0.7.8
Feb 9, 2020
25ac18c
hm/0.7.8
Feb 9, 2020
d112515
Merge branch 'pr/5'
Feb 9, 2020
44f879c
Merge branch 'pr/5' into 0.7.8
Feb 9, 2020
7b23fdc
Merge branch 'master' into 0.7.8
Feb 9, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
21 changes: 21 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"globals": {
"L": true,
},
"env": {
"commonjs": true,
"amd": true,
"node": false
},
"extends": "mourner",
"rules": {
"no-mixed-spaces-and-tabs": [2, "smart-tabs"],
"indent": [2, "tab", {"VariableDeclarator": 0}],
"curly": 2,
"spaced-comment": 2,
"strict": 0,
"wrap-iife": 0,
"key-spacing": 0,
"consistent-return": 0
}
}
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}}
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@ tmp/**/*
*.sublime-*
_site
dist/*.js
dist/*.map
dist/reference.html
coverage/
*.js.html
index.html
.mailmap
bower.json
component.json
component.json
debug/local/
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ tmp/**/*
*.sublime-*
_site
coverage/
dist/leaflet.zip
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sudo: false
language: node_js
node_js: 0.12
node_js: stable
addons:
artifacts:
paths:
Expand Down
408 changes: 405 additions & 3 deletions CHANGELOG.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
leafletjs.com
152 changes: 99 additions & 53 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,21 @@ Contributing to Leaflet
1. [Getting Involved](#getting-involved)
2. [Reporting Bugs](#reporting-bugs)
3. [Contributing Code](#contributing-code)
4. [Improving Documentation](#improving-documentation)
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.
However, they're not the only way to get involved with the development of Leaflet.
You can help the project tremendously by discovering and [reporting bugs](#reporting-bugs),
[improving documentation](#improving-documentation),
helping others on the [Leaflet forum](https://groups.google.com/forum/#!forum/leaflet-js)
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)
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);
tweeting to [@LeafletJS](http://twitter.com/LeafletJS);
and spreading the word about Leaflet among your colleagues and friends.

## Reporting Bugs
Expand All @@ -26,34 +29,34 @@ first make sure that your issue is caused by Leaflet, not your application code
Second, search the already reported issues for similar cases,
and if it's already reported, just add any additional details in the comments.

After you made sure that you've found a new Leaflet bug,
After you've made sure that you've found a new Leaflet bug,
here are some tips for creating a helpful report that will make fixing it much easier and quicker:

* 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 [JSFiddle](http://jsfiddle.net/)).
* 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,
use `git bisect` to find the exact commit that introduced the bug.

If you just want some help with your project,
try asking [on the Leaflet forum](https://groups.google.com/forum/#!forum/leaflet-js) instead.
try asking on [Stack Overflow](https://stackoverflow.com/questions/tagged/leaflet)
or [GIS Stack Exchange](https://gis.stackexchange.com/questions/tagged/leaflet) instead.

## Contributing Code

### Considerations for Accepting Patches

While we happily accept patches, we're also commited to keeping Leaflet simple, lightweight and blazingly fast.
While we happily accept patches, we're also committed to keeping Leaflet simple, lightweight and blazingly fast.
So bugfixes, performance optimizations and small improvements that don't add a lot of code
are much more likely to get accepted quickly.

Before sending a pull request with a new feature, first 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/)),
and then ask yourself two questions:
Before sending a pull request with a new feature, check if it's been discussed before already
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 presense in the Leaflet core?
1. Are you sure that this new feature is important enough to justify its presence in the Leaflet core?
Or will it look better as a plugin in a separate repository?
2. Is it written in a simple, concise way that doesn't add bulk to the codebase?

Expand All @@ -62,16 +65,17 @@ please consider submitting another pull request with the corresponding [document

### Setting up the Build System

To set up the Leaflet build system, install [Node](http://nodejs.org/),
then run the following commands in the project root:
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 @@ -85,71 +89,113 @@ 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 commiting 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
and is automatically generated from a set of HTML and Markdown files by [Jekyll](https://github.com/mojombo/jekyll).
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. `reference.html` for API reference),
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 commiting the changes, just send a pull request.
After committing the changes, just send a pull request.

### API documentation

Since Leaflet 1.0.0-rc1, the API documentation in `reference-1.0.0.html` is handled
via [Leafdoc](https://github.com/Leaflet/Leafdoc). This means that next to the
code for every method, option or property there is a special code comment documenting
that feature. In order to edit the API documentation, just edit these comments in the
source code.

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

```
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 `docs/reference.html` - there is no need to send pull requests with changes to this file to update the API documentation.

## Code of Conduct

If you need to update documentation according to a new feature that only appeared in the master version (not stable one),
you need to make changes to `gh-pages-master` branch instead of `gh-pages`.
It will get merged into the latter when released as stable.
Everyone is invited to participate in the Leaflet community and related projects:
we want to create a welcoming and friendly environment.
Harassment of participants or other unethical and unprofessional behavior will not be tolerated in our spaces.
The [Contributor Covenant](http://contributor-covenant.org/version/1/3/0/)
applies to all projects under the Leaflet organization.
Report any issues to [email protected].

## Thank You

Not only are we grateful for any contributions, &mdash; helping Leaflet and its community actually makes you AWESOME.
Not only does your contribution to Leaflet and its community earn our gratitude, but it also makes you AWESOME.
Join [this approved list of awesome people](https://github.com/Leaflet/Leaflet/graphs/contributors)
and help us push the limits of what's possible with online maps!
15 changes: 9 additions & 6 deletions FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,11 @@ You can roll your own tiles as well.
but there are providers that use other sources.

Check out [this example](http://leaflet-extras.github.io/leaflet-providers/preview/)
with half a hundred different layers to choose from.
with over seventy different layers to choose from.
Popular commercial options, free up to a particular number of requests, include
[MapBox](http://mapbox.com),
[CloudMade](http://cloudmade.com),
[Bing Maps](http://www.microsoft.com/maps/choose-your-binge's-maps-API.aspx) (using a [plugin](https://github.com/shramov/leaflet-plugins)),
[Esri ArcGIS](http://www.arcgis.com/features/maps/imagery.html) ([official plugin](https://github.com/Esri/esri-leaflet))
[Bing Maps](http://www.microsoft.com/maps/choose-your-bing-maps-API.aspx) (using a [plugin](https://github.com/shramov/leaflet-plugins)),
[Esri ArcGIS](http://www.esri.com/software/arcgis/arcgisonline/maps/maps-and-map-layers) ([official plugin](https://github.com/Esri/esri-leaflet))
and [Nokia Here](http://developer.here.com/web-experiences).
A notable exception is [MapQuest Open](http://developer.mapquest.com/web/products/open/map), which is free for any number of requests.

Expand All @@ -41,12 +40,12 @@ Always be sure to **read the terms of use** of a chosen tile provider, **know it

[MapBox](http://mapbox.com),
[Bing Maps](http://www.microsoft.com/maps/choose-your-bing-maps-API.aspx),
[ArcGIS](http://www.arcgis.com/features/maps/imagery.html)
[ArcGIS](http://www.esri.com/software/arcgis/arcgisonline/maps/maps-and-map-layers)
and [MapQuest Open](http://developer.mapquest.com/web/products/open/map) provide satellite imagery among others.

#### I want to use Google Maps API tiles with Leaflet, can I do that?

The problem with Google is that its [Terms of Use](https://developers.google.com/maps/terms?hl=ru) forbid any means of tile access other than through the Google Maps API.
The problem with Google is that its [Terms of Use](https://developers.google.com/maps/terms) forbid any means of tile access other than through the Google Maps API.

You can add the Google Maps API as a Leaflet layer with a [plugin](https://github.com/shramov/leaflet-plugins). But note that the map experience will not be perfect, because Leaflet will just act as a proxy to the Google Maps JS engine, so you won't get all the performance and usability benefits of using Leaflet when the Google layer is on.

Expand Down Expand Up @@ -86,6 +85,10 @@ Make sure you conform to the terms of use of the tile images provider(s) that yo

## Features

#### What's the best way to put the data I have on a Leaflet map?

Check out [this awesome cheatsheet](https://github.com/tmcw/mapmakers-cheatsheet).

#### Why is there still no feature X in Leaflet?

First of all, did you check out the [Leaflet plugins page](http://leafletjs.com/plugins.html)?
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'
Loading