<br><div class="gmail_quote">2011/12/22 Pierre Muckensturm <span dir="ltr"><<a href="mailto:pierre@georezo.net">pierre@georezo.net</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div id=":13g"><span class="Apple-style-span" style> markers.addMarker(new</span><br style><span class="Apple-style-span" style>OpenLayers.Marker(OpenLayers.</span><span class="Apple-style-span" style>Projection.transform(</span><span class="Apple-style-span" style>OpenLayers.Point(775133.95,</span><span class="Apple-style-span" style>6907235.95),</span><br style>
<span class="Apple-style-span" style>EPSG:2154,EPSG:900913),icon2);</span></div></blockquote></div><div><br></div>Pierre,<br><div><br></div><div>The transform() receive the from and to Projection object, not the string name of the projection.</div>
<div><br></div><div>Try something like this:</div><span class="Apple-style-span" style> markers.addMarker(new</span><br style><span class="Apple-style-span" style>OpenLayers.Marker(OpenLayers.</span><span class="Apple-style-span" style>Projection.transform(</span><span class="Apple-style-span" style>OpenLayers.Point(775133.95,</span><span class="Apple-style-span" style>6907235.95),</span><br style>
<div>new OpenLayers.Projection('EPSG:2154'), new OpenLayers.Projection('EPSG:900913')<span class="Apple-style-span" style>),icon2);</span></div><div><span class="Apple-style-span" style><br></span></div><div>
<span class="Apple-style-span" style><br></span></div><div>bon chance,</div><div><div><br clear="all">Fernando G. Norte<br>BHte - MG - Brazil<br>cel: +55 31 9119 8814<br>-------------------------<br>MSN e Gtalk # <a href="mailto:fnorte@gmail.com">fnorte@gmail.com</a><br>
<br></div></div>