title: Tiles in the wrong projection? (mbtiles mbutil openlayers.tms)
body: <p>I am having trouble taking my tilemill project
  to my webserver and using OpenLayers to draw
  my map.</p>
  
  <p>We are using tilemill to style the map > mbtiles
  export > mbutil to directory > openlayers.tms</p>
  
  <p>I have attached below the code we are using,
  which is a modification of the OpenLayers.TMS
  example.</p>
  
  <p>Here is the link to my map and you will see the
  problem, first hand:</p>
  
  <p><a href="http://wrimaptube.nfshost.com/openlayers/examples/tms_mbtiles.html" rel="nofollow">MAP</a></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;OpenLayers Tiled Map Service Example&lt;/title&gt;
  &lt;script src="../lib/OpenLayers.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
      var lon = 0;
      var lat = 0;
      var zoom = 0;
      var map, layer;
  
      function init(){
          OpenLayers.ImgPath = "http://js.mapbox.com/theme/dark/";
          map = new OpenLayers.Map( 'map', {maxResolution:1.40625/2} );
          layer = new OpenLayers.Layer.TMS( "ttc",
                  "http://wrimaptube.nfshost.com/ttctiles3/", {layername: 'ttc3', type:'png'} );
          map.addLayer(layer);
          map.addControl(new OpenLayers.Control.LayerSwitcher());
          map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
      }
      function addTMS() {
          l = new OpenLayers.Layer.TMS(
              OpenLayers.Util.getElement('layer').value,
              OpenLayers.Util.getElement('url').value,
              {
                  'layername': OpenLayers.Util.getElement('layer').value,
                  'type': OpenLayers.Util.getElement('type').value
          });
          map.addLayer(l);
          map.setBaseLayer(l);
      }
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body onload="init()"&gt;
  &lt;div id="map" style='width: 1024px; height : 500px;'&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Suggestions?</p>
  
  <p>Thanks a lot,</p>
  
  <p>Michael</p>