Skip to content

Commit cfdbdff

Browse files
committed
update build
1 parent c47333c commit cfdbdff

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

dist/leaflet-src.js

+26-1
Original file line numberDiff line numberDiff line change
@@ -1929,13 +1929,15 @@ L.TileLayer = L.Class.extend({
19291929
if (this._container) {
19301930
this._map._panes.tilePane.appendChild(this._container);
19311931
}
1932+
return this;
19321933
},
19331934

19341935
bringToBack: function () {
19351936
var pane = this._map._panes.tilePane;
19361937
if (this._container) {
19371938
pane.insertBefore(this._container, pane.firstChild);
19381939
}
1940+
return this;
19391941
},
19401942

19411943
getAttribution: function () {
@@ -1948,6 +1950,8 @@ L.TileLayer = L.Class.extend({
19481950
if (this._map) {
19491951
this._updateOpacity();
19501952
}
1953+
1954+
return this;
19511955
},
19521956

19531957
setUrl: function (url, noRedraw) {
@@ -2244,7 +2248,7 @@ L.TileLayer = L.Class.extend({
22442248
//Only if we are loading an actual image
22452249
if (this.src !== L.Util.emptyImageUrl) {
22462250
L.DomUtil.addClass(this, 'leaflet-tile-loaded');
2247-
2251+
22482252
layer.fire('tileload', {
22492253
tile: this,
22502254
url: this.src
@@ -2469,6 +2473,7 @@ L.ImageOverlay = L.Class.extend({
24692473
setOpacity: function (opacity) {
24702474
this.options.opacity = opacity;
24712475
this._updateOpacity();
2476+
return this;
24722477
},
24732478

24742479
_initImage: function () {
@@ -3438,6 +3443,7 @@ L.Path = L.Class.extend({
34383443
options: {
34393444
stroke: true,
34403445
color: '#0033ff',
3446+
dashArray: null,
34413447
weight: 5,
34423448
opacity: 0.5,
34433449

@@ -3579,6 +3585,11 @@ L.Path = L.Path.extend({
35793585
this._path.setAttribute('stroke', this.options.color);
35803586
this._path.setAttribute('stroke-opacity', this.options.opacity);
35813587
this._path.setAttribute('stroke-width', this.options.weight);
3588+
if (this.options.dashArray) {
3589+
this._path.setAttribute('stroke-dasharray', this.options.dashArray);
3590+
} else {
3591+
this._path.removeAttribute('stroke-dasharray');
3592+
}
35823593
} else {
35833594
this._path.setAttribute('stroke', 'none');
35843595
}
@@ -3835,6 +3846,11 @@ L.Path = L.Browser.svg || !L.Browser.vml ? L.Path : L.Path.extend({
38353846
stroke.weight = options.weight + 'px';
38363847
stroke.color = options.color;
38373848
stroke.opacity = options.opacity;
3849+
if (options.dashArray) {
3850+
stroke.dashStyle = options.dashArray;
3851+
} else {
3852+
stroke.dashStyle = '';
3853+
}
38383854
} else if (stroke) {
38393855
container.removeChild(stroke);
38403856
this._stroke = null;
@@ -6145,6 +6161,8 @@ L.Control = L.Class.extend({
61456161
if (map) {
61466162
map.addControl(this);
61476163
}
6164+
6165+
return this;
61486166
},
61496167

61506168
addTo: function (map) {
@@ -6184,6 +6202,7 @@ L.control = function (options) {
61846202
return new L.Control(options);
61856203
};
61866204

6205+
61876206
L.Map.include({
61886207
addControl: function (control) {
61896208
control.addTo(this);
@@ -6295,6 +6314,7 @@ L.Control.Attribution = L.Control.extend({
62956314
setPrefix: function (prefix) {
62966315
this.options.prefix = prefix;
62976316
this._update();
6317+
return this;
62986318
},
62996319

63006320
addAttribution: function (text) {
@@ -6306,13 +6326,17 @@ L.Control.Attribution = L.Control.extend({
63066326
this._attributions[text]++;
63076327

63086328
this._update();
6329+
6330+
return this;
63096331
},
63106332

63116333
removeAttribution: function (text) {
63126334
if (!text) { return; }
63136335

63146336
this._attributions[text]--;
63156337
this._update();
6338+
6339+
return this;
63166340
},
63176341

63186342
_update: function () {
@@ -6365,6 +6389,7 @@ L.control.attribution = function (options) {
63656389
return new L.Control.Attribution(options);
63666390
};
63676391

6392+
63686393
L.Control.Scale = L.Control.extend({
63696394
options: {
63706395
position: 'bottomleft',

dist/leaflet.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)