From 8333807b3169281fcf5140fbd24f410e4836ba2c Mon Sep 17 00:00:00 2001 From: muerwre Date: Mon, 27 Aug 2018 09:24:38 +0700 Subject: [PATCH] removed unused things --- src/modules/Map.js | 2 +- src/modules/Poly.js | 3 --- src/modules/Shotter.js | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/modules/Map.js b/src/modules/Map.js index 17406d8..ce5e935 100644 --- a/src/modules/Map.js +++ b/src/modules/Map.js @@ -8,7 +8,7 @@ export class Map { constructor({ container }) { this.map = map(container, { editable: true }).setView([55.0153275, 82.9071235], 13); - this.tileLayer = tileLayer(providers.dgis, { + this.tileLayer = tileLayer(providers.default, { attribution: 'Независимое Велосообщество', maxNativeZoom: 18, maxZoom: 18, diff --git a/src/modules/Poly.js b/src/modules/Poly.js index 0a28672..d5574bc 100644 --- a/src/modules/Poly.js +++ b/src/modules/Poly.js @@ -21,7 +21,6 @@ export class Poly { } updateMarks = () => { - console.log('upd'); const coords = this.poly.toGeoJSON().geometry.coordinates; this.latlngs = (coords && coords.length && coords.map(([lng, lat]) => ({ lng, lat }))) || []; const meters = (this.poly && (L.GeometryUtil.length(this.poly) / 1000)) || 0; @@ -67,11 +66,9 @@ export class Poly { continue = () => { if (this.latlngs && this.latlngs.length) { - console.log('continue?'); this.poly.enableEdit().continueForward(); this.poly.editor.reset(); } else { - console.log('start over'); this.poly = this.map.editTools.startPolyline(); this.poly.setStyle(polyStyle); } diff --git a/src/modules/Shotter.js b/src/modules/Shotter.js index 33b0800..f3fde13 100644 --- a/src/modules/Shotter.js +++ b/src/modules/Shotter.js @@ -58,7 +58,7 @@ export class Shotter { const placement = this.getTilePlacement(); axios.get('http://alpha-map.vault48.org/engine/composerOrchid.php', { - params: { placement, mode: 'test' } + params: { placement } }) .then(console.log) .catch(console.warn);