<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content=text/html;charset=utf-8><LINK media=all
href="/webmail/static/deg/css/wysiwyg-3933289048.css" type=text/css
rel=stylesheet>
<META content="MSHTML 6.00.6002.18226" name=GENERATOR></HEAD>
<BODY id=MailContainerBody
style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-TOP: 15px" leftMargin=0
topMargin=0 CanvasTabStop="true" name="Compose message area">
<DIV><FONT face=Arial size=2>You need the div reference in your map
constructor.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman" size=3>var map = new
OpenLayers.Map('gxmap');</FONT><BR></FONT></DIV>
<DIV style="FONT: 10pt Tahoma">
<DIV><BR></DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=shaun.anderson@verizon.net
href="mailto:shaun.anderson@verizon.net">shaun.anderson@verizon.net</A> </DIV>
<DIV><B>Sent:</B> Friday, April 23, 2010 8:06 PM</DIV>
<DIV><B>To:</B> <A title=users@geoext.org
href="mailto:users@geoext.org">users@geoext.org</A> </DIV>
<DIV><B>Subject:</B> [Users] simple vector problems</DIV></DIV></DIV>
<DIV><BR></DIV>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>
<P>
<HR>
<P></P>_______________________________________________<BR>Users mailing
list<BR>Users@geoext.org<BR>http://www.geoext.org/cgi-bin/mailman/listinfo/users<BR></BODY></HTML>