Hi @sabinevi,
Sounds like you have done a nice job so far!
In terms of safely overriding the output of the generate_markers() method you can do so via the tribe_events_ajax_response hook. Simple example:
add_filter( 'tribe_events_ajax_response', function( $data ) {
if ( empty( $data['markers'] ) ) {
return $data;
}
foreach ( $data['markers'] as &$marker ) {
// Change the following line to modify the markers as needed
$marker = array_map( 'strtoupper', $marker );
}
return $data;
} );
That’s incomplete and untested, but should give the general idea. Does that help with your objectives?