I define the projection like and option and I have the same problem.<br>Thanks<br><br><div class="gmail_quote">2008/6/25 Eric Lemoine <<a href="mailto:eric.c2c@gmail.com">eric.c2c@gmail.com</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Wed, Jun 25, 2008 at 3:29 PM, David Martinez Morata<br>
<<a href="mailto:damarmo@gmail.com">damarmo@gmail.com</a>> wrote:<br>
> Thanks for your answeres! :)<br>
> but now in the same point with gml features changing coordinates in the map.<br>
><br>
> In options for the mep object I define this projections:<br>
><br>
> var options = {numZoomLevels: 20,<br>
> projection: new OpenLayers.Projection("EPSG:900913"),<br>
> displayProjection: new OpenLayers.Projection("EPSG:4623")};<br>
><br>
> and for my GML layer i try with:<br>
><br>
> map.addLayer(new OpenLayers.Layer.GML("GML",<br>
> "<a href="http://10.192.160.133/OpenLayers/ngo9_wgs84_01meu_cables_lille32.gml" target="_blank">http://10.192.160.133/OpenLayers/ngo9_wgs84_01meu_cables_lille32.gml</a>",<br>
> {format: OpenLayers.Format.GML,<br>
> formatOptions: {<br>
> extractStyles: true,<br>
> extractAttributes: true}<br>
> }<br>
> )<br>
> );<br>
><br>
> And defining the external and internal projection and alwais the same<br>
> problem...my layer in the middle of Atlantic ocean, when I zoom to a<br>
> village, the error its minimal, but if I pam to the map the layer chages<br>
> location!!!<br>
> Any sugestion to fix it?<br>
<br>
</div>Christopher told you to pass a "projection" option to your GML layer<br>
constructor:<br>
<div class="Ih2E3d"><br>
map.addLayer(new OpenLayers.Layer.GML("GML",<br>
"<a href="http://10.192.160.133/OpenLayers/ngo9_wgs84_01meu_cables_lille32.gml" target="_blank">http://10.192.160.133/OpenLayers/ngo9_wgs84_01meu_cables_lille32.gml</a>",<br>
{format: OpenLayers.Format.GML,<br>
formatOptions: {<br>
extractStyles: true,<br>
extractAttributes: true}<br>
</div> },<br>
projection: new OpenLayers.Projection('EPSG:4326')<br>
)<br>
);<br>
<br>
Have you tried that?<br>
<br>
--<br>
<font color="#888888">Eric<br>
</font></blockquote></div><br>