Answer the question
In order to leave comments, you need to log in
How to upload a map to a hidden block?
When the block I need opens, the map is initiated incorrectly.
But if you write in the console,
then it will be displayed. Also, if the block is initially open, then the map also loads normally.
google.maps.event.trigger(map, 'resize');
Answer the question
In order to leave comments, you need to log in
js can't initialize hidden block. Therefore, you need to use hidden instead of display: none, or hide the block in some other way.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question