[OpenLayers-Users] popup hidden when goes on sides of viewport
Eric Lemoine
eric.c2c at gmail.com
Wed May 14 04:35:08 EDT 2008
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