[OpenLayers-Dev] How to cancel layer loading?

Juan G juangon at gmail.com
Thu Mar 27 10:50:36 EDT 2008


Ok thanks for the answers.

I thing I will try to make it by destroying the map and constructing all the
objects again with the different projection and different maxExtent.

Thanks again!

2008/3/27, Eric Lemoine <eric.c2c at gmail.com>:
>
> On Thu, Mar 27, 2008 at 12:46 PM, Christopher Schmidt
> <crschmidt at metacarta.com> wrote:
> > On Thu, Mar 27, 2008 at 12:44:56PM +0100, Juan G wrote:
> >  > Hello everybody!
> >  >
> >  > Is there a good-elegant way to cancel a layer while it´s loading? I
> ´ve
> >  > searched from the source code and I saw there is a "loadcancel" event
> in the
> >  > Layer class, but I couldn´t find where is triggered.
> >  >
> >  > I need a "cancel" button for stopping loading layers that are loading
> at
> >  > that moment, hence I need to know that issue.
> >
> >  OpenLayers has no such functionality. It is likely *not* possible,
> since
> >  browsers don't appear to have any kind of sane cancel/abort operation:
> >  I've never  gotten a cancel call to actually stop the loading. However,
> >  I haven't spent that much time on it: it might be possible, but
> >  OpenLayers doesn't do it.
>
>
> I did a bit of investigation on that a couple months ago. I found no
> way to achieve it.
>
> --
>
> Eric
>
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
>



-- 
Un saludo,

Juan Gonzalez del Pino
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20080327/48ce5fea/attachment.html


More information about the Dev mailing list