<div>As far as displaying the mouseposition I added this to that code.</div>
<div> </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">"EPSG:900913"</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">" Lon: "</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">" Lat: "</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 <<a href="mailto:crschmidt@metacarta.com">crschmidt@metacarta.com</a>> 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>> I have some polyline data in the format of the geo-coordinates which<br>> are used directly in Google Maps (guess they are called "Spherical
<br>> Mercator"). E.g., a line from (52.50953477032727, 13.38134765625) to<br>> (48.850258199721495, 2.35107421875) reaches from Berlin to Paris. Now<br>> I want to draw this line on an OpenLayers Vector layer when displaying
<br>> a Google Maps layer and switched to Spherical Mercator like described<br>> in <a href="http://trac.openlayers.org/wiki/SphericalMercator" target="_blank">http://trac.openlayers.org/wiki/SphericalMercator</a>.<br>
><br>> I suppose then this one of your proposals is the correct solution, is it?<br><br></div>Yep.<br>
<div class="Ih2E3d"><br>> > If you mean "How can I create features programatically using data in<br>> > geographic coordinates", the answer is that you will (in trunk) create<br>> > them, then, once your features are created, call
<br>> > feature.geometry.transform(new OpenLayers.Projection("EPSG:4326"), new<br>> > OpenLayers.Projection("EPSG:900913")), before you add your features to<br>> > 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