Skip to content

Commit

Permalink
Modify Sprite can't be written in relative path("sprite": "css/sprite…
Browse files Browse the repository at this point in the history
…"). mapbox#884
  • Loading branch information
zjp8369 committed May 22, 2022
1 parent a871f3c commit 43caea1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/mapbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export class RequestManager {
normalizeSpriteURL(url: string, format: string, extension: string, accessToken?: string): string {
if (!isMapboxURL(url))
{
return url + `${format}${extension}`;
return `url${format}${extension}`;
}
const urlObject = parseUrl(url);
urlObject.path = `/styles/v1${urlObject.path}/sprite${format}${extension}`;
Expand Down

0 comments on commit 43caea1

Please sign in to comment.