Rename style.graphicTitle to style.title (the former is now deprecated)

This commit is contained in:
Frederic Junod
2012-05-15 12:46:41 +02:00
parent d01f57d3e6
commit 8268616ec8
5 changed files with 17 additions and 12 deletions

View File

@@ -241,8 +241,9 @@ OpenLayers.Renderer.Canvas = OpenLayers.Class(OpenLayers.Renderer, {
drawExternalGraphic: function(geometry, style, featureId) {
var img = new Image();
if (style.graphicTitle) {
img.title = style.graphicTitle;
var title = style.title || style.graphicTitle;
if (title) {
img.title = title;
}
var width = style.graphicWidth || style.graphicHeight;