Avoid protocol relative URLs

These fail to load in contexts where the "file protocol" is used (e.g. PhantomJS).
This commit is contained in:
Tim Schaub
2015-04-17 09:02:30 -06:00
parent bba326fdf4
commit 0dfc2ce44f
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ var overviewMapControl = new ol.control.OverviewMap({
layers: [
new ol.layer.Tile({
source: new ol.source.OSM({
'url': '//{a-c}.tile.opencyclemap.org/cycle/{z}/{x}/{y}.png'
'url': 'https://{a-c}.tile.opencyclemap.org/cycle/{z}/{x}/{y}.png'
})
})
],