Skip to content

Instantly share code, notes, and snippets.

@fdaudens
Created April 16, 2015 19:22
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 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