M
M
Maxim Gerasimenko2020-05-09 14:43:55
Web development
Maxim Gerasimenko, 2020-05-09 14:43:55

How to make a google map popup on click?

Make a clickable google map. But what would initially part of the map be visible. An example is on this site.
5eb696e6eb185228102225.png
Initially, only the top of the map and the Look at map button are visible. When you click on Look at map, the map is displayed in full.
Tell me how to implement this? I thought to use a drop-down div block on click, but I need a part of the block (map) to be visible initially.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton R., 2020-05-09
@maxg5

Through js, change the height of the block in css, or rather, apply a new css class on click.
https://stackoverflow.com/questions/14319274/chang...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question