Implement event triggers for map component