If your map includes popups, users will typically open them by clicking on each corresponding marker. Sometimes, however, you'll want something outside of the map to open a popup.
The snippet below includes three parts:
- A dynamic map, containing markers for all entries.
- A list of entries. Clicking on each title will open its corresponding popup on the map.
closePopup methods are available in JS, Twig, and PHP.
For more information, see the
closePopup universal methods...