<html><head>
<link media="all" type="text/css" href="/webmail/static/deg/css/wysiwyg-3933289048.css" rel="stylesheet"></head><body>
Hi All,<br>
<br>
I am new to GeoExt. I have been trying to use the tutorials and examples, but I can't seem to get past a simple problem.<br>
<br>
I tried to use this simple vector display code from the tutorial, and it doesn't work in Firefox or IE.<br>
<br>
<html><br>
<head><br>
<title> A Basic GeoExt Page </title><br>
<script src="ext-3.2.0/adapter/ext/ext-base.js" type="text/javascript"></script><br>
<script src="ext-3.2.0/ext-all.js" type="text/javascript"></script><br>
<script src="OpenLayers/OpenLayers.js" type="text/javascript"></script><br>
<script src="GeoExt/script/GeoExt.js" type="text/javascript"></script><br>
<script type="text/javascript"><br>
var vectorLayer = new OpenLayers.Layer.Vector();<br>
for (var i = 0; i < 10; i++){<br>
var x = -180 + Math.random() * 360;<br>
var y = -90 + Math.random() * 180;<br>
var numSides = 3 + Math.round(Math.random() * 6);<br>
vectorLayer.addFeature(<br>
new OpenLayers.Feature.Vector(<br>
OpenLayers.Geometry.Polygon.createRegularPolygon(<br>
new OpenLayers.Geometry.Point(x, y),<br>
numSides)));<br>
}<br>
var map = new OpenLayers.Map();<br>
map.addLayer(vectorLayer);<br>
</script><br>
</head><br>
<body><br>
<div id="gxmap"></div><br>
</body><br>
</html><br>
<br>
I've tried some other examples to try and display KML and GML files but
they haven't worked. Actually the Sundials example worked when I had
the WMS baselayer and the GML, but when I commented out the baselayer,
the GML wouldn't show by itself. Can you display a KML/GML file by
itself without a WMS baselayer?<br>
<br>
Any help would be appreciated.<br>
Thanks<br></body></html>