To be honest, this has been an issue for a while but it hasn't been a priority for me. The polyline rendered on a map is not accurate.
I've tested the changing/removing the different parameters (padding,width,stroke,dimenions,bounds etc) but nothing changes the result.
Here is the Google Polyline Decoded correctly.

-107.64831,37.90725|-107.64828,37.90729|-107.64833,37.90733|-107.64902,37.90735|-107.64921,37.90732|-107.64962,37.90716|-107.65094,37.90711|-107.65144,37.90714|-107.65205,37.90695|-107.65272,37.90682|-107.65317,37.90691|-107.65356,37.90691|-107.65421,37.90681|-107.65449,37.90692|-107.65463,37.90694|-107.65482,37.90684|-107.65533,37.90642|-107.65559,37.90599|-107.65575,37.9058|-107.65585,37.90575|-107.656,37.90571|-107.6565,37.90571|-107.65785,37.90559|-107.65791,37.90562|-107.65792,37.90565|-107.65772,37.90593|-107.65768,37.90607|-107.65772,37.90615|-107.65785,37.9062|-107.65833,37.90627|-107.65873,37.90653|-107.65913,37.90668|-107.65958,37.90671|-107.66054,37.9066|-107.66116,37.9066|-107.66166,37.9065|-107.662,37.90648|-107.66252,37.90649|-107.66288,37.90657|-107.66316,37.90676|-107.66314,37.90679|-107.66311,37.90677|-107.66314,37.90676|-107.66306,37.90675|-107.66312,37.90675|-107.66317,37.90681|-107.66334,37.90717|-107.66336,37.90727|-107.66341,37.9073|-107.66345,37.90745|-107.66345,37.90776|-107.66353,37.90784|-107.66359,37.90777|-107.66358,37.90774|-107.6637,37.90733|-107.66373,37.90686|-107.66384,37.90682|-107.66407,37.9076|-107.66421,37.90777|-107.6644,37.90795|-107.66481,37.90823|-107.66499,37.90846|-107.66534,37.90866|-107.66549,37.90879|-107.66556,37.90879|-107.66559,37.90873|-107.6655,37.90836|-107.66561,37.90799|-107.6655,37.90747|-107.66558,37.90722|-107.66571,37.90705|-107.66574,37.90677|-107.66584,37.90675|-107.66594,37.90683|-107.66613,37.90711|-107.66616,37.90724|-107.66612,37.90725|-107.66612,37.90721|-107.66608,37.90731|-107.6671,37.90789|-107.66748,37.90804|-107.66789,37.9083|-107.66799,37.90839|-107.66812,37.90867|-107.6684,37.90893|-107.66871,37.90905|-107.66933,37.90919|-107.66973,37.90921|-107.67018,37.90928|-107.67031,37.90926|-107.67049,37.90914|-107.67041,37.90921|-107.67045,37.90915|-107.67054,37.90919|-107.67054,37.90924|-107.67046,37.90928|-107.67049,37.90927|-107.67044,37.90934|-107.67075,37.91009|-107.67098,37.91082|-107.67102,37.91111|-107.67077,37.91173|-107.67077,37.91186|-107.67089,37.91221|-107.67075,37.9124|-107.67065,37.91264|-107.67059,37.91306|-107.67064,37.91334|-107.6706,37.91394|-107.67064,37.91418|-107.67059,37.9145|-107.67041,37.91477|-107.67038,37.91499|-107.67016,37.91552|-107.67001,37.91568|-107.67,37.91573|-107.67005,37.91576|-107.67011,37.91576|-107.67041,37.91564|-107.67063,37.9155|-107.67088,37.91528|-107.671,37.91525|-107.67105,37.9153|-107.67108,37.91567|-107.67141,37.91632|-107.67149,37.91637|-107.67163,37.91637|-107.67211,37.9162|-107.6723,37.9161|-107.67247,37.91589|-107.67256,37.91586|-107.67278,37.9161|-107.67315,37.91667|-107.67334,37.91708|-107.67336,37.91729|-107.67346,37.91762|-107.67343,37.91792|-107.67326,37.91878|-107.67329,37.91896|-107.67372,37.91963|-107.67412,37.92016|-107.67431,37.92059|-107.67465,37.92117|-107.67489,37.92173|-107.67496,37.92225|-107.67508,37.92253|-107.67513,37.92278|-107.67563,37.92321|-107.67586,37.92354|-107.67605,37.92365|-107.6762,37.92382|-107.67635,37.92394|-107.67639,37.92403|-107.67638,37.92426|-107.67641,37.92438|-107.67662,37.9246|-107.67656,37.9249|-107.67628,37.92548|-107.67631,37.92577|-107.67638,37.92583|-107.67658,37.9259|-107.67661,37.92601|-107.67656,37.92614|-107.67636,37.92632|-107.67634,37.92639|-107.67644,37.92646|-107.67696,37.92655|-107.6771,37.92663|-107.67729,37.92697|-107.67733,37.92718|-107.67751,37.92738|-107.67756,37.92755|-107.67781,37.92778|-107.67808,37.92817|-107.67814,37.92845|-107.67802,37.92879|-107.67784,37.92891|-107.67786,37.92911|-107.67771,37.92933|-107.67766,37.92946|-107.6775,37.92964|-107.67743,37.92996|-107.67725,37.93019|-107.6771,37.93045|-107.67688,37.93069|-107.67672,37.931|-107.67642,37.93115|-107.67622,37.93132|-107.67526,37.9318|-107.6748,37.93217|-107.67443,37.93231|-107.67407,37.9325|-107.67362,37.93265|-107.67329,37.93295|-107.67292,37.93336|-107.67279,37.93369|-107.67243,37.93388|-107.67217,37.93413|-107.67177,37.93446|-107.67162,37.9348|-107.67157,37.93506|-107.67133,37.93548|-107.67088,37.93574|-107.67049,37.93581|-107.6703,37.9359|-107.66982,37.93626|-107.66955,37.93662|-107.66926,37.93679|-107.66918,37.93688|-107.66916,37.93698|-107.6692,37.93712|-107.66932,37.93734|-107.66977,37.93768|-107.67006,37.93776|-107.67024,37.93788|-107.6711,37.93865|-107.67125,37.93884|-107.67132,37.93898|-107.6713,37.939|-107.67134,37.93899|-107.6713,37.93896|-107.67134,37.93898|-107.67125,37.93896|-107.6713,37.93901|-107.67129,37.93897|-107.67133,37.939|-107.67129,37.93895|-107.67133,37.93902|-107.6713,37.93899|-107.67133,37.93897|-107.67134,37.93899|-107.67128,37.93899|-107.67131,37.93902|-107.67133,37.939|-107.6713,37.93897|-107.67134,37.93898|-107.6713,37.93897|-107.67129,37.93899|-107.67129,37.93894|-107.67132,37.93899|-107.67127,37.93898|-107.67131,37.93902|-107.67129,37.93902|-107.67129,37.93897|-107.67134,37.93899|-107.67128,37.93897|-107.67131,37.93902|-107.67128,37.93897|-107.6713,37.93895|-107.67131,37.93898|-107.67127,37.93894|-107.67132,37.93899|-107.67133,37.93892|-107.67141,37.93884|-107.67135,37.93894|-107.67129,37.93897|-107.67136,37.93901|-107.67141,37.93898|-107.67142,37.93893|-107.67139,37.93889|-107.67112,37.9387|-107.67019,37.9378|-107.6701,37.93775|-107.66979,37.9377|-107.66939,37.93741|-107.66933,37.93745|-107.66931,37.93752|-107.66924,37.93755|-107.6693,37.9375|-107.6693,37.93742|-107.66923,37.93721|-107.66914,37.93715|-107.66924,37.93707|-107.66929,37.93708|-107.66917,37.9371
Here's another example following the Tennessee river portion running across northern alabama:
To be honest, this has been an issue for a while but it hasn't been a priority for me. The polyline rendered on a map is not accurate.
{ "padding": 0.4, "width": 3.5, "stroke": "#FF0000", "linecap": "round", "linejoin": "round", "path": "enc:iwjfF|``pSGEGHChCDd@^pAHfGEbBd@xBXdCQxA?lAR`CUv@CZRd@rAdBtAr@d@^HRF\\?bBVlGEJE@w@g@[GOFIXM~As@nA]nAExAT~D?zBRbBBbAAfBOfAe@v@ECBE@D@O?JKHgA`@SBEH]F}@?ONLJDApAV|ADFT{Cl@a@Zc@d@w@pAm@b@g@dAY\\?LJDhAQhATfBUp@N`@Xv@DBRORw@d@YDAGF?SGsBjE]jAs@pAQRw@Xs@v@W|@[zBCnAMxABXVb@MOJFGPI?GO@DMIuC|@qCl@y@F{Bq@Y?eAVe@[o@SsAKw@HwBGo@F_AIu@c@k@EiBk@_@]IAEH?JVz@Zj@j@p@DVIHiADaC`AIN?Z`@~ARd@h@`@DPo@j@qBhAqAd@i@BaAR{@EkDa@c@DeCtAiBnAuAd@sBbAoBn@gBLw@Vq@HuAbBaAl@Ud@a@\\W\\QFm@AWDk@h@{@KsBw@y@DKLMf@UDYIc@g@MCMRQfBOZcAd@i@Fg@b@a@Hm@p@mAt@w@JcAWWc@g@Bk@]YIc@_@_AMm@c@s@]o@k@}@_@]{@a@g@_B_EiA{A[iAe@gA]yA{@aAqAiAaAYe@gAq@s@aAoAcA]s@IsAo@s@yAMmAQe@gA_BgAu@a@y@QOSC[Fk@VcAxAOx@Wb@yCjDe@\\[LCC@FDGCFBQIHFAEFHGMFDEBDC@?KEDBBDEAF@GCAH?ID@IGF?CH?CHBKIDHEBBE@FGIHL@NNSKEKGLDHH@FEd@u@rDyDHQH}@x@oAGKMCEMHJN?h@MJQNRAHCW" }Server: http://localhost:8080/styles/premium/static/-107.67814,37.90559,-107.64828,37.93902/512x512@2x.webp
I've tested the changing/removing the different parameters (padding,width,stroke,dimenions,bounds etc) but nothing changes the result.
It's also not the style, here it is with a satellite layer:
Here is the Google Polyline Decoded correctly.

I've also attempted with non-encoded path:
Here is the same gps track on a Maplibre GL JS Map with my custom style:
Here's another example following the Tennessee river portion running across northern alabama:
{ "padding": 0.4, "width": 3.5, "stroke": "#FF0000", "linecap": "round", "linejoin": "round", "path": "-88.2370806,35.0704758|-88.2027099,35.0677534|-88.1960575,35.0359858|-88.1949487,34.9987567|-88.1406208,34.9169747|-88.1018151,34.8960618|-88.0208776,34.9069736|-87.9709846,34.8851486|-87.944375,34.8487608|-87.9188742,34.8087156|-87.8789598,34.7759369|-87.8434803,34.7522553|-87.7470205,34.741323|-87.6727354,34.7886857|-87.6051027,34.8041638|-87.5463398,34.8251001|-87.504208,34.8251001|-87.4576412,34.8068949|-87.4121831,34.8014326|-87.3700513,34.802343|-87.2891138,34.7495224|-87.2403295,34.7495224|-87.1605007,34.7322117|-87.0691089,34.6626197|-86.9903888,34.6343445|-86.9393871,34.6151848|-86.8578721,34.5574737|-86.8467847,34.5574737|-86.8467847,34.5574737" }Actual:
Expected: