Change OpenStreetMap links to HTTPS (#8009)

* Change OpenStreetMap links to HTTPS

* Change OpenStreetMap links to HTTPS

* Change OpenStreetMap links to HTTPS
This commit is contained in:
danieldegroot2
2022-02-18 05:42:21 +01:00
committed by GitHub
parent 4a5f192094
commit ace6be6427
3 changed files with 5 additions and 5 deletions

4
FAQ.md
View File

@ -13,7 +13,7 @@ This is a collection of answers to the most frequently asked questions about Lea
#### The map is wrong in my neighborhood, could you fix it? #### The map is wrong in my neighborhood, could you fix it?
Nope, but you can. Nope, but you can.
The map you see on Leaflet examples is based on [OpenStreetMap](http://openstreetmap.org), The map you see on Leaflet examples is based on [OpenStreetMap](https://www.openstreetmap.org/),
a free editable map of the world. a free editable map of the world.
Signing up and editing the map there is easy, Signing up and editing the map there is easy,
and the changes will be reflected on the map in a few minutes. and the changes will be reflected on the map in a few minutes.
@ -22,7 +22,7 @@ and the changes will be reflected on the map in a few minutes.
Leaflet is provider-agnostic, meaning you can use any map provider as long as you conform to its terms of use. Leaflet is provider-agnostic, meaning you can use any map provider as long as you conform to its terms of use.
You can roll your own tiles as well. You can roll your own tiles as well.
[OpenStreetMap](http://openstreetmap.org) is the most popular data source among different tile providers, [OpenStreetMap](https://www.openstreetmap.org/) is the most popular data source among different tile providers,
but there are providers that use other sources. but there are providers that use other sources.
Check out [this example](http://leaflet-extras.github.io/leaflet-providers/preview/) Check out [this example](http://leaflet-extras.github.io/leaflet-providers/preview/)

View File

@ -156,7 +156,7 @@
resetCounter(); resetCounter();
var positron = L.tileLayer('http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png', { var positron = L.tileLayer('http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png', {
attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, &copy; <a href="http://cartodb.com/attributions">CartoDB</a>' attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, &copy; <a href="http://cartodb.com/attributions">CartoDB</a>'
}); });
var grid = L.gridLayer({ var grid = L.gridLayer({

View File

@ -15,7 +15,7 @@
cssFile: 'https://unpkg.com/leaflet/dist/leaflet.css', cssFile: 'https://unpkg.com/leaflet/dist/leaflet.css',
css: 'body {\n\tmargin: 0;\n}\nhtml, body, #leaflet {\n\theight: 100%\n}', css: 'body {\n\tmargin: 0;\n}\nhtml, body, #leaflet {\n\theight: 100%\n}',
jsFile: 'https://unpkg.com/leaflet/dist/leaflet-src.js', jsFile: 'https://unpkg.com/leaflet/dist/leaflet-src.js',
js: "var map = new L.Map('leaflet', {\n\tlayers: [\n\t\tnew L.TileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {\n\t\t\t'attribution': 'Map data © <a href=\"http://openstreetmap.org\">OpenStreetMap</a> contributors'\n\t\t})\n\t],\n\tcenter: [0, 0],\n\tzoom: 0\n});" js: "var map = new L.Map('leaflet', {\n\tlayers: [\n\t\tnew L.TileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {\n\t\t\t'attribution': 'Map data © <a href=\"https://openstreetmap.org\">OpenStreetMap</a> contributors'\n\t\t})\n\t],\n\tcenter: [0, 0],\n\tzoom: 0\n});"
}; };
var hash = location.hash.substr(1); var hash = location.hash.substr(1);