Egmap Closeclick Event

Hi Guys,

my topic concerns the EGMap extension. I want to add an event listener for closing the infowindow of a marker.

The trigger is "closeclick" but it is not working.


$info_window = new EGMapInfoWindow($info);

$info_window->addEvent(new EGMapEvent('closeclick', 'jQuery(function($) {$(".Box_active").removeClass("Box_active");});'));

Does anybody know what i am doing wrong?

Best regards

Martin