function render($data)
 {
     $this->t->set_template('wrapper_blank.tpl');
     // load body template
     $this->body->set_template('kml_network_link_geolocation.tpl');
     $this->body->set('params', $data['params']);
     $this->body->set('site_name', $data['site_name']);
     $this->body->set('site_domain', $data['site_domain']);
     $this->body->set('site_description', $data['site_description']);
     $this->body->set('period_label', owa_lib::get_period_label($data['params']['period']));
     $this->body->set('date_label', owa_lib::getDateLabel($data['params']['period']));
     $this->body->set('xml', '<?xml version="1.0" encoding="UTF-8"?>');
     $this->body->set('user_name', $data['user_name']);
     $this->body->set('passkey', $data['passkey']);
     $this->_setLinkState();
     header('Content-type: application/vnd.google-earth.kml+xml; charset=UTF-8', true);
     //header('Content-type: application/keyhole', true);
 }