Skip to content

Instantly share code, notes, and snippets.

@fdaudens
Created April 16, 2015 19:22
Show Gist options
  • Save fdaudens/76b3c2cd96e2b5dc1712 to your computer and use it in GitHub Desktop.
Save fdaudens/76b3c2cd96e2b5dc1712 to your computer and use it in GitHub Desktop.
Change Leaflet layer
var map = L.map('map', {scrollWheelZoom: false }).setView([45.943,-119.723], 12);
L.tileLayer('http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png', {
maxZoom: 14,
}).addTo(map);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment