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,28 +196,31 @@ OpenLayers.Renderer.VML = OpenLayers.Class(OpenLayers.Renderer.Elements, {
|
||||
} else {
|
||||
if (!fill) {
|
||||
fill = this.createNode('v:fill', node.id + "_fill");
|
||||
}
|
||||
|
||||
if (style.fillOpacity) {
|
||||
fill.setAttribute("opacity", style.fillOpacity);
|
||||
if (style.fillOpacity) {
|
||||
fill.setAttribute("opacity", style.fillOpacity);
|
||||
}
|
||||
|
||||
if (node._geometryClass == "OpenLayers.Geometry.Point" &&
|
||||
style.externalGraphic) {
|
||||
|
||||
// override fillOpacity
|
||||
if (style.graphicOpacity) {
|
||||
fill.setAttribute("opacity", style.graphicOpacity);
|
||||
}
|
||||
|
||||
if (node._geometryClass == "OpenLayers.Geometry.Point" &&
|
||||
style.externalGraphic) {
|
||||
|
||||
// override fillOpacity
|
||||
if (style.graphicOpacity) {
|
||||
fill.setAttribute("opacity", style.graphicOpacity);
|
||||
}
|
||||
|
||||
fill.setAttribute("src", style.externalGraphic);
|
||||
fill.setAttribute("type", "frame");
|
||||
node.style.flip = "y";
|
||||
|
||||
if (!(style.graphicWidth && style.graphicHeight)) {
|
||||
fill.aspect = "atmost";
|
||||
}
|
||||
|
||||
fill.setAttribute("src", style.externalGraphic);
|
||||
fill.setAttribute("type", "frame");
|
||||
node.style.flip = "y";
|
||||
|
||||
if (!(style.graphicWidth && style.graphicHeight)) {
|
||||
fill.aspect = "atmost";
|
||||
}
|
||||
|
||||
if (fill.parentNode != node) {
|
||||
node.appendChild(fill);
|
||||
}
|
||||
node.appendChild(fill);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user