[OpenLayers-Trac] [OpenLayers] #1484: better cursor support for controls
OpenLayers
trac at openlayers.org
Wed Jul 2 04:34:59 EDT 2008
#1484: better cursor support for controls
----------------------+-----------------------------------------------------
Reporter: bartvde | Owner:
Type: feature | Status: new
Priority: minor | Milestone: 2.7 Release
Component: Control | Version: 2.6 RC1
Resolution: | Keywords:
State: |
----------------------+-----------------------------------------------------
Comment (by tschaub):
Replying to [comment:4 euzuro]:
> Replying to [comment:3 tschaub]:
> > I think I mentioned this approach elsewhere (can't remember if there
was discussion on it), but I would suggest adding and removing a class
name from the map div instead of setting the cursor property directly. My
felling is that if we are setting style properties directly in the code,
we're going to be limiting what can be accomplished.
> >
> > If the map div is given an additional class name temporarily, we can
have style declarations that determine the cursor property. Then when
this class name is removed, whatever custom cursor the application
designer might have set in the first place is restored.
> >
> > With this approach (as far as I can tell from the patch), if someone
sets a cursor in their own stylesheet, it is lost.
> >
> > For methods to add and remove class names, see
(http://trac.openlayers.org/browser/sandbox/topp/almanac/lib/OpenLayers/BaseTypes/Element.js#L126
this). I'll make a patch for that.
>
>
>
> .... i believe you mentioned it here: #688
Thanks for the reminder. Check #1607 for css class name management
functions.
--
Ticket URL: <http://trac.openlayers.org/ticket/1484#comment:5>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list