3

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 ?

1 Answer 1

5

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:

document.body.style.cursor='auto'
document.body.style.cursor='wait'
2
  • this is for raster tiles, will it work for vectors?
    – neogeomat
    Commented Apr 9, 2013 at 8:40
  • yes, it works for vectors also
    – neogeomat
    Commented Apr 11, 2013 at 17:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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