[OpenLayers-Users] One Popup situation resolved,
New troubles w/ panmapifoutofview
Christopher Schmidt
crschmidt at metacarta.com
Thu Feb 5 09:33:16 EST 2009
On Thu, Feb 05, 2009 at 06:29:23AM -0800, smithfield wrote:
>
> Thanks for the reply but there is no change when i move it before the popup.
> I have tried putting it everywhere. i am thinking that the problem might be
> in the centering of the map?
I gave you two pieces of advice. One was that it's not a function, one
was that it should be beofre it is added to the map. Did you try both?
If you did, can you share a link that you have tried it on, or attaach a
full HTML file that someone can look at?
-- Chris
>
>
> Christopher Schmidt-2 wrote:
> >
> > 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
> > _______________________________________________
> > Users mailing list
> > Users at openlayers.org
> > http://openlayers.org/mailman/listinfo/users
> >
> >
>
> --
> View this message in context: http://n2.nabble.com/One-Popup-situation-resolved%2C-New-troubles-w--panmapifoutofview-tp2270359p2275102.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list