<div>As far as displaying the mouseposition I added this to that code.</div>
<div>&nbsp;</div>
<div><font size="2">
<p></p></font><font color="#0000ff" size="2">if</font><font size="2"> (</font><font color="#0000ff" size="2">this</font><font size="2">.map.projection = </font><font color="#800000" size="2">&quot;EPSG:900913&quot;</font>
<font size="2">) {
<p></p></font><font color="#0000ff" size="2">var</font><font size="2"> v_lonLat = OpenLayers.Layer.SphericalMercator.inverseMercator(lonLat.lon, lonLat.lat);
<p>lonLat.lon = v_lonLat.lon;</p>
<p>lonLat.lat = v_lonLat.lat;</p>
<p>v_lonLat = </p></font><font color="#0000ff" size="2">null</font><font size="2">;
<p>} </p>
<p></p>
<p></p></font><font color="#0000ff" size="2">var</font><font size="2"> digits = parseInt(</font><font color="#0000ff" size="2">this</font><font size="2">.numdigits);
<p></p></font><font color="#0000ff" size="2">var</font><font size="2"> newHtml =
<p></p></font><font color="#0000ff" size="2">this</font><font size="2">.prefix + </font><font color="#800000" size="2">&quot; Lon: &quot;</font><font size="2"> +
<p>lonLat.lon.toFixed(digits) + </p>
<p></p></font><font color="#0000ff" size="2">this</font><font size="2">.separator + </font><font color="#800000" size="2">&quot; Lat: &quot;</font><font size="2"> +
<p>lonLat.lat.toFixed(digits) + </p></font><font color="#008000" size="2"></font><font size="2">
<p></p></font><font color="#0000ff" size="2">this</font><font size="2">.suffix;</font>Linda<br><br></div>
<div class="gmail_quote">On Jan 14, 2008 10:22 AM, Christopher Schmidt &lt;<a href="mailto:crschmidt@metacarta.com">crschmidt@metacarta.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="Ih2E3d">On Mon, Jan 14, 2008 at 05:35:51PM +0100, O. Baum wrote:<br>&gt; I have some polyline data in the format of the geo-coordinates which<br>&gt; are used directly in Google Maps (guess they are called &quot;Spherical
<br>&gt; Mercator&quot;). E.g., a line from (52.50953477032727, 13.38134765625) to<br>&gt; (48.850258199721495, 2.35107421875) reaches from Berlin to Paris. Now<br>&gt; I want to draw this line on an OpenLayers Vector layer when displaying
<br>&gt; a Google Maps layer and switched to Spherical Mercator like described<br>&gt; in <a href="http://trac.openlayers.org/wiki/SphericalMercator" target="_blank">http://trac.openlayers.org/wiki/SphericalMercator</a>.<br>
&gt;<br>&gt; I suppose then this one of your proposals is the correct solution, is it?<br><br></div>Yep.<br>
<div class="Ih2E3d"><br>&gt; &gt; If you mean &quot;How can I create features programatically using data in<br>&gt; &gt; geographic coordinates&quot;, the answer is that you will (in trunk) create<br>&gt; &gt; them, then, once your features are created, call
<br>&gt; &gt; feature.geometry.transform(new OpenLayers.Projection(&quot;EPSG:4326&quot;), new<br>&gt; &gt; OpenLayers.Projection(&quot;EPSG:900913&quot;)), before you add your features to<br>&gt; &gt; the map.<br><br></div>
Regards,<br><font color="#888888">--<br>Christopher Schmidt<br>MetaCarta<br></font>
<div>
<div></div>
<div class="Wj3C7c">_______________________________________________<br>Users mailing list<br><a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br><a href="http://openlayers.org/mailman/listinfo/users" target="_blank">
http://openlayers.org/mailman/listinfo/users</a><br></div></div></blockquote></div><br><br clear="all"><br>-- <br>Linda Rawson