Skip to content

Commit b7e787a

Browse files
committed
demos: use HTTPS for osm.org
1 parent 1813a9f commit b7e787a

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ Add the control to a map instance:
4949

5050
```javascript
5151
var map = L.map('map').setView([0, 0], 2);
52-
L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
53-
attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
52+
L.tileLayer('https://{s}.tile.osm.org/{z}/{x}/{y}.png', {
53+
attribution: '&copy; <a href="https://osm.org/copyright">OpenStreetMap</a> contributors'
5454
}).addTo(map);
5555
L.Control.geocoder().addTo(map);
5656
```

demo-rollup/main.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import L from 'leaflet';
22
import 'leaflet-control-geocoder';
33

44
var map = L.map('map').setView([0, 0], 2);
5-
L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
6-
attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
5+
L.tileLayer('https://{s}.tile.osm.org/{z}/{x}/{y}.png', {
6+
attribution: '&copy; <a href="https://osm.org/copyright">OpenStreetMap</a> contributors'
77
}).addTo(map);
88

99
L.Control.geocoder({

demo-webpack/main.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import L from 'leaflet';
22
import 'leaflet-control-geocoder';
33

44
var map = L.map('map').setView([0, 0], 2);
5-
L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
6-
attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
5+
L.tileLayer('https://{s}.tile.osm.org/{z}/{x}/{y}.png', {
6+
attribution: '&copy; <a href="https://osm.org/copyright">OpenStreetMap</a> contributors'
77
}).addTo(map);
88

99
L.Control.geocoder({

demo/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
}).addTo(map);
5050
var marker;
5151

52-
L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
53-
attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
52+
L.tileLayer('https://{s}.tile.osm.org/{z}/{x}/{y}.png', {
53+
attribution: '&copy; <a href="https://osm.org/copyright">OpenStreetMap</a> contributors'
5454
}).addTo(map);
5555

5656
map.on('click', function(e) {

0 commit comments

Comments
 (0)