<div>Firebug doesn't pick anything up.</div><br><div class="gmail_quote">On Mon, Aug 3, 2009 at 8:54 PM, Christopher Schmidt <span dir="ltr"><<a href="mailto:crschmidt@metacarta.com">crschmidt@metacarta.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div class="h5">On Mon, Aug 03, 2009 at 08:35:10PM +0300, Nicholas Efremov-Kendall wrote:<br>
> Hi all,<br>
> Not sure what's going on here, and what/why I'm doing wrong.<br>
> I'm loading successfully a gml layer which isn't displaying in the right<br>
> place<br>
> var topo = new OpenLayers.Layer.GML ("Topography", "data/topo.gml",<br>
> {<br>
> style: {strokeWidth: 1, strokeColor:"#CCCCCC"},<br>
> }<br>
> );<br>
><br>
> when I add projection and format criteria, it doesn't display at all, let<br>
> alone in the wrong place, and the auto map.setCenter function doesn't work.<br>
> var topo = new OpenLayers.Layer.GML ("Topography", "data/topo.gml",<br>
> {<br>
> style: {strokeWidth: 1, strokeColor:"#CCCCCC"},<br>
> projection: new OpenLayers.Projection("EPSG:4326"),<br>
> format: OpenLayers.Format.GML,<br>
> }<br>
> );<br>
><br>
> Is there anything really obvious that I'm missing? thanks again, in advance<br>
<br>
</div></div>Are you using IE? If so, the trailing ',' after format will fail.<br>
Do you have a debugger/error reporting turned on? Check these things first<br>
for errors.<br>
<br>
Otherwise:<br>
<a href="http://docs.openlayers.org/help/minimize.html" target="_blank">http://docs.openlayers.org/help/minimize.html</a><br>
<br>
Regards,<br>
<font color="#888888">--<br>
Christopher Schmidt<br>
MetaCarta<br>
</font></blockquote></div><br>