Using an event handler for multiple markers Using an event handler for multiple markers The following code example creates an array to hold multiple markers. An info window opens when a marker is clicked.