Have you tried doing a load on that projection by itself first prior to using it? Normally Projections are loaded via async call instead of directly putting it in the code like this. It may need to process it prior to OpenLayers using it. Just do 'new Proj4js.Proj("EPSG:26914")'. Also check that there aren't 404 requests in your Firebug/webkit console. There's a bug in Proj4js related to initial loading of projections, I put a patch in but probably hasn't gotten out to the downloads page yet.<br>
<br>-Drew<br><br><div class="gmail_quote">On Fri, Jul 22, 2011 at 5:20 PM, Justin Penka <span dir="ltr"><<a href="mailto:jpenka@sdrmaps.com">jpenka@sdrmaps.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Hello all,<u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Been playing with the new mapquery today and thus far really
enjoying working with it. One thing im getting hung up on is the proj4js
projection stuff. I been banging my head against this for a while so it’s
most likely something simple that im overlooking. Anyway I basically modified
the existing demo code and have been trying to use a UTM projection with no
luck. Does anyone see something obvious in this code that im doing wrong?<u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"><!doctype html><u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"><html><u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"><head><u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> <meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0,
maximum-scale=1.0;"><u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> <meta
name="apple-mobile-web-app-capable" content="yes"><u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> <title>MapQuery WMS other projection
example</title><u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> <link rel='StyleSheet' type='text/css'
href='style/style.css'/> <u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> <script src="../lib/openlayers/OpenLayers.js"
type="text/javascript"></script><u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> <script
src="../lib/jquery/jquery-1.4.4.js"
type="text/javascript"></script><u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> <script
src="../src/jquery.mapquery.core.js"
type="text/javascript"></script><u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> <script type="text/javascript"
src="<a href="http://proj4js.org/lib/proj4js-combined.js" target="_blank">http://proj4js.org/lib/proj4js-combined.js</a>"></script>
<!--You need to include proj4js if you use different coordinate systems,
TODO: smo 20110614 do this automatically?--><u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> <script type="text/javascript"><u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> $(document).ready(function() {<u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> Proj4js.defs["EPSG:26914"] =
"+title=NAD83 / UTM zone 14N +proj=utm +zone=14 +ellps=GRS80 +datum=NAD83
+units=m +no_defs";<u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> //initialise mapquery with a
non-spherical mercator WMS <u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> var map = $('#map').mapQuery({<u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">
maxExtent:[683998,3742974,731202,3785937], // im assuming that this is
the extent of the layer as defined in the 26914 proj system<u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">
projection:'EPSG:26914', <u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> layers:[{<u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">
type:'wms',<u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">
projection:'EPSG:26914', <u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">
url:'<a href="http://dweb81.h0st1le.webfactional.com/lovecounty/map/ogcserver" target="_blank">http://dweb81.h0st1le.webfactional.com/lovecounty/map/ogcserver</a>',<u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">
layers:'fire_boundaries',<u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">
format: 'image/png'<u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">
}]<u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">
}).data('mapQuery');
// we directly get the mapQuery map object to be able to set the initial extent
<u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> map.goto({box:[102, 15, -96,
81]});
// we zoom to a area defined as a box in wgs84 (long/lat) <u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> });<u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </script><u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"></head><u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"><body><u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> <div id="map"
class="map"></div><u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"></body><u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"></html><u></u><u></u></span></font></p>
</div>
</div>
<br>_______________________________________________<br>
MapQuery mailing list<br>
<a href="mailto:MapQuery@lists.osgeo.org">MapQuery@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapquery" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapquery</a><br>
<br></blockquote></div><br>