Skip to content

Instantly share code, notes, and snippets.

@jehb
Last active November 17, 2015 18:35
Show Gist options
  • Select an option

  • Save jehb/0d6d3eb9968316726e7f to your computer and use it in GitHub Desktop.

Select an option

Save jehb/0d6d3eb9968316726e7f to your computer and use it in GitHub Desktop.
var map = L.map('map').setView([35.7753,-78.6378], 16);
L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6IjZjNmRjNzk3ZmE2MTcwOTEwMGY0MzU3YjUzOWFmNWZhIn0.Y8bhBaUMqFiPrDRW9hieoQ', {
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>, ' +
'Imagery © <a href="http://mapbox.com">Mapbox</a>',
id: 'mapbox.streets'
}).addTo(map);
L.marker([35.7753,-78.6378]).addTo(map)
.bindPopup("<b>Hello world!</b><br />I am a popup.").openPopup();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment