[OpenLayers-Users] Cursor style on control activation

bartvde at osgis.nl bartvde at osgis.nl
Mon Jan 11 13:58:29 EST 2010


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 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 style of the cursor and "deactivate" to
> OpenLayers.Element.removeClass to restore the default state.  Does that
> make sense ?
>
> --
> Alexandre Dubé
> Mapgears
> www.mapgears.com
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>





More information about the Users mailing list