Make the slippy map work properly on IE7 at last!
This commit is contained in:
parent
b92e1b0584
commit
37e74fc5cb
1 changed files with 4 additions and 6 deletions
|
@ -27,7 +27,7 @@
|
|||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
var ie6 = ! ( window.addEventListener || window.XMLHttpRequest );
|
||||
var ie = navigator.appName.indexOf("Microsoft Internet Explorer") != -1;
|
||||
var map;
|
||||
|
||||
function init(){
|
||||
|
@ -56,7 +56,7 @@
|
|||
<% end %>
|
||||
|
||||
document.getElementById('map_OpenLayers_ViewPort').style.position = 'absolute';
|
||||
if ( ie6 ) {
|
||||
if ( ie ) {
|
||||
handleResize();
|
||||
}
|
||||
}
|
||||
|
@ -124,12 +124,10 @@
|
|||
}
|
||||
map.updateSize();
|
||||
el.style.display = 'none';
|
||||
setTimeout( function() {
|
||||
el.style.display = '';
|
||||
}, 200 );
|
||||
setTimeout( function() { el.style.display = ''; }, 200 );
|
||||
}
|
||||
|
||||
if ( ie6 ) {
|
||||
if ( ie ) {
|
||||
window.onresize = handleResize;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue