Add "url" option to ol.source.MapQuest
This commit is contained in:
1 parent
9e7e5efd27
commit
df2d71ef83
2 files changed
+12
-2
No files matched your search
@@ -25,7 +25,8 @@ ol.source.MapQuest = function(opt_options) {
|
||||
var layerConfig = ol.source.MapQuestConfig[options.layer];
|
||||
|
||||
var protocol = ol.IS_HTTPS ? 'https:' : 'http:';
|
||||
var url = protocol + '//otile{1-4}-s.mqcdn.com/tiles/1.0.0/' +
|
||||
var url = goog.isDef(options.url) ? options.url :
|
||||
protocol + '//otile{1-4}-s.mqcdn.com/tiles/1.0.0/' +
|
||||
options.layer + '/{z}/{x}/{y}.jpg';
|
||||
|
||||
goog.base(this, {
|
||||
|
||||
Reference in new issue
Block a user