Hi Andreas, Great, thanks.
In case anyone else is trying to do this, I needed to call .destroy() on the layer for this to work (not sure if that's clear from the changeset). Just calling map.removeLayer() resulted in HTTP requests for WMS images continuing to be made after the layer was removed. Cheers, Tom Andreas Hocevar-2 wrote: > > Hi, > > On Sat, Jul 4, 2009 at 5:36 PM, Tom B<seil...@gmail.com> wrote: >> This thread suggested that there wasn't an elegant way to do this: >> http://openlayers.org/pipermail/dev/2008-March/002665.html >> >> Simply removing a layer still leaves some processing continuing in the >> background. Has anyone found a method to completely stop a currently >> loading layer since that last thread, by any chance? > > This is fixed in OpenLayers 2.8 > (http://trac.openlayers.org/changeset/9334) > > Regards, > Andreas. > > -- > Andreas Hocevar > OpenGeo - http://opengeo.org/ > Expert service straight from the developers. > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://n2.nabble.com/Canceling-a-currently-loading-WMS-layer-tp3205952p3213344.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users