I have a OpenLayers map with a few KML layers being added dynamically on top of it. On page load I see only a part of the map in top left corner of designated html div. I can't figure out the source of this issue. Neither of projection, zoom level seems or initial position is affecting the load.
It is strange that when I open the chrome dev-tools (or Inspector window for Firefox), map behaves exactly as expected and complete map is displayed.

Note: above issue is only found with base layer from Google such as "Google Streets" while with base layer such as OSM it works fine.

Browsers tested on:

  • Chrome Version 30.0.1599.101 m
  • Firefox 23.0.1
  • Firefox 24.0

closed as unclear what you're asking by Devdatta Tengshe, Fezter, BradHards, Paul, PolyGeo Oct 28 '13 at 8:07

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • This is definitely a code issue. You need to share some of your code which shows this behavior. – Devdatta Tengshe Oct 28 '13 at 3:04