Use HTTPS where available

This commit is contained in:
Tim Schaub
2015-04-17 09:08:49 -06:00
parent 0dfc2ce44f
commit b22f3c6829
4 changed files with 7 additions and 16 deletions

View File

@@ -1,7 +1,6 @@
goog.provide('ol.source.MapQuest');
goog.require('goog.asserts');
goog.require('ol');
goog.require('ol.Attribution');
goog.require('ol.source.OSM');
goog.require('ol.source.XYZ');
@@ -32,9 +31,8 @@ ol.source.MapQuest = function(opt_options) {
*/
this.layer_ = options.layer;
var protocol = ol.IS_HTTPS ? 'https:' : 'http:';
var url = goog.isDef(options.url) ? options.url :
protocol + '//otile{1-4}-s.mqcdn.com/tiles/1.0.0/' +
'https://otile{1-4}-s.mqcdn.com/tiles/1.0.0/' +
this.layer_ + '/{z}/{x}/{y}.jpg';
goog.base(this, {