[OpenLayers-Users] Support for Cursors?

bartvde at osgis.nl bartvde at osgis.nl
Thu Sep 10 03:35:17 EDT 2009


Hi,

just add cursor: default to the css class of the panzoombar in your css.

.olControlPanZoomBar {
   cursor: default;
}

Best regards,
Bart

>
> Hello,
>
> Thanks for this tip. I changed the cursor for panning as mentionned below.
> But can you also please tell me how to get the plain arrow cursor back
> when
> pointing/clicking at the standard OL navigation panel ( f.i. the
> scale-slider )? Because, of course, it keeps the last cursor changed to,
> but
> that is a strange sight ...
> How did you manage ?
>
> Greetings,
>
>
>
> Bart van den Eijnden (OSGIS)-2 wrote:
>>
>> Hi Bill,
>>
>> yes it's in 2.8.
>>
>> You need to add css classes depending on the displayClass + "Active"
>>  of a control, e.g. this is what I have:
>>
>> .olControlDragPanActive {
>>     cursor: url(lib/openlayers/theme/default/img/pan.cur) 16 16,
>> url(../geoservices2.2/lib/openlayers/theme/default/img/pan.cur), auto;
>> }
>> ...
>>
>
> --
> View this message in context:
> http://n2.nabble.com/Support-for-Cursors-tp3192209p3616404.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>





More information about the Users mailing list