We've run into a problem using mapbox.js with atlas. How the src/request module detects the protocol is a bit too strict and does not take into account alternate tile endpoints such as with Mapbox Atlas.
Is there a reason the regex is strict to mapbox url's? /^(https?:)?(?=\/\/(.|api)\.tiles\.mapbox\.com\/)
If not could the regex be simplified to /^(https?:)
We've run into a problem using mapbox.js with atlas. How the
src/request
module detects the protocol is a bit too strict and does not take into account alternate tile endpoints such as with Mapbox Atlas./^(https?:)?(?=\/\/(.|api)\.tiles\.mapbox\.com\/)
/^(https?:)