From 91093229054ce0a921219e5b3ac0ddfbf7d62c66 Mon Sep 17 00:00:00 2001
From: Gautier Pelloux-Prayer
- http://groups.google.com/group/osm-android-bikerouting
+ https://groups.google.com/group/osm-android-bikerouting
@@ -157,7 +157,7 @@
Data:
- This is based on OpenStreetMap. It is usually updated once a week when a new Planet file is available,
+ This is based on OpenStreetMap. It is usually updated once a week when a new Planet file is available,
see dates of data files.
diff --git a/js/Map.js b/js/Map.js
index 8c1f06b..d1930aa 100644
--- a/js/Map.js
+++ b/js/Map.js
@@ -8,28 +8,28 @@ BR.Map = {
var maxZoom = 19;
- var osm = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
+ var osm = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: maxZoom
});
- var osmde = L.tileLayer('http://{s}.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png', {
+ var osmde = L.tileLayer('https://{s}.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png', {
maxNativeZoom: 18,
maxZoom: maxZoom
});
- var topo = L.tileLayer('http://{s}.tile.opentopomap.org/{z}/{x}/{y}.png', {
+ var topo = L.tileLayer('https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png', {
maxNativeZoom: 17,
maxZoom: maxZoom
});
- var thunderforestAttribution = 'tiles © Thunderforest '
- + '(CC-BY-SA 2.0)';
+ var thunderforestAttribution = 'tiles © Thunderforest '
+ + '(CC-BY-SA 2.0)';
var thunderforestAuth = BR.keys.thunderforest ? '?apikey=' + BR.keys.thunderforest : '';
- var cycle = L.tileLayer('http://{s}.tile.thunderforest.com/cycle/{z}/{x}/{y}.png' + thunderforestAuth, {
+ var cycle = L.tileLayer('https://{s}.tile.thunderforest.com/cycle/{z}/{x}/{y}.png' + thunderforestAuth, {
maxNativeZoom: 18,
maxZoom: maxZoom
});
- var outdoors = L.tileLayer('http://{s}.tile.thunderforest.com/outdoors/{z}/{x}/{y}.png' + thunderforestAuth, {
+ var outdoors = L.tileLayer('https://{s}.tile.thunderforest.com/outdoors/{z}/{x}/{y}.png' + thunderforestAuth, {
maxNativeZoom: 18,
maxZoom: maxZoom
});
@@ -39,16 +39,16 @@ BR.Map = {
maxZoom: maxZoom,
subdomains: ['server', 'services'],
attribution: 'World Imagery '
- + '© Esri, sources: '
+ + '© Esri, sources: '
+ 'Esri, DigitalGlobe, Earthstar Geographics, CNES/Airbus DS, GeoEye, USDA FSA, USGS, Getmapping, Aerogrid, IGN, IGP, and the GIS User Community'
});
- var cycling = L.tileLayer('http://tile.waymarkedtrails.org/cycling/{z}/{x}/{y}.png', {
+ var cycling = L.tileLayer('https://tile.waymarkedtrails.org/cycling/{z}/{x}/{y}.png', {
maxNativeZoom: 18,
opacity: 0.7,
maxZoom: maxZoom
});
- var hiking = L.tileLayer('http://tile.waymarkedtrails.org/hiking/{z}/{x}/{y}.png', {
+ var hiking = L.tileLayer('https://tile.waymarkedtrails.org/hiking/{z}/{x}/{y}.png', {
maxNativeZoom: 18,
opacity: 0.7,
maxZoom: maxZoom
@@ -86,7 +86,7 @@ BR.Map = {
minZoom: 1,
maxZoom: 19,
attribution: '© DigitalGlobe ('
- + 'Terms of Use)'
+ + 'Terms of Use)'
});
baseLayers['DigitalGlobe Recent Imagery'] = recent;
}
diff --git a/js/Util.js b/js/Util.js
index 4ff5d8a..87799fd 100644
--- a/js/Util.js
+++ b/js/Util.js
@@ -33,12 +33,12 @@ BR.Util = {
// check if localStorage is available, especially for catching SecurityError
// when cookie settings are blocking access (Chrome, Pale Moon, older Firefox)
- //
+ //
// see also https://github.com/Modernizr/Modernizr/blob/master/feature-detects/storage/localstorage.js
- //
+ //
// https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API/Using_the_Web_Storage_API#Testing_for_support_vs_availability
- // by Mozilla Contributors, with modifications;
- // Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/
+ // by Mozilla Contributors, with modifications;
+ // Any copyright is dedicated to the Public Domain. https://creativecommons.org/publicdomain/zero/1.0/
localStorageAvailable: function() {
try {
var storage = window.localStorage,
diff --git a/js/plugin/Bing.js b/js/plugin/Bing.js
index 981820f..ed076b8 100644
--- a/js/plugin/Bing.js
+++ b/js/plugin/Bing.js
@@ -1,8 +1,8 @@
BR.BingLayer = L.BingLayer.extend({
options: {
maxZoom: 19,
- attribution: 'Bing Maps'
- + ' (TOU)'
+ attribution: 'Bing Maps'
+ + ' (TOU)'
},
initialize: function(key, options) {
@@ -11,7 +11,7 @@ BR.BingLayer = L.BingLayer.extend({
this._logo = L.control({position: 'bottomleft'});
this._logo.onAdd = function (map) {
this._div = L.DomUtil.create('div', 'bing-logo');
- this._div.innerHTML = '
';
+ this._div.innerHTML = '
';
return this._div;
};
},
diff --git a/js/plugin/Routing.js b/js/plugin/Routing.js
index 29559a8..30e39ed 100644
--- a/js/plugin/Routing.js
+++ b/js/plugin/Routing.js
@@ -152,7 +152,7 @@ BR.Routing = L.Routing.extend({
// transparent than with a single layer and the slider is non-linear. The
// inverted formula is used to get the same result as with a single layer.
// SVG simple alpha compositing: Ca' = 1 - (1 - Ea) * (1 - Ca)
- // http://www.w3.org/TR/SVG11/masking.html#SimpleAlphaBlending
+ // https://www.w3.org/TR/SVG11/masking.html#SimpleAlphaBlending
var sourceOpacity = 1 - Math.sqrt(1 - opacity);
this.options.styles.track.opacity = sourceOpacity;
diff --git a/js/plugin/Search.js b/js/plugin/Search.js
index 373ea86..81e2ce1 100644
--- a/js/plugin/Search.js
+++ b/js/plugin/Search.js
@@ -8,7 +8,7 @@ BR.Search = L.Control.Geocoder.extend({
onAdd: function (map) {
map.attributionControl.addAttribution(
- 'search by Nominatim');
+ 'search by Nominatim');
return L.Control.Geocoder.prototype.onAdd.call(this, map);
},
diff --git a/keys.js.template b/keys.js.template
index 2597bd4..a2b4e64 100644
--- a/keys.js.template
+++ b/keys.js.template
@@ -3,13 +3,13 @@
// COPYING: Please get your own API keys from the sites listed below
BR.keys = {
- // Bing maps, http://www.microsoft.com/maps/default.aspx
+ // Bing maps, https://www.microsoft.com/maps/default.aspx
bing: '',
-
+
// DigitalGlobe, https://developer.digitalglobe.com/maps-api/#plans
digitalGlobe: '',
- // Thunderforest, http://thunderforest.com/pricing/
+ // Thunderforest, https://thunderforest.com/pricing/
thunderforest: ''
};