[ka-Map-users] Redraw a single layer

Samuel Hiatt samhiatt at gmail.com
Sun Nov 11 17:21:58 EST 2007

Yeah.  It's not a kacache problem.  It's the browser cache.  I don't know if
the redraw() method tells the browser that the images are new or not... but
whatever javascript function there is for doing that should be called in the
redraw() method.

Let me know if you get it working!


On 11/11/07, Luca Casagrande <luca.casagrande at gmail.com> wrote:
> Hi Sam,
> the reload(true) didn't worked. :( I thought that setting the layer to
> NOCACHE and calling the layer.redraw() function just after the
> successfully ajax calling for the new point, would be the right way.
> Right now i realized that i should clear also the browser cache, so i
> need more time to focus on this problem..
> Bye
> Luca
> Il giorno ven, 09/11/2007 alle 14.47 -0800, Samuel Hiatt ha scritto:
> > I wonder if the 'refresh_interval' metadata tag would fix the problem.
> >  Probably not, because it is done on a timed interval... but you might
> > look into what property this tag sets to make the browser refresh the
> > layer.
> >
> > I just did a search for "force broswer refresh" and came up with some
> > interesting stuff...  looks like something like
> > thenewlayer.domObj.reload(true); might do the trick.  I bet
> > "refresh_interval" does a setTimeout to force a refresh at an
> > interval.
> >
> > Does this help you at all?
> >
> > Sam
> --
> "Chiunque può simpatizzare col dolore di un amico, ma solo un animo nobile
> riesce a simpatizzare col successo di un amico." Oscar Wilde
> Home Page: http://www.ominiverdi.org
> Socio GFOSS "Geospatial Free and Open Source Software" http://www.gfoss.it
> Jabber: casagrande at jabber.linux.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ka-map-users/attachments/20071111/efd7f8e6/attachment.html

More information about the ka-Map-users mailing list