Skip to content

Commit

Permalink
Change OpenStreetMap links to HTTPS (Leaflet#8009)
Browse files Browse the repository at this point in the history
* Change OpenStreetMap links to HTTPS

* Change OpenStreetMap links to HTTPS

* Change OpenStreetMap links to HTTPS
  • Loading branch information
danieldegroot2 authored Feb 18, 2022
1 parent 4a5f192 commit ace6be6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -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?

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.
Signing up and editing the map there is easy,
and the changes will be reflected on the map in a few minutes.
Expand All @@ -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.
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.

Check out [this example](http://leaflet-extras.github.io/leaflet-providers/preview/)
Expand Down
2 changes: 1 addition & 1 deletion debug/map/tile-debug.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
resetCounter();

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({
Expand Down
4 changes: 2 additions & 2 deletions docs/edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
cssFile: 'https://unpkg.com/leaflet/dist/leaflet.css',
css: 'body {\n\tmargin: 0;\n}\nhtml, body, #leaflet {\n\theight: 100%\n}',
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);
Expand Down Expand Up @@ -107,4 +107,4 @@

</script>
</body>
</html>
</html>

0 comments on commit ace6be6

Please sign in to comment.