Rotate point geometries only. Committed version differs from the patch (=== instead of == for all geometry type checks). r=tschaub (closes #2423)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9954 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -217,7 +217,7 @@ OpenLayers.Renderer.VML = OpenLayers.Class(OpenLayers.Renderer.Elements, {
|
|||||||
options = options || node._options;
|
options = options || node._options;
|
||||||
var widthFactor = 1;
|
var widthFactor = 1;
|
||||||
|
|
||||||
if (node._geometryClass == "OpenLayers.Geometry.Point") {
|
if (node._geometryClass === "OpenLayers.Geometry.Point") {
|
||||||
if (style.externalGraphic) {
|
if (style.externalGraphic) {
|
||||||
if (style.graphicTitle) {
|
if (style.graphicTitle) {
|
||||||
node.title=style.graphicTitle;
|
node.title=style.graphicTitle;
|
||||||
@@ -273,7 +273,7 @@ OpenLayers.Renderer.VML = OpenLayers.Class(OpenLayers.Renderer.Elements, {
|
|||||||
}
|
}
|
||||||
fill.opacity = style.fillOpacity;
|
fill.opacity = style.fillOpacity;
|
||||||
|
|
||||||
if (node._geometryClass == "OpenLayers.Geometry.Point" &&
|
if (node._geometryClass === "OpenLayers.Geometry.Point" &&
|
||||||
style.externalGraphic) {
|
style.externalGraphic) {
|
||||||
|
|
||||||
// override fillOpacity
|
// override fillOpacity
|
||||||
@@ -302,7 +302,7 @@ OpenLayers.Renderer.VML = OpenLayers.Class(OpenLayers.Renderer.Elements, {
|
|||||||
// the fill, because this is part of the hack described
|
// the fill, because this is part of the hack described
|
||||||
// in graphicRotate
|
// in graphicRotate
|
||||||
fill.opacity = 0;
|
fill.opacity = 0;
|
||||||
} else {
|
} else if(node._geometryClass === "OpenLayers.Geometry.Point") {
|
||||||
node.style.rotation = style.rotation;
|
node.style.rotation = style.rotation;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user