Skip to content

Instantly share code, notes, and snippets.

@sdeleuze
Created April 11, 2012 23:03
Show Gist options
  • Save sdeleuze/2363356 to your computer and use it in GitHub Desktop.
Save sdeleuze/2363356 to your computer and use it in GitHub Desktop.
MixIT 2012 fun map
<!DOCTYPE html>
<html>
<head>
<title>MixIT fun map</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="http://leaflet.cloudmade.com/dist/leaflet.css" />
<script src="http://leaflet.cloudmade.com/dist/leaflet.js"></script>
<script>
function init(){
var imageBounds = new L.LatLngBounds(
new L.LatLng(40.712216,-74.22655),
new L.LatLng(40.773941,-74.12544));
var image = new L.ImageOverlay("http://www.mix-it.fr/public/images/programme_site.png", imageBounds);
var map = new L.Map('map', {center: new L.LatLng(40.7431, -74.17), zoom: 14});
map.addLayer(image);
}
</script>
</head>
<body onLoad="init()">
<div id="map" style="width: 800px; height: 600px"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment