Skip to content

Instantly share code, notes, and snippets.

@jbeezley
Created March 27, 2015 13:11
Show Gist options
  • Save jbeezley/0c535608be3bea502788 to your computer and use it in GitHub Desktop.
Save jbeezley/0c535608be3bea502788 to your computer and use it in GitHub Desktop.
JS Bin A minimial map with GeoJS // source http://jsbin.com/kutoku
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="A minimial map with GeoJS">
<meta charset="utf-8">
<title>JS Bin</title>
<script src="https://opengeoscience.github.io/geojs/js/v0.4.1/geo.ext.min.js"></script>
<script src="https://opengeoscience.github.io/geojs/js/v0.4.1/geo.min.js"></script>
<style id="jsbin-css">
html, body, #map {
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div id="map"></div>
<script id="jsbin-javascript">
var map = geo.map({node: '#map'});
map.createLayer('osm');
</script>
<script id="jsbin-source-css" type="text/css">html, body, #map {
width: 100%;
height: 100%;
}</script>
<script id="jsbin-source-javascript" type="text/javascript">var map = geo.map({node: '#map'});
map.createLayer('osm');</script></body>
</html>
html, body, #map {
width: 100%;
height: 100%;
}
var map = geo.map({node: '#map'});
map.createLayer('osm');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment