[OpenLayers-Users] Hover cursor not present in IE8

jookyboi jookyboi at gmail.com
Tue Mar 8 19:19:20 EST 2011


Hi,

I've been using a "cursor" style on the defaultStyle in order to get the
pointer when a user hovers over a feature:

var defaultStyle = new OpenLayers.Style({
                externalGraphic: "${externalGraphic}",
                graphicZIndex: 11,
                graphicWidth: "${graphicWidth}",
                graphicHeight: "${graphicHeight}",
                graphicYOffset: "${graphicYOffset}",
                graphicOpacity: 0,
                pointerEvents: "visiblePainted",
                pointRadius: 4,
                labelAlign: "cb",
                labelSelect: true,
                fontColor: "#ffffff",
                fontWeight: "bold",
                label: "${label}",
                cursor: "pointer"
            }

The code works as expected in Chrome and Firefox but in IE8, hovering over a
label-covered feature causes the cursor to switch back to the default. Is
there a fix for this?

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Hover-cursor-not-present-in-IE8-tp6152084p6152084.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list