commit f4a655f587c92df50932856c5c4a718bc6ec6d3e
parent 53afa3258c614058a1bbb18f4fd5475c29945925
Author: Sergej Orlov <wladimirych@gmail.com>
Date: Thu, 12 Apr 2018 23:00:43 +0300
geocaching: moved url to config, changed scheme to https
Diffstat:
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/config.js b/src/config.js
@@ -8,5 +8,6 @@ export default Object.assign({
elevationsServer: 'http://elevation.nakarte.tk/',
newsUrl: 'http://about.nakarte.tk',
wikimediaCommonsCoverageUrl: 'https://tiles.nakarte.tk/wikimedia_commons_images/{z}/{x}/{y}',
+ geocachingSuUrl: 'https://nakarte.tk/geocachingSu/geocaching_su.json',
tracksStorageServer: 'http://tracks.nakarte.tk',
}, secrets);
diff --git a/src/layers.js b/src/layers.js
@@ -381,7 +381,7 @@ export default function getLayers() {
order: 11500,
isOverlay: true,
isDefault: false,
- layer: new GeocachingSu({
+ layer: new GeocachingSu(config.geocachingSuUrl, {
code: 'Gc',
print: true,
jnx: false
diff --git a/src/lib/leaflet.layer.geocaching-su/index.js b/src/lib/leaflet.layer.geocaching-su/index.js
@@ -13,9 +13,8 @@ const GeocachingSu = L.Layer.CanvasMarkers.extend({
scaleDependent: true
},
- dataUrl: 'https://nakarte.tk/geocachingSu/geocaching_su.json',
-
- initialize: function(options) {
+ initialize: function(url, options) {
+ this.dataUrl = url;
L.Layer.CanvasMarkers.prototype.initialize.call(this, null, options);
this.on('markerclick', this.openCachePage, this);
},