Skip to content

Instantly share code, notes, and snippets.

@george-silva
Created July 31, 2012 03:09
Show Gist options
  • Save george-silva/3213175 to your computer and use it in GitHub Desktop.
Save george-silva/3213175 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>SIG SMTT</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="http://www.openlayers.org/api/OpenLayers.js"></script>
<script type="text/javascript">
var map;
function init(){
map = new OpenLayers.Map('map');
var wms = new OpenLayers.Layer.WMS(
"Blue Marble",
"http://localhost:8080/geoserver/wms/",
{layers:'toop:states'}
);
map.addLayers(wms);
map.zoomToMaxExtent()
}
</script>
</head>
<body onload="init()">
<div id="map" style="width: 600px; height: 300px"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment