C
C
Cyber_bober2016-08-30 13:43:09
JavaScript
Cyber_bober, 2016-08-30 13:43:09

How to fix error loading Google maps?

Hello, I'm loading the map via callback I'm getting a
&callback=initialize
gray map
2e7beb91cba24797891a768139a6f7dd.png
If you turn on / off the chrome or firebug console, the map is loaded
84aaee42c4564efc8f6dd4af205efa8a.png
. What could be the reason?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Cyber_bober, 2016-08-30
@Cyber_bober

Thanks to everyone who responded, I will explain what could be the problem with this behavior. The map was in a block with display:none; Accordingly, the browser did not render the map. After opening the console, the viewport was changed and the new initialization function was called to redraw the map and it was displayed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question