From ffac63045e3b470d8df8d6588aaa92197635f270 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Sun, 4 Mar 2012 19:56:41 +0100 Subject: [PATCH] Removing duplicate setCanvasStyle method. Thanks @jorix for catching this (see #238). --- lib/OpenLayers/Renderer/Canvas.js | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/lib/OpenLayers/Renderer/Canvas.js b/lib/OpenLayers/Renderer/Canvas.js index ee90db4e38..74ae40b768 100644 --- a/lib/OpenLayers/Renderer/Canvas.js +++ b/lib/OpenLayers/Renderer/Canvas.js @@ -434,28 +434,6 @@ OpenLayers.Renderer.Canvas = OpenLayers.Class(OpenLayers.Renderer, { } }, - /** - * Method: setCanvasStyle - * Prepare the canvas for drawing by setting various global settings. - * - * Parameters: - * type - {String} one of 'stroke', 'fill', or 'reset' - * style - {Object} Symbolizer hash - */ - setCanvasStyle: function(type, style) { - if (type === "fill") { - this.canvas.globalAlpha = style['fillOpacity']; - this.canvas.fillStyle = style['fillColor']; - } else if (type === "stroke") { - this.canvas.globalAlpha = style['strokeOpacity']; - this.canvas.strokeStyle = style['strokeColor']; - this.canvas.lineWidth = style['strokeWidth']; - } else { - this.canvas.globalAlpha = 0; - this.canvas.lineWidth = 1; - } - }, - /** * Method: featureIdToHex * Convert a feature ID string into an RGB hex string.