[OpenLayers-Users] OL-2.6 and IE7 problems

David R Robison drrobison at openroadsconsulting.com
Thu Jun 12 10:51:53 EDT 2008


IE7 is reporting some problems when leaving a page with OL-2.6. I have 
been anle to fix these problems by placing try/catch around the 
offending code. Here is a list of what I changed:

Control/PanZoomBar.js: destroy function - place a try/catch around the 
two removeChild calls.
Map.js: removeLayer function - place a try/catch around the two 
removeChild calls.
Map.js: destroy function - place a try/catch around 
this.div.removeChild(this.viewPortDiv);
Events.js: stopObservingElement function - added after first statement: 
if (!element) return;

David

-- 

David R Robison
Open Roads Consulting, Inc.
708 S. Battlefield Blvd., Chesapeake, VA 23322
phone: (757) 546-3401
e-mail: drrobison at openroadsconsulting.com
web: http://openroadsconsulting.com
blog: http://therobe.blogspot.com
book: http://www.xulonpress.com/book_detail.php?id=2579

 





More information about the Users mailing list