[client/map] Bugfix: Request OpenStreet maps over HTTPS by default

This commit is contained in:
Starbeamrainbowlabs 2019-01-20 23:41:45 +00:00
parent b9cbea5c96
commit 218e498c4a
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -24,7 +24,7 @@ class MapManager {
this.map.setView(Config.default_location, Config.default_zoom); this.map.setView(Config.default_location, Config.default_zoom);
// Add the OpenStreetMap tile layer // Add the OpenStreetMap tile layer
this.layer_openstreet = L.tileLayer("http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", { this.layer_openstreet = L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", {
id: "openstreetmap", id: "openstreetmap",
maxZoom: 19, maxZoom: 19,
attribution: "&copy; <a href='https://www.openstreetmap.org/copyright'>OpenStreetMap contributors</a>" attribution: "&copy; <a href='https://www.openstreetmap.org/copyright'>OpenStreetMap contributors</a>"