Created
July 31, 2012 03:09
-
-
Save george-silva/3213175 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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