Skip to content

Instantly share code, notes, and snippets.

@sweenzor
Forked from sweenzor/generate_geojson.py
Last active October 22, 2016 04:39
Show Gist options
  • Save sweenzor/5423902 to your computer and use it in GitHub Desktop.
Save sweenzor/5423902 to your computer and use it in GitHub Desktop.
Most basic leaflet.js map posible

most basic of leaflet maps

basically the most basic of leaflet maps posible

basically

<!DOCTYPE html>
<title>Most basic Leaflet</title>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.5/leaflet.js"></script>
<style>
#map { width: 960px; height: 500px;}
</style>
<p id="map"><p>
<script>
var map = new L.Map("map")
.setView(new L.LatLng(37.8, -96.9), 4)
.addLayer(new L.TileLayer("http://{s}.tile.cloudmade.com/3eb45b95929d472d8fe4a2a5dafbd314/998/256/{z}/{x}/{y}.png"));
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment