- Timestamp:
- 07/09/10 11:36:42 (23 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
contribs/mapfish-api/trunk/MapFishApi/js/mapfish_api.js
r3588 r3589 179 179 this.debug = Boolean(this.baseConfig.debug); 180 180 this.isMainApp = Boolean(this.baseConfig.isMainApp); 181 if (typeof this.baseConfig.activatePopup != 'undefined') {181 if (typeof this.baseConfig.activatePopup != 'undefined') { 182 182 this.activatePopup = this.baseConfig.activatePopup; 183 } ;183 } 184 184 this.layerTreeNodes = []; 185 185 … … 189 189 if (lang) { 190 190 OpenLayers.Lang.setCode(lang); 191 } 192 193 if (!this.debug) { 194 // keep missing tiles transparent: 195 OpenLayers.Util.onImageLoadError = function() { 196 this.style.display = "none"; 197 // set the img src because webkit don't take the display into 198 // account and display a "broken image" icon. 199 this.src = Ext.BLANK_IMAGE_URL; 200 }; 191 201 } 192 202 }, … … 454 464 }); 455 465 } 456 466 457 467 this.tree = new mapfish.widgets.LayerTree(options); 458 468 459 469 if (config.layers) { 460 470 var checkedNodes = this.tree.getChecked(); … … 468 478 } 469 479 } 470 480 471 481 return this.tree; 472 482 }, … … 1130 1140 feature: e.feature 1131 1141 }); 1132 }; 1142 } 1143 ; 1133 1144 document.body.style.cursor = 'default'; 1134 1145 },
