[Users] refreshing GeoExt mapPanel?
Pierre Giraud
pierre.giraud at camptocamp.com
Tue May 19 13:17:14 CEST 2009
This is how I would simply do it.
var map = mappanel.map;
for (var i = 0; i < map.layers.length; i++) {
map.layers[i].redraw(true);
}
There may be a more direct solution though.
Regards,
Pierre
On Tue, May 19, 2009 at 11:02 AM, Jered Markoff <jered1975 at gmail.com> wrote:
> Does anyone know how to refresh a GeoExt mapPanel? I would like to
> periodically refresh the map without refreshing the whole web page, since
> refreshing the web page would require putting the current settings (selected
> layers, zoom level, pan, etc.) into a cookie and retrieving them after the
> refresh is done. Just refreshing the map would be easier. The map is placed
> in an Ext js Viewport.
>
> Thanks in advance for any advice you can offer!
>
> Jered Markoff
> Technical Support
> Strategic Health Operations Centre
> World Health Organization
> Geneva, Switzerland
> Phone +41 22-791-3668
> Mobile +41 79-509-0661
> Fax +41 22-761-4847
> *markoffj at who.int* <markoffj at who.int>
>
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>
>
--
Pierre GIRAUD
Géomaticien, Analyste
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 93
Mail : pierre.giraud at camptocamp.com
http://www.camptocamp.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20090519/52d3cc63/attachment.htm
More information about the Users
mailing list