Ticket #777: getWarningHTML.2.patch
| File getWarningHTML.2.patch, 1.1 kB (added by euzuro, 1 year ago) |
|---|
-
lib/OpenLayers/Layer/EventPane.js
old new 110 110 /** 111 111 * Method: loadWarningMessage 112 112 * If we can't load the map lib, then display an error message to the 113 * user and tell them where to go for help. 113 * user and tell them where to go for help. 114 * 115 * This function sets up the layout for the warning message. Each 3rd 116 * party layer must implement its own getWarningHTML() function to 117 * provide the actual warning message. 114 118 */ 115 119 loadWarningMessage:function() { 116 120 … … 141 145 this.div.appendChild(div); 142 146 }, 143 147 148 /** 149 * Method: getWarningHTML 150 * To be implemented by subclasses. 151 * 152 * Return: 153 * {String} String with information on why layer is broken, how to get 154 * it working. 155 */ 156 getWarningHTML:function() { 157 //should be implemented by subclasses 158 return ""; 159 }, 144 160 145 161 /** 146 162 * Method: display
