[mapguide-users] Refresh map only

Warren Medernach wmedernach at gmail.com
Fri Aug 13 10:44:05 EDT 2010


Hey Jason,

Thanks!  I was pretty sure I did rtfm and that's how I got to where I did...
 But I digress...  ;-)

I'm using the basic AJAX viewer in this instance on MGE.

In the Viewer API (see I did rtfm :-) there is a Main Frame Refresh and a
Map Frame Refresh, but when I call the Map Frame Refresh the whole map
refreshes and goes back to the initial zoom.  I guess I just expected it to
behave like the context menu Refresh.

I wonder if it's because I'm wrapping this in the 'window.setInterval' call?
Do I maybe need to setup my own timer to refresh just the map frame?

Warren M


On Fri, Aug 13, 2010 at 1:22 AM, Jason Birch <jason at jasonbirch.com> wrote:

> Hey Warren,
>
> What version of MapGuide are you using, and which framework (AJAX or
> Fusion)?
>
> Jason
>
> On 2010-08-11, Warren Medernach <wmedernach at gmail.com> wrote:
> > Is there a mechanism to refresh just the map and not the whole frame?
> > I want to refresh the map, but retain the current view/zoom, etc.
> >
> > Maybe I'm missing something, but calling:
> >
> > window.setInterval('GetMapFrame().Refresh()', 2000);
> >
> >
> > Doesn't seem any different than refreshing the entire web page?
> >
> > Warren M
> >
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20100813/e55bd072/attachment.html


More information about the mapguide-users mailing list