This commit fixes this: once a feature's been selected the "pointer" cursor is
always used when going over it. r=crschmidt (closes #1217) git-svn-id: http://svn.openlayers.org/trunk/openlayers@5909 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -279,6 +279,7 @@ OpenLayers.Feature.Vector = OpenLayers.Class(OpenLayers.Feature, {
|
|||||||
* - hoverPointRadius: 1,
|
* - hoverPointRadius: 1,
|
||||||
* - hoverPointUnit: "%",
|
* - hoverPointUnit: "%",
|
||||||
* - pointerEvents: "visiblePainted"
|
* - pointerEvents: "visiblePainted"
|
||||||
|
* - cursor: ""
|
||||||
*
|
*
|
||||||
* Other style properties that have no default values:
|
* Other style properties that have no default values:
|
||||||
*
|
*
|
||||||
@@ -306,7 +307,8 @@ OpenLayers.Feature.Vector.style = {
|
|||||||
pointRadius: 6,
|
pointRadius: 6,
|
||||||
hoverPointRadius: 1,
|
hoverPointRadius: 1,
|
||||||
hoverPointUnit: "%",
|
hoverPointUnit: "%",
|
||||||
pointerEvents: "visiblePainted"
|
pointerEvents: "visiblePainted",
|
||||||
|
cursor: ""
|
||||||
},
|
},
|
||||||
'select': {
|
'select': {
|
||||||
fillColor: "blue",
|
fillColor: "blue",
|
||||||
@@ -341,6 +343,7 @@ OpenLayers.Feature.Vector.style = {
|
|||||||
pointRadius: 6,
|
pointRadius: 6,
|
||||||
hoverPointRadius: 1,
|
hoverPointRadius: 1,
|
||||||
hoverPointUnit: "%",
|
hoverPointUnit: "%",
|
||||||
pointerEvents: "visiblePainted"
|
pointerEvents: "visiblePainted",
|
||||||
|
cursor: ""
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -241,7 +241,7 @@ OpenLayers.Renderer.SVG = OpenLayers.Class(OpenLayers.Renderer.Elements, {
|
|||||||
node.setAttributeNS(null, "pointer-events", style.pointerEvents);
|
node.setAttributeNS(null, "pointer-events", style.pointerEvents);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (style.cursor) {
|
if (style.cursor != null) {
|
||||||
node.setAttributeNS(null, "cursor", style.cursor);
|
node.setAttributeNS(null, "cursor", style.cursor);
|
||||||
}
|
}
|
||||||
return node;
|
return node;
|
||||||
|
|||||||
@@ -246,7 +246,7 @@ OpenLayers.Renderer.VML = OpenLayers.Class(OpenLayers.Renderer.Elements, {
|
|||||||
stroke.setAttribute("endcap", !style.strokeLinecap || style.strokeLinecap == 'butt' ? 'flat' : style.strokeLinecap);
|
stroke.setAttribute("endcap", !style.strokeLinecap || style.strokeLinecap == 'butt' ? 'flat' : style.strokeLinecap);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (style.cursor) {
|
if (style.cursor != null) {
|
||||||
node.style.cursor = style.cursor;
|
node.style.cursor = style.cursor;
|
||||||
}
|
}
|
||||||
return node;
|
return node;
|
||||||
|
|||||||
Reference in New Issue
Block a user