Re: [OpenLayers-Users] Support for Cursors?

2009-09-10 Thread regioGIS
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,

Re: [OpenLayers-Users] Support for Cursors?

2009-09-10 Thread bartvde
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

Re: [OpenLayers-Users] Support for Cursors?

2009-07-02 Thread Bill Thoen
Thanks Bart, but for some reason this changes the cursor only over the tool buttons on the control panel. How do I make it extend over my map window when I change tools? bart...@osgis.nl wrote: Hi Bill, yes it's in 2.8. You need to add css classes depending on the displayClass + Active

Re: [OpenLayers-Users] Support for Cursors?

2009-07-02 Thread Bart van den Eijnden (OSGIS)
Hi Bill, not sure, can you check the css class which has been set on the map viewport div when you activate a tool? They should have those values. Maybe there is another class which is preventing the cursors from showing up. Best regards, Bart Bill Thoen wrote: Thanks Bart, but for some

Re: [OpenLayers-Users] Support for Cursors?

2009-07-02 Thread Bill Thoen
I'm not sure either. Here's how I'm setting display classes for the info tool (as an example). This shows the pointer cursor , but only when you hover over the tool icon on the control panel: .olControlPanel .olInfoItemActive { background-image: url(../img/info-on.png); cursor:

Re: [OpenLayers-Users] Support for Cursors?

2009-07-02 Thread Bart van den Eijnden (OSGIS)
Hi Bill, please try: .olControlPanel .olInfoItemActive { background-image: url(../img/info-on.png); } .olInfoItemActive { cursor: pointer; } Best regards, Bart Bill Thoen wrote: I'm not sure either. Here's how I'm setting display classes for the info tool (as an

Re: [OpenLayers-Users] Support for Cursors?

2009-07-02 Thread Bill Thoen
Not quite. Now the cursor still appears only over the tool, but only after I activate it. As soon as I move off the icon it reverts to the default arrow cursor. Unless you have (or anyone else has) any other ideas, maybe I'll try a dead-simple OL scrapplication with a basic map and one tool

Re: [OpenLayers-Users] Support for Cursors?

2009-07-02 Thread Bill Thoen
Thanks!! That worked. When I configure it like so (using both .olInfoItemActive and .olInfoActive): .olControlPanel .olInfoItemActive { background-image: url(../img/info-on.png); } .olInfoActive { cursor: pointer; } Bart van den Eijnden (OSGIS) wrote: I now see that your

[OpenLayers-Users] Support for Cursors?

2009-07-01 Thread Bill Thoen
Was support for using different cursor icons (pointer, text, wait, etc.) built into version 2.8? I didn't see anything about cursors in the release notes but I thought there had been some work done on this. If not, can someone tell me the best place to set the cursor icon for tool buttons? Is

Re: [OpenLayers-Users] Support for Cursors?

2009-07-01 Thread bartvde
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;