Last active
December 17, 2017 04:48
-
-
Save christianhent/270530e2a79acc11d279bb1cb0afec47 to your computer and use it in GitHub Desktop.
shows a CartoDB layer with Leaflet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
// | |
var tile = new L.TileLayer('http://a.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png', { | |
maxZoom: 18, | |
attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> ' + | |
'contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">' + | |
'CC-BY-SA</a>. Tiles © <a href="http://carto.com/">' + | |
'CARTO</a>' | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment