user borrowed from friend

since i use vector layer with wfs protocol, there is a little while before features loaded on the map. So i need to tell user to wait a moment until they load.

what best way to do that ? i found this http://osgeo-org.1560.n6.nabble.com/Patch-quot-waiting-quot-mouse-cursor-on-WFS-loading-td3961983.html

but not sure if it will work. any body tried it ?


There is the LoadingPanel addin: http://trac.osgeo.org/openlayers/wiki/Addins/LoadingPanel

This could easily be altered to show a "waiting cursor" by altering the "minimizeControl" and "maximizeControl", removing the

this.div.style.display = "none";
this.div.style.display = "block";

lines and adding:

| improve this answer | |
  • this is for raster tiles, will it work for vectors? – neogeomat Apr 9 '13 at 8:40
  • yes, it works for vectors also – neogeomat Apr 11 '13 at 17:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.