Legacy
Mapbox.js is no longer in active development. To learn more about our newer mapping tools see Mapbox GL JS.
L.mapbox.config.FORCE_HTTPS
By default, this is true
. Mapbox.js always requires HTTPS resources,
regardless of the host page's scheme.
Setting FORCE_HTTPS
to false
makes Mapbox.js auto-detect whether the page your map
is embedded in is using HTTPS or SSL, and matches: if you use HTTPS on your site,
it uses HTTPS resources.
Example:
L.mapbox.config.FORCE_HTTPS = false;