code: def _kml_add_camera_triggers(kml, ulog, camera_trigger_topic_name, altitude_offset):
      
  
      data = ulog.data_list
      topic_instance = 0
  
      cur_dataset = [elem for elem in data
                     if elem.name == camera_trigger_topic_name and elem.multi_id == topic_instance]
      if len(cur_dataset) > 0:
          cur_dataset = cur_dataset[0]
  
          pos_lon = cur_dataset.data['lon']
          pos_lat = cur_dataset.data['lat']
          pos_alt = cur_dataset.data['alt']
          sequence = cur_dataset.data['seq']
  
          for i in range(len(pos_lon)):
              pnt = kml.newpoint(name='Camera Trigger '+str(sequence[i]))
              pnt.coords = [(pos_lon[i], pos_lat[i], pos_alt[i] + altitude_offset)]
docs: Add camera trigger points to the map