<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type>
<STYLE><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></STYLE>

<META name=GENERATOR content="MSHTML 8.00.6001.18904"></HEAD>
<BODY style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px" 
id=MailContainerBody class=hmmessage leftMargin=0 topMargin=0 
CanvasTabStop="true" name="Compose message area">
<DIV><FONT size=3 face=Calibri>A mi me ha funcionado haciendo la llamada de la 
siguiente forma:</FONT></DIV>
<DIV><FONT size=2>
<P>&nbsp;</P>
<P>marker.events.triggerEvent(</FONT><FONT color=#2a00ff size=2><FONT 
color=#2a00ff size=2>'click'</FONT></FONT><FONT 
size=2>,marker.events);</FONT></P>
<P>&nbsp;</P>
<P><FONT size=3 face=Calibri>Donde marker es un marcador en el que he registrado 
un evento 'click' con la linea:</FONT></P><FONT size=2>
<P>&nbsp;</P>
<P>marker.events.register(</FONT><FONT color=#2a00ff size=2><FONT color=#2a00ff 
size=2>'click'</FONT></FONT><FONT size=2>, marker, markerClick);</FONT></P>
<P><FONT size=2></FONT>&nbsp;</P>
<P><FONT size=2><FONT size=3 face=Calibri>y en esta última markerClick(ev) es la 
función controladora del evento click.</FONT></FONT></P>
<P><FONT size=2><FONT size=3 face=Calibri></FONT></FONT>&nbsp;</P>
<P><FONT size=3 face=Calibri>El ejemplo completo lo puedes ver en <A 
title="http://ingemoral.es/pages/testpopups.html&#10;CTRL + clic para seguir el vínculo" 
href="http://ingemoral.es/pages/testpopups.html">http://ingemoral.es/pages/testpopups.html</A></FONT></P>
<P><FONT size=3 face=Calibri></FONT>&nbsp;</P>
<P><FONT size=3 face=Calibri>En el Blog Descartes estamos publicando una serie 
de artículos de programación con OpenLayers que a lo mejor te 
interesan.</FONT></P>
<P><FONT size=3 face=Calibri></FONT>&nbsp;</P>
<P><FONT size=3 face=Calibri><A 
href="http://ingemoral.es/wordpress">http://ingemoral.es/wordpress</A></FONT></P>
<P><FONT size=3 face=Calibri></FONT>&nbsp;</P>
<P><FONT size=3 face=Calibri>Fdo.: Santiago&nbsp;Higuera</FONT></P>
<P>&nbsp;</P>
<P><FONT size=3 face=Calibri></FONT>&nbsp;</P>
<P><FONT size=2><FONT size=3 face=Calibri></FONT>&nbsp;</P></FONT>
<P><FONT size=2><FONT size=3 face=Calibri></FONT>&nbsp;</P></FONT></DIV>
<DIV style="FONT: 10pt Tahoma">
<DIV><BR></DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=gusjarrin@hotmail.com 
href="mailto:gusjarrin@hotmail.com">Gustavo Jarrín</A> </DIV>
<DIV><B>Sent:</B> Monday, July 12, 2010 8:16 PM</DIV>
<DIV><B>To:</B> <A title=spanish@lists.osgeo.org 
href="mailto:spanish@lists.osgeo.org">spanish@lists.osgeo.org</A> </DIV>
<DIV><B>Subject:</B> [Spanish] Simular evento mousedown en OL</DIV></DIV></DIV>
<DIV><BR></DIV>Saludos amigos,<BR><BR>Espero me puedan ayudar. Tengo una app con 
Openlayers, intento simular el evento "mousedown" (click sobre una marca en el 
mapa) desde un link. Es decir, que al hacer click en un enlace de texto simule 
el evento para abrir la ventana popup de una marca en particular.<BR><BR>He 
buscado en la web y he encontrado algo como este ejemplo: <BR><BR>En 
html:<BR>.<BR>.<BR>&lt;a href="#" onClick="simularPopup();"&gt;Simular 
popup&lt;/a&gt;<BR>.<BR>.<BR>En mi javascript:<BR>.<BR>function 
simularPopup()<BR>{<BR>&nbsp;markers.marker[0].events.triggerEvent('mousedown', 
{}); //"markers" es mi layer de iconos en el mapa, "marker" el nombre de mis 
marcas.<BR>}<BR>.<BR>.<BR>Pero los browsers no reconocen "marker[x]" o 
simplemente no hacen nada. <BR><BR>El evento "mousedown" ya esta registrado 
(...marker.events.register("mousedown", feature, markerClick);...) y funciona 
bien.<BR><BR>Agradecería cualquier sugerencia.<BR><BR>Gustavo 
Jarrín<BR><BR><BR><BR>
<HR>
Discover the new Windows Vista <A 
href="http://search.msn.com/results.aspx?q=windows+vista&amp;mkt=en-US&amp;form=QBRE" 
target=_new>Learn more!</A> 
<P>
<HR>

<P></P>_______________________________________________<BR>Spanish mailing 
list<BR>Spanish@lists.osgeo.org<BR>http://lists.osgeo.org/mailman/listinfo/spanish<BR></BODY></HTML>