<p>As of Google Maps <strong>4.0.1</strong>, there is a new <a href="https://plugins.doublesecretagency.com/google-maps/dynamic-maps/javascript-methods/#getinfowindow-infowindowid" rel="nofollow noreferrer"><code>getInfoWindow</code></a> method in JavaScript. This makes it easy to retrieve and manipulate existing info windows.</p>
<p>Additionally, I've written a guide for <a href="https://plugins.doublesecretagency.com/google-maps/guides/opening-info-windows/" rel="nofollow noreferrer">Opening Info Windows...</a></p>
<p>Hope that helps! :)</p>

CC BY-SA 4.0
2021-02-27T06:18:37.277Z
2021-02-27T06:32:07.573Z
2021-02-27T06:32:07.573Z
Lindsey D
<p>I'm migrating Smart Map over to the Google Maps plugin, and I want to open a popup on button click. But it seems there is no JS method available to open an info window.</p>
<p>Here's how it was done in Smart Map:</p>
<ul>
<li><a href="https://craftcms.stackexchange.com/questions/27410/trigger-info-window-in-smart-map-using-external-navigation">Trigger Info window in Smart Map using external navigation</a></li>
</ul>
<p>How can I do the same thing with the Google Maps plugin?</p>

CC BY-SA 4.0
2021-02-25T19:25:48.860Z
I might need to add a small method to the new plugin. Let me take a closer look and get back to you.
Lindsey D
<templating><plugin-smartmap><plugin-googlemaps>
Google Maps plugin - How to trigger an info window
# Google Maps plugin - How to trigger an info window

(Asked by: username_0 on 2021-02-25)

I'm migrating Smart Map over to the Google Maps plugin, and I want to open a popup on button click. But it seems there is no JS method available to open an info window.

Here's how it was done in Smart Map:

* [Trigger Info window in Smart Map using external navigation](https://craftcms.stackexchange.com/questions/27410/trigger-info-window-in-smart-map-using-external-navigation)

How can I do the same thing with the Google Maps plugin?

**Tags:** templating, plugin-smartmap, plugin-googlemaps
> **Comments:**
> **username_1**: I might need to add a small method to the new plugin. Let me take a closer look and get back to you.  

---

## 1 answers

### Answer by username_1 on 2021-02-27. Score: 2 | Accepted answer

As of Google Maps **4.0.1**, there is a new [`getInfoWindow`](https://plugins.doublesecretagency.com/google-maps/dynamic-maps/javascript-methods/#getinfowindow-infowindowid) method in JavaScript. This makes it easy to retrieve and manipulate existing info windows.

Additionally, I've written a guide for [Opening Info Windows...](https://plugins.doublesecretagency.com/google-maps/guides/opening-info-windows/)

Hope that helps! :)


---

