]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/index.rhtml
Resize the map div when the page load is complete (via onload) in case the
[rails.git] / app / views / site / index.rhtml
index 97eeda5a88ca6171a327e172ddbf05a688b017b3..edd755ddb2bbf857f0558020a21d6175c177cf28 100644 (file)
@@ -177,9 +177,10 @@ by the OpenStreetMap project and it's contributors.
 
     resizeMap();
   }
 
     resizeMap();
   }
-
-  window.onresize = handleResize;
   
   mapInit();
   
   mapInit();
+
+  window.onload = handleResize;
+  window.onresize = handleResize;
 // -->
 </script>
 // -->
 </script>