Avoid protocol relative URL to support apps using file protocol

This commit is contained in:
Tim Schaub
2014-03-24 14:57:43 -06:00
parent b613c9cde7
commit 9ce7d6ea45
5 changed files with 18 additions and 4 deletions

View File

@@ -20,7 +20,8 @@ ol.source.MapQuest = function(opt_options) {
var layerConfig = ol.source.MapQuestConfig[options.layer];
var url = '//otile{1-4}-s.mqcdn.com/tiles/1.0.0/' +
var protocol = ol.IS_HTTPS ? 'https:' : 'http:';
var url = protocol + '//otile{1-4}-s.mqcdn.com/tiles/1.0.0/' +
options.layer + '/{z}/{x}/{y}.jpg';
goog.base(this, {