<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 very new to OpenLayers. I am doing some testing and trying to use a GML file for a basemap.<br><br>I have the code below, but it doesn't seem to work. I don't know if there is an error in my code, or if it's my projection. The GML is in Massachusetts stateplane meters NAD83. So I've tried to set the projection to that.<br><br>When the page loads I get the default OpenLayers pan and zoom controls. And when I shift+drag I get the rectangle, but there is no vector data displayed.<br><br>please help<br>thanks<br><br>&lt;html&gt;<br>&lt;head&gt;<br>&lt;title&gt;Open Layers Test&lt;/title&gt;<br>&lt;script type="text/javascript" src="OpenLayers/OpenLayers.js" &lt;/script&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>&lt;div style="width:100%; height:100%" id="map"&gt;&lt;/div&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;script defer="defer" type="text/javascript"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var map = new OpenLayers.Map('map');<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var layer = new OpenLayers.Layer.Vector("GML", {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; isBaseLayer: true,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; projection: new OpenLayers.Projection("EPSG:26986"),<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; protocol: new OpenLayers.Protocol.HTTP({<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; url: "BikeTrails.gml",<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; format: new OpenLayers.Format.GML()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; })<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; });<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; map.addLayer(layer);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; map.zoomToMaxExtent();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/script&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;<br></body></html>