<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16525" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=750042518-27092007></SPAN><FONT face=Arial><FONT 
size=2>Hi,</FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2></FONT></FONT>&nbsp;</DIV>
<DIV><FONT><FONT face=Arial><FONT size=2>I<SPAN class=750042518-27092007> am 
newbie using Open Layers and I saw this sandboxed code in the 
archives:</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT face=Arial><FONT size=2><SPAN 
class=750042518-27092007></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><FONT><FONT face=Arial><FONT size=2><SPAN class=750042518-27092007><A 
href="http://openlayers.org/pipermail/users/2007-August/002580.html">http://openlayers.org/pipermail/users/2007-August/002580.html</A></SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT face=Arial><FONT size=2><SPAN 
class=750042518-27092007></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><FONT><FONT face=Arial><FONT size=2><SPAN class=750042518-27092007>It was 
what I was looking for!.</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT face=Arial><FONT size=2><SPAN 
class=750042518-27092007></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><FONT><FONT face=Arial><FONT size=2><SPAN class=750042518-27092007>I have 
checked it out and I am trying to show a the google style popup when a marker is 
clicked:</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT face=Arial><FONT size=2><SPAN 
class=750042518-27092007></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><FONT><FONT face=Arial><FONT size=2><SPAN 
class=750042518-27092007><EM>marker1.events.register("mousedown", marker1, 
function(evt) {<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;text = 
"hello"<BR>&nbsp;&nbsp;&nbsp;&nbsp;popup = new 
OpenLayers.Popup("olPopup",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;new OpenLayers.LonLat(-4.549683, 
36.737052),<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;new 
OpenLayers.Size(200,200),<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;texte,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;true);&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;markers.map.addPopup(popup);</EM></SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT face=Arial><FONT size=2><SPAN 
class=750042518-27092007><EM>&nbsp;});&nbsp;&nbsp;<BR>&nbsp;&nbsp;markers.addMarker(marker1);</EM></SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT face=Arial><FONT size=2><SPAN 
class=750042518-27092007><EM></EM></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><FONT><FONT face=Arial><FONT size=2><SPAN 
class=750042518-27092007></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><FONT><FONT face=Arial><FONT size=2><SPAN class=750042518-27092007>The 
google popup&nbsp;works fine except:</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT face=Arial><FONT size=2><SPAN 
class=750042518-27092007></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<OL>
  <LI><FONT><FONT face=Arial><FONT size=2><SPAN class=750042518-27092007>The 
  position of the popup is not above the 
marker.</SPAN></FONT></FONT></FONT></LI>
  <LI><FONT><FONT face=Arial><FONT size=2><SPAN class=750042518-27092007>When 
  the popup it is outside the map it doesn´t 
  pan.</SPAN></FONT></FONT></FONT></LI></OL>
<DIV><SPAN class=750042518-27092007></SPAN><FONT face=Arial><FONT size=2>I<SPAN 
class=750042518-27092007> have tried the example from <A 
href="http://svn.openlayers.org/sandbox/CloudAmber/Trunk/">http://svn.openlayers.org/sandbox/CloudAmber/Trunk/</A>. 
In this example the popup it is shown using the method "OpenLayers.Layer.Text" 
and getting the information from text file. It works 
perfectly.</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=750042518-27092007></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=750042518-27092007>Am I doing 
something wrong or the Google popup doesn´t work fine if I create it in the way 
explained above.</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=750042518-27092007></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=750042518-27092007>Thank you very 
much.</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial 
size=2></FONT><BR><BR><BR><BR></DIV></BODY></HTML>