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,
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
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
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
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:
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
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
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
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
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;
10 matches
Mail list logo