[BUG] remove default title option

This commit is contained in:
Jean-Marc Viglino 2016-06-11 16:31:24 +02:00
parent 18dbf0adfa
commit 5e4d872b44

View File

@ -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";