Cannot switch externalGraphic style on VML-rendered feature. r=tschaub (closes #1312)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5944 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -196,6 +196,7 @@ OpenLayers.Renderer.VML = OpenLayers.Class(OpenLayers.Renderer.Elements, {
|
|||||||
} else {
|
} else {
|
||||||
if (!fill) {
|
if (!fill) {
|
||||||
fill = this.createNode('v:fill', node.id + "_fill");
|
fill = this.createNode('v:fill', node.id + "_fill");
|
||||||
|
}
|
||||||
|
|
||||||
if (style.fillOpacity) {
|
if (style.fillOpacity) {
|
||||||
fill.setAttribute("opacity", style.fillOpacity);
|
fill.setAttribute("opacity", style.fillOpacity);
|
||||||
@@ -216,10 +217,12 @@ OpenLayers.Renderer.VML = OpenLayers.Class(OpenLayers.Renderer.Elements, {
|
|||||||
if (!(style.graphicWidth && style.graphicHeight)) {
|
if (!(style.graphicWidth && style.graphicHeight)) {
|
||||||
fill.aspect = "atmost";
|
fill.aspect = "atmost";
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
if (fill.parentNode != node) {
|
||||||
node.appendChild(fill);
|
node.appendChild(fill);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// stroke
|
// stroke
|
||||||
|
|||||||
Reference in New Issue
Block a user