Skip to content

Instantly share code, notes, and snippets.

@christianhent
Last active December 17, 2017 04:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christianhent/270530e2a79acc11d279bb1cb0afec47 to your computer and use it in GitHub Desktop.
Save christianhent/270530e2a79acc11d279bb1cb0afec47 to your computer and use it in GitHub Desktop.
shows a CartoDB layer with Leaflet
<script>
//
var tile = new L.TileLayer('http://a.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png', {
maxZoom: 18,
attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> ' +
'contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">' +
'CC-BY-SA</a>. Tiles &copy; <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