Skip to content

Instantly share code, notes, and snippets.



Last active Jul 13, 2017
What would you like to do?
Leaflet.js Tips, Step 1 (boilerplate)
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<link rel="stylesheet" href="" />
<script src=""></script>
<script src=''></script>
<style type="text/css">
#map {
width: 600px;
height: 400px;
<div id="map"></div>
<script type="text/javascript">
var mapboxTiles = L.tileLayer('https://{s}{z}/{x}/{y}.png', {
attribution: '<a href="" target="_blank">Terms &amp; Feedback</a>'
var map ='map')
.setView([42.444508,-76.499491], 12);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment