# Opening an Infobubble on a Mouse Click

Open an infobubble when a marker is clicked

This example displays a map with two markers showing the position of Liverpool and Manchester City football clubs. Clicking on a marker opens an infobubble which holds HTML content related to the marker.

### Code

Infobubble opens on `tap` event, event delegation is used to add event listener to the group that holds markers. `setData/getData` methods on the map objects are used to bind custom data.