Skip to content

Instantly share code, notes, and snippets.

@ng-the-engineer
Created May 29, 2021 19:07
Show Gist options
  • Save ng-the-engineer/b0339b323d850d3329aedebae9b21635 to your computer and use it in GitHub Desktop.
Save ng-the-engineer/b0339b323d850d3329aedebae9b21635 to your computer and use it in GitHub Desktop.
Code snippet of tutorial running tracker
L.tileLayer(
"https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}",
{
attribution:
'Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, Imagery © <a href="https://www.mapbox.com/">Mapbox</a>',
maxZoom: 18,
id: "mapbox/streets-v11",
tileSize: 512,
zoomOffset: -1,
accessToken:
"YOUR_API_KEY",
}
).addTo(map);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment