From 5e4d872b449ced65285e91b4543e943b052d6b5d Mon Sep 17 00:00:00 2001 From: Jean-Marc Viglino Date: Sat, 11 Jun 2016 16:31:24 +0200 Subject: [PATCH] [BUG] remove default title option --- control/canvastitlecontrol.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/canvastitlecontrol.js b/control/canvastitlecontrol.js index 4f7e64ca..dbf0ee55 100644 --- a/control/canvastitlecontrol.js +++ b/control/canvastitlecontrol.js @@ -61,7 +61,7 @@ ol.control.CanvasTitle.prototype.setMap = function (map) ol.control.CanvasTitle.prototype.setStyle = function (style) { var text = style.getText(); this.font_ = text ? text.getFont() || "20px Arial" : "20px Arial"; - this.text_ = text ? text.getText() : "Title"; + this.text_ = text ? text.getText() : ""; var stroke = text ? text.getStroke() : null; var fill = text ? text.getFill() : null; this.strokeStyle_ = stroke ? ol.color.asString(stroke.getColor()) : "#fff";