diff --git a/lib/OpenLayers/Layer/EventPane.js b/lib/OpenLayers/Layer/EventPane.js index 5ab6d48790..9641b95368 100644 --- a/lib/OpenLayers/Layer/EventPane.js +++ b/lib/OpenLayers/Layer/EventPane.js @@ -110,7 +110,11 @@ OpenLayers.Layer.EventPane.prototype = /** * Method: loadWarningMessage * If we can't load the map lib, then display an error message to the - * user and tell them where to go for help. + * user and tell them where to go for help. + * + * This function sets up the layout for the warning message. Each 3rd + * party layer must implement its own getWarningHTML() function to + * provide the actual warning message. */ loadWarningMessage:function() { @@ -141,6 +145,18 @@ OpenLayers.Layer.EventPane.prototype = this.div.appendChild(div); }, + /** + * Method: getWarningHTML + * To be implemented by subclasses. + * + * Return: + * {String} String with information on why layer is broken, how to get + * it working. + */ + getWarningHTML:function() { + //should be implemented by subclasses + return ""; + }, /** * Method: display