¿Cómo activo una función + ventana emergente cuando hago clic fuera de un mapa en Openlayers?

Estoy volviendo a analizar el KML que ya se ha cargado en el mapa de forma similar al ejemplo aquí:http://openlayers.org/dev/examples/sundials.html y convertirlo en una lista en la que se puede hacer clic que centrará el mapa en el punto en el que se hizo clic y mostrará la ventana emergente.

Esto fue realmente fácil de hacer en Google Maps, pero no puedo encontrar ningún ejemplo similar de Openlayers. ¿Hay alguna manera más fácil de hacer esto? Algo incorporado que me estoy perdiendo?

HTML:

<ul id="locationTable">
</ul>

JS:

 htmlRows = "";
 for(var feat in features) {
     // Build details table 
     featId = features[feat].id; // determine the feature ID     
     title = jQuery(f).filter('[name=TITLE]').text();

     htmlRow = "<li><a href="javascript:selectFeature('"+featId+"');\">"+title+"</a></li>";
     htmlRows = htmlRows + htmlRow;
 }
 jQuery('#locationTable').append(htmlRows);

Y luego para la función selectFeature:

function selectFeature(fid) {
    for(var i = 0; i<kml.features.length;++i) {
                     if (kml.features[i].id == fid)
                         {         
                             selected = new OpenLayers.Control.SelectFeature(kml.features[i]); 
                             selected.clickFeature(); // make call to simulate Click event of feature
                             break;             
                         }
            }

        }

Respuestas a la pregunta(1)

Su respuesta a la pregunta