There is no reason to restrict graphicTitle to externalGraphic symbols.

This commit is contained in:
ahocevar
2012-05-05 12:49:25 +02:00
parent b61cfdb054
commit d01f57d3e6
3 changed files with 20 additions and 18 deletions

View File

@@ -207,12 +207,13 @@ OpenLayers.Renderer.VML = OpenLayers.Class(OpenLayers.Renderer.Elements, {
options = options || node._options;
var fillColor = style.fillColor;
if (style.graphicTitle) {
node.title=style.graphicTitle;
}
if (node._geometryClass === "OpenLayers.Geometry.Point") {
if (style.externalGraphic) {
options.isFilled = true;
if (style.graphicTitle) {
node.title=style.graphicTitle;
}
var width = style.graphicWidth || style.graphicHeight;
var height = style.graphicHeight || style.graphicWidth;
width = width ? width : style.pointRadius*2;