Skip to content

Instantly share code, notes, and snippets.

@christianhent christianhent/map.php
Last active Dec 17, 2017

Embed
What would you like to do?
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
You can’t perform that action at this time.