commit fca5ba2f120c49194c433a07aa60ddb1d5a2201f
parent e73e803c83c66652cb76c57e18548ab6d3b7f2fe
Author: Sergej Orlov <wladimirych@gmail.com>
Date: Sat, 25 Jan 2020 23:40:52 +0100
fix lint errors (operator-linebreak)
Diffstat:
7 files changed, 23 insertions(+), 22 deletions(-)
diff --git a/src/lib/leaflet.control.layers.adaptive-height/index.js b/src/lib/leaflet.control.layers.adaptive-height/index.js
@@ -24,11 +24,11 @@ function enableAdaptiveHeight(control) {
__setAdaptiveHeight: function() {
const mapHeight = this._map.getSize().y;
let maxHeight;
- maxHeight = (mapHeight
- - this._container.offsetTop // controls above
- - (this._container.parentNode.offsetHeight - this._container.offsetTop -
- this._container.offsetHeight) //controls below
- - 70); // margin
+ maxHeight = (mapHeight -
+ this._container.offsetTop - // controls above
+ (this._container.parentNode.offsetHeight - this._container.offsetTop -
+ this._container.offsetHeight) - //controls below
+ 70); // margin
this._form.style.maxHeight = maxHeight + 'px';
}
}
diff --git a/src/lib/leaflet.control.track-list/lib/services/gpsies.js b/src/lib/leaflet.control.track-list/lib/services/gpsies.js
@@ -35,8 +35,8 @@ class Gpsies extends BaseService {
parseResponse(responses) {
const response = responses[0];
- return parseGpx(response.responseBinaryText, this.nameFromUrl(response.responseURL), true)
- || [{name: name, error: 'UNSUPPORTED'}];
+ return parseGpx(response.responseBinaryText, this.nameFromUrl(response.responseURL), true) ||
+ [{name: name, error: 'UNSUPPORTED'}];
}
}
diff --git a/src/lib/leaflet.control.track-list/lib/services/gpslib.js b/src/lib/leaflet.control.track-list/lib/services/gpslib.js
@@ -20,8 +20,8 @@ class Gpslib extends BaseService {
parseResponse(responses) {
const response = responses[0];
- return parseGpx(response.responseBinaryText, `GPSLib ${this.trackId}`, true)
- || [{name: name, error: 'UNSUPPORTED'}];
+ return parseGpx(response.responseBinaryText, `GPSLib ${this.trackId}`, true) ||
+ [{name: name, error: 'UNSUPPORTED'}];
}
}
diff --git a/src/lib/leaflet.control.track-list/lib/services/osm.js b/src/lib/leaflet.control.track-list/lib/services/osm.js
@@ -25,8 +25,8 @@ class Osm extends BaseService {
parseResponse(responses) {
const trackId = this.getTrackId();
const response = responses[0];
- return parseGpx(response.responseBinaryText, `OSM track ${trackId}`, true)
- || [{name: name, error: 'UNSUPPORTED'}];
+ return parseGpx(response.responseBinaryText, `OSM track ${trackId}`, true) ||
+ [{name: name, error: 'UNSUPPORTED'}];
}
}
diff --git a/src/lib/leaflet.control.track-list/track-list.js b/src/lib/leaflet.control.track-list/track-list.js
@@ -149,11 +149,12 @@ L.Control.TrackList = L.Control.extend({
_setAdaptiveHeight: function() {
const mapHeight = this._map.getSize().y;
let maxHeight;
- maxHeight = (mapHeight
- - this._container.offsetTop // controls above
- - (this._container.parentNode.offsetHeight - this._container.offsetTop
- - this._container.offsetHeight) //controls below
- - 105); // margin
+ maxHeight =
+ mapHeight -
+ this._container.offsetTop - // controls above
+ //controls below
+ (this._container.parentNode.offsetHeight - this._container.offsetTop - this._container.offsetHeight) -
+ 105; // margin
this.trackListHeight(maxHeight + 'px');
},
@@ -279,8 +280,8 @@ L.Control.TrackList = L.Control.extend({
messages.push('No tracks loaded');
}
geodata_array.forEach(function(geodata) {
- var data_empty = !((geodata.tracks && geodata.tracks.length)
- || (geodata.points && geodata.points.length));
+ var data_empty = !((geodata.tracks && geodata.tracks.length) ||
+ (geodata.points && geodata.points.length));
if (!data_empty) {
if (geodata.tracks) {
diff --git a/src/lib/leaflet.layer.bing/index.js b/src/lib/leaflet.layer.bing/index.js
@@ -59,8 +59,8 @@ const BingLayer = L.TileLayer.extend({
that.initMetadata(meta);
};
var urlScheme = 'https';
- var url = urlScheme + '://dev.virtualearth.net/REST/v1/Imagery/Metadata/'
- + this.options.type + '?include=ImageryProviders&jsonp=' + cbid +
+ var url = urlScheme + '://dev.virtualearth.net/REST/v1/Imagery/Metadata/' +
+ this.options.type + '?include=ImageryProviders&jsonp=' + cbid +
'&key=' + this._key + '&UriScheme=' + urlScheme;
var script = document.createElement('script');
script.type = 'text/javascript';
diff --git a/src/lib/leaflet.polyline-measure/index.js b/src/lib/leaflet.polyline-measure/index.js
@@ -65,8 +65,8 @@ L.MeasuredLine = L.Polyline.extend({
var labelText = Math.round((tick.distanceValue / 10)) / 100 + ' km',
icon = L.divIcon(
{
- html: '<div class="measure-tick-icon-text" style="transform:'
- + transformMatrixString + '">' +
+ html: '<div class="measure-tick-icon-text" style="transform:' +
+ transformMatrixString + '">' +
labelText + '</div>',
className: 'measure-tick-icon'
}