commit 7cf1675b07efe01540482ece7409376d9fbe4043
parent 5f3d291bab2b82413b9a3586c334782dd5701082
Author: Sergej Orlov <wladimirych@gmail.com>
Date: Sun, 26 Jan 2020 01:05:40 +0100
fix lint errors (space-before-function-paren)
Diffstat:
5 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/src/lib/leaflet.control.caption/index.js b/src/lib/leaflet.control.caption/index.js
@@ -8,12 +8,12 @@ L.Control.Caption = L.Control.extend({
className: 'leaflet-control-caption'
},
- initialize: function (contents, options) {
+ initialize: function(contents, options) {
L.setOptions(this, options);
this._contents = contents;
},
- onAdd: function (map) {
+ onAdd: function(map) {
this._map = map;
this._container = L.DomUtil.create('div', this.options.className);
this._container.innerHTML = this._contents;
diff --git a/src/lib/leaflet.control.layers.configure/customLayer.js b/src/lib/leaflet.control.layers.configure/customLayer.js
@@ -1,7 +1,7 @@
import L from 'leaflet';
L.Layer.CustomLayer = L.TileLayer.extend({
- getTileUrl: function (coords) {
+ getTileUrl: function(coords) {
const z = this._getZoomForUrl();
var data = {
r: L.Browser.retina ? '@2x' : '',
diff --git a/src/lib/leaflet.control.zoom-display/index.js b/src/lib/leaflet.control.zoom-display/index.js
@@ -11,7 +11,7 @@ const ZoomWithDisplay = L.Control.Zoom.extend({
return container;
},
- onRemove: function (map) {
+ onRemove: function(map) {
L.Control.Zoom.prototype.onRemove.call(this, map);
map.off('zoomend', this._updateDisplay, this);
},
diff --git a/src/lib/leaflet.layer.bing/index.js b/src/lib/leaflet.layer.bing/index.js
@@ -24,7 +24,7 @@ const BingLayer = L.TileLayer.extend({
culture: ''
},
- initialize: function (key, options) {
+ initialize: function(key, options) {
L.Util.setOptions(this, options);
this._key = key;
@@ -33,7 +33,7 @@ const BingLayer = L.TileLayer.extend({
this.metaRequested = false;
},
- getTileUrl: function (tilePoint) {
+ getTileUrl: function(tilePoint) {
var zoom = this._getZoomForUrl();
var subdomains = this.options.subdomains,
s = this.options.subdomains[Math.abs((tilePoint.x + tilePoint.y) % subdomains.length)];
@@ -42,14 +42,14 @@ const BingLayer = L.TileLayer.extend({
.replace('{culture}', this.options.culture);
},
- loadMetadata: function () {
+ loadMetadata: function() {
if (this.metaRequested) {
return;
}
this.metaRequested = true;
var that = this;
var cbid = '_bing_metadata_' + L.Util.stamp(this);
- window[cbid] = function (meta) {
+ window[cbid] = function(meta) {
window[cbid] = undefined;
var e = document.getElementById(cbid);
e.parentNode.removeChild(e);
@@ -69,7 +69,7 @@ const BingLayer = L.TileLayer.extend({
document.getElementsByTagName('head')[0].appendChild(script);
},
- initMetadata: function (meta) {
+ initMetadata: function(meta) {
var r = meta.resourceSets[0].resources[0];
this.options.subdomains = r.imageUrlSubdomains;
this._url = r.imageUrl;
@@ -92,7 +92,7 @@ const BingLayer = L.TileLayer.extend({
this._update();
},
- _update: function () {
+ _update: function() {
if (this._url === null || !this._map) {
return;
}
@@ -100,7 +100,7 @@ const BingLayer = L.TileLayer.extend({
L.TileLayer.prototype._update.apply(this, []);
},
- _update_attribution: function () {
+ _update_attribution: function() {
var bounds = L.latLngBounds(
this._map.getBounds().getSouthWest().wrap(),
this._map.getBounds().getNorthEast().wrap()
@@ -123,12 +123,12 @@ const BingLayer = L.TileLayer.extend({
}
},
- onAdd: function (map) {
+ onAdd: function(map) {
this.loadMetadata();
L.TileLayer.prototype.onAdd.apply(this, [map]);
},
- onRemove: function (map) {
+ onRemove: function(map) {
for (var i = 0; i < this._providers.length; i++) {
var p = this._providers[i];
if (p.active && this._map.attributionControl) {
diff --git a/src/lib/leaflet.layer.rasterize/WestraPasses.js b/src/lib/leaflet.layer.rasterize/WestraPasses.js
@@ -19,7 +19,7 @@ WestraPassesMarkers.include({
});
},
- cloneForPrint: function (options) {
+ cloneForPrint: function(options) {
options = L.Util.extend({}, this.options, options);
return new WestraPassesMarkers(this._baseUrl, options);
},