[OpenLayers-Users] One Popup situation resolved,
New troubles w/ panmapifoutofview
Christopher Schmidt
crschmidt at metacarta.com
Wed Feb 4 15:53:12 EST 2009
On Wed, Feb 04, 2009 at 10:11:31AM -0800, smithfield wrote:
>
> Hello group. Thanks for all of the help so far. I now have the popups
> autosizing in the correct locations, but i can not get the panmap to work
> with the popups. I would like the map to refocus so the popup can be seen.
> You can see that i have the command in my code, but it isn't working. Any
> thoughts?
> popup.panMapIfOutOfView(true);
This is not a function, it is a property. set
popup.panMapIfOutOfView=true; before adding the popup to the map.
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list