[ka-Map-users] Redraw a single layer

Samuel Hiatt samhiatt at gmail.com
Fri Nov 9 17:47:48 EST 2007


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



On Nov 9, 2007 1:32 PM, Luca Casagrande <luca.casagrande at gmail.com> wrote:
> Hi Sam and thx for your answer.
>
> Yep, the browser is not refreshing the tiles to show the new point.
> The function that create the new item, contains _layer.redraw();is
> there any other approach to accomplish this?
>
> Thank you
> Luca
>
>
> On Nov 9, 2007 8:17 PM, Samuel Hiatt <samhiatt at gmail.com> wrote:
> > Hi Luca!
> >
> > I'm gonna take a guess here... is your browser not refreshing the tiles to
> > show your new point?  I'm willing to bet that your browser is using stale
> > tiles.  Or are you referring to a redraw() method that refreshes the
> > browser?
> >
> > Sam
> >
> >
> >
> >
> > On 11/9/07, Luca Casagrande <luca.casagrande at gmail.com> wrote:
> > >
> > >
> > >
> > > Hello everybody!
> > >
> > > I have almost finished my first module to allow user insert new point
> > > feature inside Postgis. All is working fine (using Qgis to check the
> > > output), except that I haven't found a way to redraw the layer after the
> > > user has successfully add the point.
> > >
> > > I am using the redraw() method and the layer is with nocache metadata.
> > > No error in firebug..
> > >
> > > Any idea?
> > >
> > > Thanks
> > >
> > > Luca
> > >
> > > --
> > > "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
> > >
> > > _______________________________________________
> > > ka-Map-users mailing list
> > > ka-Map-users at lists.maptools.org
> > > http://lists.maptools.org/mailman/listinfo/ka-map-users
> > >
> >
> >
>



More information about the ka-Map-users mailing list