Use https for default style tiles
This commit is contained in:
parent
7364c8586e
commit
ef3c9515cc
1 changed files with 4 additions and 4 deletions
8
vendor/assets/openlayers/OpenStreetMap.js
vendored
8
vendor/assets/openlayers/OpenStreetMap.js
vendored
|
@ -14,13 +14,13 @@ OpenLayers.Layer.OSM.Mapnik = OpenLayers.Class(OpenLayers.Layer.OSM, {
|
||||||
*/
|
*/
|
||||||
initialize: function(name, options) {
|
initialize: function(name, options) {
|
||||||
var url = [
|
var url = [
|
||||||
"http://a.tile.openstreetmap.org/${z}/${x}/${y}.png",
|
"https://a.tile.openstreetmap.org/${z}/${x}/${y}.png",
|
||||||
"http://b.tile.openstreetmap.org/${z}/${x}/${y}.png",
|
"https://b.tile.openstreetmap.org/${z}/${x}/${y}.png",
|
||||||
"http://c.tile.openstreetmap.org/${z}/${x}/${y}.png"
|
"https://c.tile.openstreetmap.org/${z}/${x}/${y}.png"
|
||||||
];
|
];
|
||||||
options = OpenLayers.Util.extend({
|
options = OpenLayers.Util.extend({
|
||||||
numZoomLevels: 20,
|
numZoomLevels: 20,
|
||||||
attribution: "© <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a> contributors",
|
attribution: "© <a href='https://www.openstreetmap.org/copyright'>OpenStreetMap</a> contributors",
|
||||||
buffer: 0,
|
buffer: 0,
|
||||||
transitionEffect: "resize"
|
transitionEffect: "resize"
|
||||||
}, options);
|
}, options);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue