Re: [OpenLayers-Users] Cursor style on control activation

2010-01-17 Thread Ivan Grcic
From Control\WMSGetFeatureInfo.js : // Set the cursor to wait to tell the user we're working on their click. OpenLayers.Element.addClass(this.map.viewPortDiv, olCursorWait); // Reset the cursor. OpenLayers.Element.removeClass(this.map.viewPortDiv, olCursorWait); Cheers On Thu, Jan 14, 2010

Re: [OpenLayers-Users] Cursor style on control activation

2010-01-14 Thread Kenneth Skovhede, GEOGRAF A/S
If you use Firefox and Firebug, you can select the map's div node, and see what css classes are applied. When you drag an item, you can see that the css classes for the div change. Using this method you can both get the answer to your question, and debug issues with cursors (and styles in

Re: [OpenLayers-Users] Cursor style on control activation

2010-01-13 Thread Richard Greenwood
On Mon, Jan 11, 2010 at 11:58 AM, bart...@osgis.nl wrote: IIRC the syntax is: .olControlZoomBoxActive {  cursor: pointer; } etc. so displayClass plus Active. Bart Bart, Your post was very helpful. Thank you. I have one additional question - using displayClass plus Active correctly

Re: [OpenLayers-Users] Cursor style on control activation

2010-01-12 Thread Alexandre Dube
Well, I'm confident with going for that solution, but if anyone has a better way of doing it please let me know. Thanks, Alexandre Alexandre Dube wrote: Hi, I want to be able to change the default style of the cursor when activating controls. Each control should have its unique

[OpenLayers-Users] Cursor style on control activation

2010-01-11 Thread Alexandre Dube
Hi, I want to be able to change the default style of the cursor when activating controls. Each control should have its unique cursor. I want to validate that the way I'd do it is okay. Please comment. I would simply register activate to use OpenLayers.Element.addClass to change the

Re: [OpenLayers-Users] Cursor style on control activation

2010-01-11 Thread bartvde
Alexandre, that should not be necessary, css is all that it takes. IIRC the syntax is: .olControlZoomBoxActive { cursor: pointer; } etc. so displayClass plus Active. Bart Hi, I want to be able to change the default style of the cursor when activating controls. Each control should