[OpenLayers-Dev] How to cancel layer loading?

Juan G juangon at gmail.com
Thu Mar 27 07:44:56 EDT 2008


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.

Thanks very much in advance!!

Juan

2008/3/26, Dejung Gewissler <dejung.gewissler at oit.state.nj.us>:
>
> Thank you. Indeed it is good.
>
> I did a search for the string ".svg" in the lib folder and found only
> the renderer SVG. So it *seems* that the images in openlayers\art aren't
> used anymore.
>
> Is there a preference among the development folks as to which one of the
> other two they prefer?
>
> I have not created a patch before, but would like to help out by doing
> so. Before I get started, I wanted to get feedback about the location of
> the images. It seems fitting though that the theme folder would hold all
> images related to the style of OpenLayers.
>
> -Dejung
>
>
> Christopher Schmidt wrote:
> > On Wed, Mar 26, 2008 at 02:41:56PM -0400, Dejung Gewissler wrote:
> >
> >> Hi Devs-
> >>
> >> In trying to better understand OpenLayers and how to customize aspects
> >> of it I came across three different locations for images.
> >> These are:
> >>     - openlayers\img
> >>     - openlayers\theme\default\img
> >>     - openlayers\art
> >>
> >> Does anyone have any insight as to why they live separately?
> >> In choosing where to add my own customized images for the panZoom
> >> controls or other toolbars (like editing) I am ambiguous and need help
> :)
> >>
> >
> > In the beginning, there was a panzoom control. And it was blue, and we
> > said that it was good.
> >
> > And the art was created in vectors, for changing later: and we saved the
> > originals, and it was good.
> >
> > And then, users came along and asked to change things. So we changed
> > portions of the code to use CSS, and it was good.
> >
> > And the requests got more complex, and so we said "Let there be a Panel
> > Control". And it was. And it was good.
> >
> > And then we created images for hte panel control, which were
> > controllable via CSS. And we added them to the directory where the CSS
> > skin lived. And it was good.
> >
> > And then people came along and asked why there were two different way of
> > doing things, and we said "Hysterical Raisins"[1], despite it only being
> > the sixth day.
> >
> > And on the 7th day, we rested, and said "Patches welcome" to improve the
> > confusion.[2]
> >
> >
> > [1] http://catb.org/jargon/html/H/hysterical-reasons.html
> > [2] http://trac.openlayers.org/ticket/1400
> >
> > Regards,
> >
>
> --
>
> *Dejung Gewissler*
> New Jersey Office of Information Technology
> Office of Geographic Information Systems
> 200 Riverview Plaza
> PO Box 212, Trenton, NJ 08625-0212
>
> 609.777.3754
>
> _______________________________________________
> 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/61412021/attachment.html


More information about the Dev mailing list