don’t duplicate defaults in renderers

This commit is contained in:
Antoine Abt
2012-01-05 10:26:05 +01:00
parent 0ff9d54d5c
commit 5be7e7f844
5 changed files with 23 additions and 12 deletions

View File

@@ -525,12 +525,6 @@ OpenLayers.Renderer.Canvas = OpenLayers.Class(OpenLayers.Renderer, {
* style - {Object}
*/
drawText: function(location, style) {
style = OpenLayers.Util.extend({
fontColor: "#000000",
labelAlign: "cm",
labelOutlineColor: "white",
labelOutlineWidth: 3
}, style);
var pt = this.getLocalXY(location);
this.setCanvasStyle("reset");