<!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> </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> </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> </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> </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> </DIV>
<DIV><FONT><FONT face=Arial><FONT size=2><SPAN
class=750042518-27092007><EM>marker1.events.register("mousedown", marker1,
function(evt) {<BR> <BR> text =
"hello"<BR> popup = new
OpenLayers.Popup("olPopup",<BR>
new OpenLayers.LonLat(-4.549683,
36.737052),<BR>
new
OpenLayers.Size(200,200),<BR>
texte,<BR>
true); <BR> <BR> markers.map.addPopup(popup);</EM></SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT face=Arial><FONT size=2><SPAN
class=750042518-27092007><EM> }); <BR> 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> </DIV>
<DIV><FONT><FONT face=Arial><FONT size=2><SPAN
class=750042518-27092007></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT><FONT face=Arial><FONT size=2><SPAN class=750042518-27092007>The
google popup works fine except:</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT face=Arial><FONT size=2><SPAN
class=750042518-27092007></SPAN></FONT></FONT></FONT> </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> </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> </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>