[GIS] cartodb: ssl version of the light_all basemap

cartocarto-js

Is there an ssl version for cartodb light_all basemap ?

I am currently using the following code via leaflet.js

L.tileLayer('http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png', {
noWrap: true,
detectRetina: true
}).addTo(map);

Best Answer

you can use the following urls:

https://cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png

available subdomains are: abcd

you can use subdomains leaflet option http://leafletjs.com/reference.html#tilelayer-subdomains

Related Question