O
O
Oleg2017-10-11 10:09:29
JavaScript
Oleg, 2017-10-11 10:09:29

Loading Google Maps on demand?

Tell me, where can I peep an example of loading a Google map on request?
I have a static map on my site, I want to load an interactive map after clicking on the button (do not load before clicking). Please advise how this can be implemented.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
eSelf, 2017-10-11
@ovvivus

For example
jsfiddle.net/dwinkelman/gabkawys

P
Peter, 2017-10-11
@petermzg

Loading on demand is no different from static loading. As soon as the browser sees that you have placed a new piece of HTML code on the page, it will immediately execute it.
It remains for you to write the logic for placing this piece of code on a button click.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question