mirror of
https://github.com/Viglino/ol-ext.git
synced 2026-01-25 17:36:21 +00:00
[BUG] remove default title option
This commit is contained in:
parent
18dbf0adfa
commit
5e4d872b44
@ -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";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user