<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Hello everybody,</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">I would try to use a GML layer like base layer but I always obtain errors. I used this code to load a gml file:</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div><div><span style="font-family: 'times new roman', 'new york', times, serif;">    mapx=new OpenLayers.Map('lmap',</span></div><div><span style="font-family: 'times new roman', 'new york', times, serif;">    <span class="Apple-tab-span" style="white-space:pre">  </span>{projection: new
 OpenLayers.Projection('EPSG:900913'),</span></div><div><span style="font-family: 'times new roman', 'new york', times, serif;">    <span class="Apple-tab-span" style="white-space:pre"> </span>displayProjection:new OpenLayers.Projection('EPSG:4326'),</span></div><div><span style="font-family: 'times new roman', 'new york', times, serif;">    <span class="Apple-tab-span" style="white-space:pre"> </span>controls: []</span></div><div><span style="font-family: 'times new roman', 'new york', times, serif;">    <span class="Apple-tab-span" style="white-space:pre">      </span>}</span></div><div><span style="font-family: 'times new roman', 'new york', times, serif;">    <span class="Apple-tab-span" style="white-space:pre"> </span>);</span></div><div><span style="font-family: 'times new roman', 'new york', times, serif;">    <span class="Apple-tab-span" style="white-space:pre">        </span></span></div><div><span
 style="font-family: 'times new roman', 'new york', times, serif;">    <span class="Apple-tab-span" style="white-space: pre; ">        </span></span></div></div><div><div><font face="times new roman, new york, times, serif">    var layer = new OpenLayers.Layer.Vector("GML", {</font></div><div><font face="times new roman, new york, times, serif">        strategies: [new OpenLayers.Strategy.Fixed()],</font></div><div><font face="times new roman, new york, times, serif">        </font><span style="font-family: 'times new roman', 'new york', times, serif; ">projection: new OpenLayers.Projection('EPSG:900913')</span></div><div><font face="times new roman, new york, times, serif"><span class="Apple-tab-span" style="white-space:pre">    </span>isBaseLayer:true,</font></div><div><font face="times new roman, new york, times, serif">        protocol: new
 OpenLayers.Protocol.HTTP({</font></div><div><font face="times new roman, new york, times, serif">            url: "dati/catasto_ok.gml",</font></div><div><font face="times new roman, new york, times, serif">            format: new OpenLayers.Format.GML()</font><span class="Apple-tab-span" style="font-family: 'times new roman', 'new york', times, serif; white-space: pre; ">      </span></div><div><font face="times new roman, new york, times, serif">        })</font></div><div><font face="times new roman, new york, times, serif">    }); </font></div><div><font face="times new roman, new york, times, serif"><br></font></div><div><font face="times new roman, new york, times, serif">If I put the layer without the base layer option the layer is loaded perfectly (with a OSM base layer), but when I try to put the GML file like base layer this
 disappear.</font></div><div><font face="times new roman, new york, times, serif"><br></font></div><div><font face="times new roman, new york, times, serif">Someone can help me?</font></div><div><font face="times new roman, new york, times, serif"><br></font></div><div><font face="times new roman, new york, times, serif">Thanks a lot!</font></div><div><font face="times new roman, new york, times, serif"><br></font></div><div><font face="times new roman, new york, times, serif">Francesco</font></div><div><font face="times new roman, new york, times, serif"><br></font></div><div><font face="times new roman, new york, times, serif"><br></font></div></div></div></body></html>