Avoid protocol relative URL to support apps using file protocol
This commit is contained in:
@@ -93,8 +93,9 @@ ol.source.Stamen = function(options) {
|
||||
goog.asserts.assert(options.layer in ol.source.StamenLayerConfig);
|
||||
var layerConfig = ol.source.StamenLayerConfig[options.layer];
|
||||
|
||||
var protocol = ol.IS_HTTPS ? 'https:' : 'http:';
|
||||
var url = goog.isDef(options.url) ? options.url :
|
||||
'//{a-d}.tile.stamen.com/' + options.layer + '/{z}/{x}/{y}.' +
|
||||
protocol + '//{a-d}.tile.stamen.com/' + options.layer + '/{z}/{x}/{y}.' +
|
||||
layerConfig.extension;
|
||||
|
||||
goog.base(this, {
|
||||
|
||||
Reference in New Issue
Block a user