<br><div class="gmail_quote">Hi Again,<br>I&#39;ve sloppily worked around the issue by just creating another div with the id &#39;map,&#39; which at least loads my data into the right place. However, now my controls are missing (zoom etc) and the permalink, scale, and coordinates have all been moved to the top left corner. I assume this is a fairly simple gotcha that I&#39;m over looking...any help and your patience is appreciated.<br>
<br>1) what happened to the controls?<br>2) why is my scale bar displaying NaM/NaFt (I know this must have to do with the projection or the lack of one in my gml)<br>3) why did the permalink, scale, and mouseposition get moved to the topleft corner?<br>
<br>here&#39;s my code<br>    var lon = 675833.7195;<br>        var lat = 3740782.6657;<br>        var zoom = 2;<br>        var map, layer;<br>        var options = {<br>        maxResolution: &#39;auto&#39;,<br>        maxExtent: new OpenLayers.Bounds(568446.75, 3565307.25, 813860.25, 3781736.25),<br>
        projection: new OpenLayers.Projection(&quot;EPSG:22332&quot;),<br>        units: &quot;meters&quot;<br>        };<br>        <br>        //Map Creation<br>   function init(){<br>           map = new OpenLayers.Map(&#39;map&#39;, options);<br>
        var topo = new OpenLayers.Layer.GML(&quot;Jerba Topography&quot;, &quot;topo.gml&quot;,  {isBaseLayer: true, styleMap: new OpenLayers.StyleMap({strokeWidth: 1, strokeColor: &quot;#000000&quot;}) });<br>         map.addLayer(topo);<br>
         var sites = new OpenLayers.Layer.GML(&quot;Sites&quot;, &quot;sites.gml&quot;, {styleMap: new OpenLayers.StyleMap({pointRadius: 2.5, fillColor: &quot;#CCCCCC&quot;}, {projection: new OpenLayers.Projection(&quot;EPSG:22332 &quot;)})<br>
        });<br>         map.addLayer(sites);<br>         map.addControl( new OpenLayers.Control.LayerSwitcher());<br>            map.addControl( new OpenLayers.Control.MousePosition());<br>            map.addControl( new OpenLayers.Control.OverviewMap());<br>
            map.addControl( new OpenLayers.Control.ScaleLine());<br>            map.addControl(new OpenLayers.Control.Permalink());<br>            map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);<br>            }<br>

</div><br>