<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>AW: [OpenLayers-Users] Is drawing lines (canvas.drawLine) in        Internet Explorer possible?</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><SPAN LANG="de-ch"><FONT SIZE=2 FACE="Arial">Hello Nick.</FONT></SPAN>

<BR><SPAN LANG="de-ch"><FONT SIZE=2 FACE="Arial">Thanks for thedvice, it actually worked to return the distance between 2 points:</FONT></SPAN>
</P>

<P><SPAN LANG="de-ch"><B><FONT SIZE=2 FACE="Arial">OpenLayers.Util.distVincenty(new OpenLayers.LonLat(7,47),new OpenLayers.LonLat(8,47))</FONT></B></SPAN>
</P>

<P><SPAN LANG="de-ch"><FONT SIZE=2 FACE="Arial">But as soon as I try to calculate with these values, JavaScript returns a &quot;NaN&quot;&#8230;. For example:<BR>
</FONT></SPAN>

<BR><SPAN LANG="de-ch"><B><FONT SIZE=2 FACE="Arial">OpenLayers.Util.distVincenty(new OpenLayers.LonLat(7,47),new OpenLayers.LonLat(8,47))+OpenLayers.Util.distVincenty(new OpenLayers.LonLat(7,47),new OpenLayers.LonLat(8,47))</FONT></B></SPAN></P>

<P><SPAN LANG="de-ch"><FONT SIZE=2 FACE="Arial">It also doesn't work with</FONT><B> <FONT SIZE=2 FACE="Arial">parseFloat()</FONT></B><FONT SIZE=2 FACE="Arial">. How can I add different distances to one big distance?</FONT></SPAN>
</P>

<P><SPAN LANG="de-ch"><FONT SIZE=2 FACE="Arial">By the way: This function is not documented in Util:<BR>
</FONT></SPAN><A HREF="http://openlayers.org/doc/reference.html#OpenLayers.Util"><SPAN LANG="de-ch"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">http://openlayers.org/doc/reference.html#OpenLayers.Util</FONT></U></SPAN></A><SPAN LANG="de-ch"></SPAN>
</P>

<P><SPAN LANG="de-ch"><FONT SIZE=2 FACE="Arial">Thank you.</FONT></SPAN>

<BR><SPAN LANG="de-ch"><FONT SIZE=2 FACE="Arial">Lucas</FONT></SPAN>
</P>
<BR>

<P><SPAN LANG="de-ch"><FONT SIZE=2 FACE="Arial">-----Ursprüngliche Nachricht-----</FONT></SPAN>

<BR><SPAN LANG="de-ch"><FONT SIZE=2 FACE="Arial">Von: users-bounces@openlayers.org [</FONT></SPAN><A HREF="mailto:users-bounces@openlayers.org"><SPAN LANG="de-ch"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">mailto:users-bounces@openlayers.org</FONT></U></SPAN></A><SPAN LANG="de-ch"><FONT SIZE=2 FACE="Arial">] Im Auftrag von Nick Whitelegg</FONT></SPAN>

<BR><SPAN LANG="de-ch"><FONT SIZE=2 FACE="Arial">Gesendet: Mittwoch, 11. April 2007 17:47</FONT></SPAN>

<BR><SPAN LANG="de-ch"><FONT SIZE=2 FACE="Arial">An: users@openlayers.org</FONT></SPAN>

<BR><SPAN LANG="de-ch"><FONT SIZE=2 FACE="Arial">Betreff: Re: [OpenLayers-Users] Is drawing lines (canvas.drawLine) in Internet Explorer possible?</FONT></SPAN>
</P>

<P><SPAN LANG="de-ch"><FONT SIZE=2 FACE="Arial">&gt;Is it possible to get the distance between markers in km? Haven't seen</FONT></SPAN>

<BR><SPAN LANG="de-ch"><FONT SIZE=2 FACE="Arial">that anywhere. </FONT></SPAN>

<BR><SPAN LANG="de-ch"><FONT SIZE=2 FACE="Arial">There is a function called OpenLayers.Util.distVincenty() which takes two LonLat objects and calculates the distance in km between them.</FONT></SPAN></P>

<P><SPAN LANG="de-ch"><FONT SIZE=2 FACE="Arial">var d =&nbsp; OpenLayers.Util.distVincenty (pos1,pos2);</FONT></SPAN>
</P>

<P><SPAN LANG="de-ch"><FONT SIZE=2 FACE="Arial">Nick</FONT></SPAN>

<BR><SPAN LANG="de-ch"><FONT SIZE=2 FACE="Arial">_______________________________________________</FONT></SPAN>

<BR><SPAN LANG="de-ch"><FONT SIZE=2 FACE="Arial">Users mailing list</FONT></SPAN>

<BR><SPAN LANG="de-ch"><FONT SIZE=2 FACE="Arial">Users@openlayers.org</FONT></SPAN>

<BR><SPAN LANG="de-ch"></SPAN><A HREF="http://openlayers.org/mailman/listinfo/users"><SPAN LANG="de-ch"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">http://openlayers.org/mailman/listinfo/users</FONT></U></SPAN></A><SPAN LANG="de-ch"></SPAN>
</P>

</BODY>
</HTML>