<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Jon,<br>
<br>
Have a look at the file proj4js/test/runtests.js - in there you'll
see a way to set a timer that checks the 'readyToUse' flag in a
timer as one way to wait until the projection definition is
ready. You may also be able to modify the 'defsLoaded' function
to call a user defined callback, that method is called by the onload
handler for the script tag that loads the definition.<br>
<br>
Mike<br>
<br>
<br>
<br>
On 11/1/2010 1:34 PM, Jon Britton wrote:
<blockquote
cite="mid:AANLkTi=rfsuhfyFzH_-x=a0RRghTzzwVjRO--UpzQjY4@mail.gmail.com"
type="cite">Hi,
<div><br>
</div>
<div>I'm trying to use proj4js in my project and will need to
project to various CRSs. The projection codes are submitted by
the user, so I have no way of knowing what CRSs will be used.
I've looked at the user guide and it says that proj4js can
dynamically look up CRS info at run-time, but I can't figure out
how to set this up. When I try and carry out a projection, I
just get the original values back...</div>
<div><br>
</div>
<div>Any help would be appreciated,</div>
<div><br>
</div>
<div>Jon</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
MetaCRS mailing list
<a class="moz-txt-link-abbreviated" href="mailto:MetaCRS@lists.osgeo.org">MetaCRS@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/metacrs">http://lists.osgeo.org/mailman/listinfo/metacrs</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Michael Adair
Senior Software Architect
DM Solutions Group Inc.
Office: (613) 565-5056 x26
<a class="moz-txt-link-abbreviated" href="mailto:madair@dmsolutions.ca">madair@dmsolutions.ca</a>
<a class="moz-txt-link-freetext" href="http://www.dmsolutions.ca">http://www.dmsolutions.ca</a>
<a class="moz-txt-link-freetext" href="http://research.dmsolutions.ca">http://research.dmsolutions.ca</a>
</pre>
</body>
</html>