-
@yoavweiss @etportis @cloudinary I just let Mapbox load it, it’s a sprite for a map style. I already had to find where it loads before, I’ll share the part of the code ASAP.
-
@yoavweiss @etportis @cloudinary The loading happens here: github.com/mapbox/mapbox-gl-js/blob/d66ff288e7ab2e917e9e676bee942dd6a46171e7/src/style/load_sprite.js#L28 They manage two densities with github.com/mapbox/mapbox-gl-js/blob/d66ff288e7ab2e917e9e676bee942dd6a46171e7/src/style/load_sprite.js#L17 On my side: The URL comes from here: github.com/nhoizey/nicolas-hoizey.photo/blob/main/src/map/mapbox-style-terrain.json.njk#L40 And I prepend the Cloudinary URL here: github.com/nhoizey/nicolas-hoizey.photo/blob/main/assets/js/map.js#L37-L41
-
@yoavweiss @etportis @cloudinary It's a bit convoluted, I know… 😅 The thing is: - they force the .png extension - I want to have local sprite URLs in dev and Cloudinary optimized prod URLs - I want a "hash" in the URL (only in prod) for caches - but no hash in pristine filenames: github.com/nhoizey/nicolas-hoizey.photo/blob/main/src/_redirects