Steps for creating alternate click handlers
$marker = \PHPGoogleMaps\Overlay\Marker::createFromLocation( $location, array( 'title' => 'title', 'content' => 'content' ) ); $map->addObject( &$marker );
$click_handler = new \PHPGoogleMaps\Event\EventListener( $marker, 'click', 'function(){alert("You clicked " + '. $marker .'.content);}' );
$map->addObject( $click_handler );
$map->disableInfoWindows();