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
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
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
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
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
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