def init_info_window_adapter(self):
adapter = self.adapter<EOL>if adapter:<EOL><INDENT>return  <EOL><DEDENT>adapter = GoogleMap.InfoWindowAdapter()<EOL>adapter.getInfoContents.connect(self.on_info_window_contents_requested)<EOL>adapter.getInfoWindow.connect(self.on_info_window_requested)<EOL>self.map.setInfoWindowAdapter(adapter)<EOL>
Initialize the info window adapter. Should only be done if one of 
        the markers defines a custom view.