diff --git a/leaflet.textpath.js b/leaflet.textpath.js index 3dd7bb5..59f9f4d 100755 --- a/leaflet.textpath.js +++ b/leaflet.textpath.js @@ -106,7 +106,7 @@ var PolylineTextPath = { var finalText = []; var dx = 0 - if (!options.allowCrop) { + if (!options.allowCrop || options.center) { if (textLength === null) { textLength = this._getLength(text, options); }