[OpenLayers-Users] Cursor style on control activation

Alexandre Dube adube at mapgears.com
Tue Jan 12 08:34:14 EST 2010


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




More information about the Users mailing list