From 6e15dcc069df6b697dca4d782267491486c214c1 Mon Sep 17 00:00:00 2001 From: Strix Nebulosa Date: Mon, 15 Apr 2019 09:55:03 -0600 Subject: [PATCH] Update leaflet.textpath.js --- leaflet.textpath.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }