Skip to content

Instantly share code, notes, and snippets.

@tmcw
Created July 28, 2013 13:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmcw/6098660 to your computer and use it in GitHub Desktop.
Save tmcw/6098660 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
</style>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.ie.css" />
<![endif]-->
<script src="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.js"></script>
</head>
<body>
<div id='map'></div>
<script type='text/javascript'>
var map = L.map('map')
.setView([40, -74.50], 9);
L.geoJson({
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": { },
"geometry": {
"type": "Polygon",
"coordinates": [
[
[-80, -20],
[-80, 20],
[80, 20],
[80, -20]
],
[]
]
}
}
]
}).addTo(map);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment