You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In lib/middleware.js, the function normalizePaths drops the host portion of the URI for the id and source entries in the body object. This means that if your source is a remote TileJSON URI on a different host, then any attempt to save the style results in an error saying "Invalid URL".
For the specific case that I am experiencing, the patch below fixes it. However, I assume normalizePaths was dropping the host for a reason, so perhaps this is not an appropriate fix for everyone (refs #1278), but I'd like to try and find a fix which allows us to use remote TileJSON sources.
In
lib/middleware.js, the functionnormalizePathsdrops the host portion of the URI for theidandsourceentries in the body object. This means that if your source is a remote TileJSON URI on a different host, then any attempt to save the style results in an error saying "Invalid URL".For the specific case that I am experiencing, the patch below fixes it. However, I assume
normalizePathswas dropping the host for a reason, so perhaps this is not an appropriate fix for everyone (refs #1278), but I'd like to try and find a fix which allows us to use remote TileJSON sources.