[OpenLayers-Users] popup hidden when goes on sides of viewport

Kusum kusum at infobase.in
Wed May 14 07:50:13 EDT 2008


Will these work in 2.5.

--------------------------------------------------
From: "Eric Lemoine" <eric.c2c at gmail.com>
Sent: Wednesday, May 14, 2008 2:05 PM
To: "Kusum" <kusum at infobase.in>
Cc: "Openlayers Users" <users at openlayers.org>
Subject: Re: [OpenLayers-Users] popup hidden when goes on sides of viewport

> On Wed, May 14, 2008 at 7:28 AM, Kusum <kusum at infobase.in> wrote:
>> Dear All,
>>
>>
>> I am trying to make some nice looking popups and want that the map should
>> pan itself when popup goes to the corner
>> so that the popup comes in the center and is not hidden on any corners.
>>
>> I am trying to use panMapIfOutOfView but its not working
>>
>> popup = new OpenLayers.Popup("pof",coord,si,temp,true
>> ,{autoSize:true},{panMapIfOutOfView:true});
>>
>> Please suggest.
>>
>> Also Can u please suggest me where can I find some examples of good 
>> popups??
>
> You may like the FramedCloud popups that are in 2.6. Check this
> example <http://www.openlayers.org/dev/examples/sundials.html>
>
> Cheers,
>
> --
> Eric 





More information about the Users mailing list