Add message to assertions.

This commit is contained in:
Marc Jansen
2015-03-30 22:50:15 +02:00
parent 2c40d74a15
commit fb9ba22c30
45 changed files with 394 additions and 221 deletions

View File

@@ -20,7 +20,8 @@ goog.require('ol.source.XYZ');
ol.source.MapQuest = function(opt_options) {
var options = goog.isDef(opt_options) ? opt_options : {};
goog.asserts.assert(options.layer in ol.source.MapQuestConfig);
goog.asserts.assert(options.layer in ol.source.MapQuestConfig,
'known layer configured');
var layerConfig = ol.source.MapQuestConfig[options.layer];