<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<STYLE>.hmmessage P {
        PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
BODY.hmmessage {
        FONT-SIZE: 10pt; FONT-FAMILY: Verdana
}
</STYLE>
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY class=hmmessage>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=078205520-16072009>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=078205520-16072009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=078205520-16072009>I use a couple of movable divs for different
tasks</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><A
href="http://gis.ibbeck.de/ginfo/apps/OL27Client/OL27ClientGis.asp?KARTE=k10000">http://gis.ibbeck.de/ginfo/apps/OL27Client/OL27ClientGis.asp?KARTE=k10000</A></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff></FONT> </DIV>
<DIV dir=ltr align=left><SPAN class=078205520-16072009><FONT face=Arial
color=#0000ff>Arnd</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma><B>Von:</B> Kwong Hu Kiu [mailto:kwonghu@hotmail.com]
<BR><B>Gesendet:</B> Donnerstag, 16. Juli 2009 19:41<BR><B>An:</B>
arnd.wippermann@web.de; users@openlayers.org<BR><B>Betreff:</B> RE: AW:
[OpenLayers-Users] Popup in Openlayers (How to fix the
popup?)<BR></FONT><BR></DIV>
<DIV></DIV><BR><BR>
<DIV> Any example ? I have the map as a
fullscreen.<BR></DIV><BR>Thanks.<BR><BR><BR>
<HR id=stopSpelling>
From: arnd.wippermann@web.de<BR>To: kwonghu@hotmail.com<BR>Subject: AW:
[OpenLayers-Users] Popup in Openlayers (How to fix the popup?)<BR>Date: Thu, 16
Jul 2009 18:31:52 +0200<BR><BR>
<STYLE>.ExternalClass .EC_hmmessage P {
        PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px
}
.ExternalClass BODY.EC_hmmessage {
        FONT-SIZE: 10pt; FONT-FAMILY: Verdana
}
</STYLE>
<DIV dir=ltr align=left><SPAN class=EC_656342716-16072009><FONT face=Arial
color=#0000ff>Hi,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=EC_656342716-16072009><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=EC_656342716-16072009><FONT face=Arial
color=#0000ff>Why do you not create an own div element instead of an
OpenLayers popup? It will always be at the same position without calling
any events.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=EC_656342716-16072009><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=EC_656342716-16072009><FONT face=Arial
color=#0000ff>Arnd</FONT></SPAN></DIV><BR>
<DIV class=EC_OutlookMessageHeader lang=de dir=ltr align=left>
<HR>
<FONT face=Tahoma><B>Von:</B> users-bounces@openlayers.org
[mailto:users-bounces@openlayers.org] <B>Im Auftrag von </B>Kwong Hu
Kiu<BR><B>Gesendet:</B> Donnerstag, 16. Juli 2009 16:32<BR><B>An:</B>
adube@mapgears.com<BR><B>Cc:</B> users@openlayers.org<BR><B>Betreff:</B> Re:
[OpenLayers-Users] Popup in Openlayers (How to fix the
popup?)<BR></FONT><BR></DIV>
<DIV></DIV><BR>Yes, the moveend is triggered on every pan but it's not moving
the popup.<BR><BR>The popup.moveto is always being called.<BR><BR>Any idea
?<BR><BR>> Date: Thu, 16 Jul 2009 09:45:34 -0400<BR>> From:
adube@mapgears.com<BR>> To: kwonghu@hotmail.com<BR>> CC:
users@openlayers.org<BR>> Subject: Re: [OpenLayers-Users] Popup in Openlayers
(How to fix the popup?)<BR>> <BR>> Hi,<BR>> <BR>> Could you share
more of your code, please ? How do you register you <BR>> event for instance
? The 'moveend' event should be triggered on every pan.<BR>> <BR>>
Regards,<BR>> <BR>> Alexandre<BR>> <BR>> Kwong Hu Kiu wrote:<BR>>
><BR>> ><BR>> > I have tried that.<BR>> ><BR>> >
Something like<BR>> ><BR>> > if (popup != null)<BR>> >
{<BR>> > <BR>> > var widthPixel = map.getSize().w - 280;<BR>>
> var heightPixel = map.getSize().h - 300;<BR>> > popup.moveTo(new
OpenLayers.Pixel(widthPixel, <BR>> > heightPixel));<BR>> > }<BR>>
><BR>> > But the popup does not want to move when i pan.<BR>> >
It only move if i zoom in/out.<BR>> > I have debug'ed this and
"pop.moveTo" is being called whenever i pan.<BR>> ><BR>> > Not
really sure if this is a bug.<BR>> ><BR>> > I just want a simple
popup that always appear on the lower right corner<BR>> > so user can
interact with the map.<BR>> ><BR>> > Regards.<BR>> ><BR>>
><BR>> > > Date: Thu, 16 Jul 2009 08:18:27 -0400<BR>> > >
From: adube@mapgears.com<BR>> > > To: kwonghu@hotmail.com<BR>> >
> CC: users@openlayers.org<BR>> > > Subject: Re: [OpenLayers-Users]
Popup in Openlayers (How to fix the <BR>> > popup?)<BR>> >
><BR>> > > Hi,<BR>> > ><BR>> > > You could
register a map 'moveend' event to move the popup again to<BR>> > > the
original location. You would need to recalculate the position on<BR>> >
> each move.<BR>> > ><BR>> > > Regards,<BR>> >
><BR>> > > Alexandre<BR>> > ><BR>> > > Kwong Hu
Kiu wrote:<BR>> > > > Hi,<BR>> > > ><BR>> > >
> I am trying to use the openlayers popup in the map as below.<BR>> >
> ><BR>> > > > if (this.popup == null)<BR>> > > >
{<BR>> > > > this.popup = new OpenLayers.Popup();<BR>> > >
> this.popup.setBorder("2px solid");<BR>> > > >
this.popup.setSize(new OpenLayers.Size(270, 270));<BR>> > > >
this.popup.setContentHTML(popupContentHTML);<BR>> > > >
this.popup.setOpacity(0.65);<BR>> > > >
this.popup.addCloseBox();<BR>> > > >
map.addPopup(this.popup);<BR>> > > > this.popup.show();<BR>> >
> > }<BR>> > > > else<BR>> > > > {<BR>> >
> > this.popup.setContentHTML(popupContentHTML);<BR>> > > >
this.popup.toggle();<BR>> > > > }<BR>> > > ><BR>>
> > ><BR>> > > > How do i get it to display in one position
(like the lower left<BR>> > > > portion of the screen) ? and always
appear there whenever you pan/zoom<BR>> > > ><BR>> > > >
I figured that i can use popup.moveTo as below.<BR>> > > ><BR>>
> > > var widthPixel = map.getSize().w - 280;<BR>> > > >
var heightPixel = map.getSize().h - 300;<BR>> > > >
this.popup.moveTo(new OpenLayers.Pixel(widthPixel, heightPixel));<BR>> >
> ><BR>> > > > But the popup will move out of that location
whenever you pan. It's<BR>> > > > alright when you zoom
in/out(always at the lower left) but not pan.<BR>> > > ><BR>>
> > > Please help. Simple problem taking me a while to resolve.<BR>>
> > ><BR>> > > > Cheers.<BR>> > > ><BR>>
> > ><BR>> > > > <BR>> >
------------------------------------------------------------------------<BR>>
> > ><BR>> > > >
_______________________________________________<BR>> > > > Users
mailing list<BR>> > > > Users@openlayers.org<BR>> > > >
http://openlayers.org/mailman/listinfo/users<BR>> > > ><BR>> >
><BR>> > ><BR>> > > --<BR>> > > Alexandre
Dubé<BR>> > > Mapgears<BR>> > > www.mapgears.com<BR>> >
><BR>> <BR>> <BR>> -- <BR>> Alexandre Dubé<BR>>
Mapgears<BR>> www.mapgears.com<BR>> <BR></BODY></HTML>