Previously, the function normalizeSpriteURL could only handle URLs in the format /mapbox/streets-v12.png, /mapbox/streets-v12.json. This commit modifies the function to also accommodate URLs with density qualifiers, like /mapbox/streets-v12@2x.png, /mapbox/streets-v12@2x.json.
Previously, the function
normalizeSpriteURL
could only handle URLs in the format/mapbox/streets-v12.png
,/mapbox/streets-v12.json
. This commit modifies the function to also accommodate URLs with density qualifiers, like/mapbox/streets-v12@2x.png
,/mapbox/streets-v12@2x.json
.