<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Santiago y Antonio, les agradezco un monton, he solucionado haciendo lo q me indicaron.<BR>
&nbsp;<BR>
Claro, tenia que hacer un array de markers (marker[i] c/u con&nbsp;su respectivo registro de eventos "click") y asociar este array&nbsp;a mi link (href="js:simularPopup(marker[i])"), es algo lógico no?...tuve un pequeño lapsus brutus q me duro todo el mundial :D<BR>
&nbsp;<BR>
Gustavo<BR>
<BR>&nbsp;<BR>
<HR id=stopSpelling>
Date: Mon, 12 Jul 2010 22:26:02 +0200<BR>Subject: Re: [Spanish] Simular evento mousedown en OL<BR>From: asantiagop@gmail.com<BR>To: spanish@lists.osgeo.org<BR><BR>Hola Gustavo,<BR><BR>Entiendo que al link tu le asocias el marker del que quieres simular el evento. Una vez producido el event la funcion 'markerClick' lo recoge y trata.<BR>Si tu problema es saber que marker ha sido "clickado" entonces fijate en el atributo 'evt.object' (dentro de markerClick) ya que es el marker clickado.<BR><BR>Te recomiendo que utilices algun "debugador" para JavaScript, como firebug o el propio de Chrome, ya que te pueden ayudar muchisimo (amen del propio codigo fuente :p ).<BR><BR>Espero haber ayudado.<BR><BR>
<DIV class=ecxgmail_quote>2010/7/12 Gustavo Jarrín <SPAN dir=ltr>&lt;<A href="mailto:gusjarrin@hotmail.com">gusjarrin@hotmail.com</A>&gt;</SPAN><BR>
<BLOCKQUOTE style="PADDING-LEFT: 1ex" class=ecxgmail_quote>
<DIV>Muchas gracias Santiago. Es exactamente lo que ando buscando. Una última inquietud:<BR><BR>Si tengo varias marcas (marker), cómo le hago para saber de cual marker debo abrir/simular su popup?<BR><BR>Segun el ejemplo del enlace indicado, tal vez pasando como parametro en cada link la "lonlat" a la funcion markerClick pero esta recibe como unico parametro el "event"<BR><BR>Saludos,<BR><BR>Gustavo<BR><BR>POR CIERTO, MUY INETERSANTE EL BLOG DESCARTES!!<BR><BR>
<HR>
From: <A href="mailto:shiguera@ingemoral.es">shiguera@ingemoral.es</A><BR>To: <A href="mailto:spanish@lists.osgeo.org">spanish@lists.osgeo.org</A><BR>Subject: Re: [Spanish] Simular evento mousedown en OL<BR>Date: Mon, 12 Jul 2010 21:11:10 +0200<BR><BR>
<DIV><FONT size=3 face=Calibri>A mi me ha funcionado haciendo la llamada de la siguiente forma:</FONT></DIV>
<DIV><FONT size=2></FONT><FONT size=2>&nbsp;</FONT><BR><FONT size=2>marker.events.triggerEvent(</FONT><FONT color=#2a00ff size=2><FONT color=#2a00ff size=2>'click'</FONT></FONT><FONT size=2>,marker.events);</FONT><BR>&nbsp;<BR><FONT size=3 face=Calibri>Donde marker es un marcador en el que he registrado un evento 'click' con la linea:</FONT><BR><FONT size=2></FONT><FONT size=2>&nbsp;</FONT><BR><FONT size=2>marker.events.register(</FONT><FONT color=#2a00ff size=2><FONT color=#2a00ff size=2>'click'</FONT></FONT><FONT size=2>, marker, markerClick);</FONT><BR><FONT size=2></FONT>&nbsp;<BR><FONT size=2><FONT size=3 face=Calibri>y en esta última markerClick(ev) es la función controladora del evento click.</FONT></FONT><BR><FONT size=2><FONT size=3 face=Calibri></FONT></FONT>&nbsp;<BR><FONT size=3 face=Calibri>El ejemplo completo lo puedes ver en <A title="http://ingemoral.es/pages/testpopups.html&#13;&#10;CTRL + clic para seguir el vínculo" href="http://ingemoral.es/pages/testpopups.html">http://ingemoral.es/pages/testpopups.html</A></FONT><BR><FONT size=3 face=Calibri></FONT>&nbsp;<BR><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><BR><FONT size=3 face=Calibri></FONT>&nbsp;<BR><FONT size=3 face=Calibri><A href="http://ingemoral.es/wordpress">http://ingemoral.es/wordpress</A></FONT><BR><FONT size=3 face=Calibri></FONT>&nbsp;<BR><FONT size=3 face=Calibri>Fdo.: Santiago&nbsp;Higuera</FONT><BR>&nbsp;<BR><FONT size=3 face=Calibri></FONT>&nbsp;<BR><FONT size=2><FONT size=3 face=Calibri></FONT>&nbsp;</FONT><BR><FONT size=2></FONT><FONT size=2><FONT size=3 face=Calibri></FONT>&nbsp;</FONT><BR><FONT size=2></FONT></DIV>
<DIV style="FONT: 10pt Tahoma">
<DIV><BR></DIV>
<DIV>
<DIV><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">Learn more!</A> <BR>
<HR>
<BR>_______________________________________________<BR>Spanish mailing list<BR><A href="mailto:Spanish@lists.osgeo.org">Spanish@lists.osgeo.org</A><BR><A href="http://lists.osgeo.org/mailman/listinfo/spanish">http://lists.osgeo.org/mailman/listinfo/spanish</A><BR>
<DIV class=ecxhm><BR>
<HR>
Connect to the next generation of MSN Messenger&nbsp; <A href="http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&amp;source=wlmailtagline">Get it now! </A></DIV></DIV><BR>_______________________________________________<BR>Spanish mailing list<BR><A href="mailto:Spanish@lists.osgeo.org">Spanish@lists.osgeo.org</A><BR><A href="http://lists.osgeo.org/mailman/listinfo/spanish">http://lists.osgeo.org/mailman/listinfo/spanish</A><BR><BR></BLOCKQUOTE></DIV><BR><BR clear=all><BR>-- <BR>|-----------------------------------------------------------<BR>| <A href="http://www.astracanada.net/">http://www.astracanada.net</A><BR>| <A href="http://acuriousanimal.orggeo.net/">http://acuriousanimal.orggeo.net</A><BR>|-----------------------------------------------------------<BR>| <A href="http://acuriousanimal.blogspot.com/">http://acuriousanimal.blogspot.com</A><BR>| <A href="http://theballoonproject.blogspot.com/">http://theballoonproject.blogspot.com</A><BR>|-----------------------------------------------------------<BR>|&nbsp; _&nbsp; &nbsp; &nbsp; __&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <BR>| /_|&nbsp; &nbsp; (&nbsp; _&nbsp; _/'_ _&nbsp;&nbsp; <BR>|(&nbsp; |.&nbsp; __)(//)//(/(/() <BR>|&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; _/&nbsp; &nbsp; <BR>|-----------------------------------------------------------<BR>                                               <br /><hr />Discover the new Windows Vista <a href='http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE' target='_new'>Learn more!</a></body>
</html>