[OpenLayers-Users] Google Style popup

Jachym Cepicky jachym.cepicky at gmail.com
Thu Oct 11 03:01:38 EDT 2007


Hi,
I just wanted to report that your nice Popup does not work with new
OpenLayers 2.5 :-/

Would it be possible to fix it and eventually publish patches? 
http://trac.openlayers.org/ticket/90 points to another example,
http://labs.metacarta.com/Trinity/index.html which is not available :-/

Thanks

Jachym

Daniel de la Cuesta píše v Čt 27. 09. 2007 v 20:34 +0200:
> Hi,
>  
> I am newbie using Open Layers and I saw this sandboxed code in the
> archives:
>  
> http://openlayers.org/pipermail/users/2007-August/002580.html
>  
> It was what I was looking for!.
>  
> I have checked it out and I am trying to show a the google style popup
> when a marker is clicked:
>  
> marker1.events.register("mousedown", marker1, function(evt) {
>    
>     text = "hello"
>     popup = new OpenLayers.Popup("olPopup",
>                      new OpenLayers.LonLat(-4.549683, 36.737052),
>                      new OpenLayers.Size(200,200),
>                      texte,
>                      true);   
>     
>     markers.map.addPopup(popup);
>  });  
>   markers.addMarker(marker1);
>  
>  
> The google popup works fine except:
>  
>      1. The position of the popup is not above the marker.
>      2. When the popup it is outside the map it doesn´t pan.
> I have tried the example from
> http://svn.openlayers.org/sandbox/CloudAmber/Trunk/. In this example
> the popup it is shown using the method "OpenLayers.Layer.Text" and
> getting the information from text file. It works perfectly.
>  
> Am I doing something wrong or the Google popup doesn´t work fine if I
> create it in the way explained above.
>  
> Thank you very much.
> 
> 
> 
> 
> 
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
-- 
Jachym Cepicky
e-mail: jachym.cepicky at gmail.com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Toto je =?UTF-8?Q?digit=C3=A1ln=C4=9B?=
	=?ISO-8859-1?Q?_podepsan=E1?= =?UTF-8?Q?_=C4=8D=C3=A1st?=
	=?ISO-8859-1?Q?_zpr=E1vy?=
Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20071011/b196dda3/attachment.bin


More information about the Users mailing list