nakarte

Source code of https://map.sikmir.ru (fork)
git clone git://git.sikmir.ru/nakarte
Log | Files | Refs | LICENSE

commit bcdaf7bd1eeca95b6d38cd9b635340efc98a3459
parent 11a8b9bd6406bf324963b8b77e3c2ae4b89a0a4d
Author: Sergej Orlov <wladimirych@gmail.com>
Date:   Sun,  7 Aug 2022 18:49:50 +0200

[layers] Remove Bing dates, server is not responding

Diffstat:
Msrc/layers.js | 18------------------
Dsrc/lib/leaflet.layer.bing/dates.js | 18------------------
Msrc/lib/leaflet.layer.bing/index.js | 2+-
3 files changed, 1 insertion(+), 37 deletions(-)

diff --git a/src/layers.js b/src/layers.js @@ -2,7 +2,6 @@ import L from "leaflet"; import '~/lib/leaflet.layer.yandex'; import '~/lib/leaflet.layer.google'; import {BingLayer} from '~/lib/leaflet.layer.bing'; -import {BingDates} from '~/lib/leaflet.layer.bing/dates'; import config from './config'; import '~/lib/leaflet.layer.soviet-topomaps-grid'; import '~/lib/leaflet.layer.westraPasses'; @@ -636,21 +635,6 @@ class LayerGroupWithOptions extends L.LayerGroup { ), }, { - title: 'Bing imagery acquisition dates', - isDefault: false, - layer: new BingDates({ - code: 'Bd', - isOverlay: true, - maxNativeZoom: 18, - print: false, - jnx: false, - scaleDependent: false, - noCors: true, - attribution: - '<a href="https://github.com/mvexel/bingimageanalyzer">Bing Aerial Imagery Analyzer</a>', - }) - }, - { title: 'geocaching.su', isDefault: false, layer: new GeocachingSu(config.geocachingSuUrl, { @@ -1240,7 +1224,6 @@ class LayerGroupWithOptions extends L.LayerGroup { layers: [ 'Mountains by Alexander Purikov', 'Google Hybrid', - 'Bing imagery acquisition dates', 'geocaching.su' ] }, @@ -1338,7 +1321,6 @@ class LayerGroupWithOptions extends L.LayerGroup { 'Google Hybrid', 'Waymarked Hiking Trails', 'Waymarked Cycling Trails', - 'Bing imagery acquisition dates', 'OpenStreetMap GPS traces', 'Strava heatmap (all)', 'Strava heatmap (run)', diff --git a/src/lib/leaflet.layer.bing/dates.js b/src/lib/leaflet.layer.bing/dates.js @@ -1,18 +0,0 @@ -import L from 'leaflet'; -import {tile2quad} from '.'; - -const BingDates = L.TileLayer.extend({ - _url: 'https://mvexel.dev.openstreetmap.org/bingimageanalyzer/tile.php?t={quad}&nodepth=1', - - initialize: function(options) { - L.Util.setOptions(this, options); - }, - - getTileUrl: function(tilePoint) { - var zoom = this._getZoomForUrl(); - return this._url.replace('{quad}', tile2quad(tilePoint.x, tilePoint.y, zoom)); - }, - } -); - -export {BingDates}; diff --git a/src/lib/leaflet.layer.bing/index.js b/src/lib/leaflet.layer.bing/index.js @@ -140,4 +140,4 @@ const BingLayer = L.TileLayer.extend({ } }); -export {BingLayer, tile2quad}; +export {BingLayer};