Hy list, I start With OL &quot; dais ago :S and I don&#39;t know javascript :SS!!<br>But I start to developing some simple application... And at the first time was easy to&nbsp; start (copy paste the code)...<br>But now I have some problems with a gml layer, and I have the impression tha OL it&#39;s not more stable (maybe because I don&#39;t know javascript)...<br>
It&#39;s my 5 or 6 email to the list asking for a the same question. Problem with GML layer pan, they change the coordinates?!!!<br>I start to play with projections and now the problem it&#39;s bigger.<br>When I change the base layer... the map changes too!!!<br>
I don&#39;t understand anything:S this is the code i write:<br><br><pre id="line1"><span class="doctype">&lt;!DOCTYPE html &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; <br>  &quot;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</a>&quot;&gt;</span><br>
&lt;<span class="start-tag">html</span><span class="attribute-name"> xmlns</span>=<span class="attribute-value">&quot;<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>&quot;</span>&gt;<br>  &lt;<span class="start-tag">head</span>&gt;<br>
          &lt;<span class="start-tag">title</span>&gt;Test OpenLayers&lt;/<span class="end-tag">title</span>&gt;<br>    &lt;<span class="start-tag">meta</span><span class="attribute-name"> http-equiv</span>=<span class="attribute-value">&quot;content-type&quot; </span><span class="attribute-name">content</span>=<span class="attribute-value">&quot;text/html; charset=utf-8&quot;</span><span class="error"><span class="attribute-name">/</span></span>&gt;<br>
<br>    &lt;<span class="start-tag">script</span><span class="attribute-name"> type</span>=<span class="attribute-value">&quot;text/javascript&quot; </span><span class="attribute-name">src</span>=<span class="attribute-value">&#39;<a href="http://maps.google.com/maps?file=api&amp;amp;v=2&amp;amp;key=ABQIAAAAu_VBBdBvqz5BLcs7nrzUXBTtRbNeTxVoAy20KSc4Ig34aflRRhQFn5FeqUpODActln3OKR2UQ_14vg">http://maps.google.com/maps?file=api&amp;amp;v=2&amp;amp;key=ABQIAAAAu_VBBdBvqz5BLcs7nrzUXBTtRbNeTxVoAy20KSc4Ig34aflRRhQFn5FeqUpODActln3OKR2UQ_14vg</a>&#39;</span>&gt;&lt;/<span class="end-tag">script</span>&gt; <br>
    &lt;<span class="start-tag">script</span><span class="attribute-name"> type</span>=<span class="attribute-value">&quot;text/javascript&quot; </span><span class="attribute-name">src</span>=<span class="attribute-value">&quot;<a href="http://openlayers.org/api/OpenLayers.js">http://openlayers.org/api/OpenLayers.js</a>&quot;</span>&gt;&lt;/<span class="end-tag">script</span>&gt;<br>
                &lt;<span class="start-tag">script</span><span class="attribute-name"> type</span>=<span class="attribute-value">&quot;text/javascript&quot;</span>&gt;<br><br>        // make map available for easy debugging<br>        var map;<br>
<br>        // avoid pink tiles<br>        OpenLayers.IMAGE_RELOAD_ATTEMPTS = 3;<br>        OpenLayers.Util.onImageLoadErrorColor = &quot;transparent&quot;;<br><br><br>        function init(){<br>            var options = {numZoomLevels: 20,<br>
               projection: new OpenLayers.Projection(&quot;EPSG:900913&quot;),<br>               displayProjection: new OpenLayers.Projection(&quot;EPSG:4623&quot;)};<br>               <br>              // Create a map Object<br>
            map = new OpenLayers.Map(&#39;map&#39;, options);<br><br>            // Create Google Mercator layers<br>            var gmap = new OpenLayers.Layer.Google(&quot;Google Streets&quot;,{type: G_NORMAL_MAP},{&quot;sphericalMercator&quot;: true});<br>
            var gsat = new OpenLayers.Layer.Google(&quot;Google Satellite&quot;,{type: G_SATELLITE_MAP},{&quot;sphericalMercator&quot;: true});<br>            var ghyb = new OpenLayers.Layer.Google(&quot;Google Hybrid&quot;,{type: G_HYBRID_MAP},{&quot;sphericalMercator&quot;: true});<br>
            var gphy = new OpenLayers.Layer.Google(&quot;Google Physical&quot;,{type: G_PHYSICAL_MAP},{&quot;sphericalMercator&quot;: true});                                    <br>//                Create a WFS Sites Layer<br>
                   var sites = new OpenLayers.Layer.WFS( &quot;Sites&quot;,<br>               &quot;<a href="http://10.192.160.133/cgi-bin/mapserv.exe?map=/ms4w/apps/Test/WFS_Test.map">http://10.192.160.133/cgi-bin/mapserv.exe?map=/ms4w/apps/Test/WFS_Test.map</a>&quot;,<br>
               {typename: &quot;Sites&quot;,maxfeatures: 100 },{<br>               featureClass: OpenLayers.Feature.WFS});<br><br>           map.addLayer(new OpenLayers.Layer.GML(&quot;GML&quot;,<br>                   &quot;<a href="http://10.192.160.133/OpenLayers/ngo9_wgs84_01meu_cables_lille32.gml">http://10.192.160.133/OpenLayers/ngo9_wgs84_01meu_cables_lille32.gml</a>&quot;,<br>
            {format: OpenLayers.Format.GML,<br>            formatOptions: {<br>                    extractStyles: true, <br>              extractAttributes: true}<br>              },{projection: new OpenLayers.Projection(&quot;EPSG:4623&quot;)}<br>
                                             )<br>                                 );<br><br>            map.addLayers([gmap,gsat,ghyb,gphy,sites]);<br>            map.addControl(new OpenLayers.Control.LayerSwitcher());<br>            map.addControl(new OpenLayers.Control.ScaleLine);<br>
            map.addControl(new OpenLayers.Control.MousePosition());<br>           if (!map.getCenter()) {map.zoomToMaxExtent()}<br>        }<br><br>    function changezoom(x,y,z)<br>    {<br>    map.setCenter(new OpenLayers.LonLat(x, y), z);<br>
    }   <br>    function showAddress(address) {<br>       var geocoder = new GClientGeocoder();<br>     if (geocoder) {<br>       geocoder.getLatLng(<br>         address,<br>         function(point) {<br>           if (!point) {alert(address + &quot; not found&quot;);}<br>
           else {map.setCenter(new OpenLayers.LonLat(point.x,point.y),15);}});}}<br>  &lt;/<span class="end-tag">script</span>&gt;<br></pre><pre id="line69">&lt;/<span class="end-tag">head</span>&gt;<br>&lt;<span class="start-tag">body</span><span class="attribute-name"> onload</span>=<span class="attribute-value">&quot;init()&quot;</span>&gt;<br>
  &lt;<span class="start-tag">div</span><span class="attribute-name"> id</span>=<span class="attribute-value">&quot;header&quot;</span>&gt;<br>    &lt;<span class="start-tag">h1</span><span class="attribute-name"> id</span>=<span class="attribute-value">&quot;title&quot;</span>&gt;Test OpenLayers&lt;/<span class="end-tag">h1</span>&gt;<br>
    &lt;<span class="start-tag">form</span><span class="attribute-name"> action</span>=<span class="attribute-value">&quot;#&quot; </span><span class="attribute-name">onsubmit</span>=<span class="attribute-value">&quot;showAddress(this.address.value, this.countrycode.value); return false&quot; </span>&gt;<br>
                  &lt;<span class="start-tag">p</span>&gt;Recherchez un adresse: &lt;<span class="start-tag">input</span><span class="attribute-name"> type</span>=<span class="attribute-value">&quot;text&quot; </span><span class="attribute-name">size</span>=<span class="attribute-value">&quot;60&quot; </span><span class="attribute-name">id</span>=<span class="attribute-value">&quot;address&quot; </span><span class="attribute-name">value</span>=<span class="attribute-value">&quot;&quot; </span><span class="error"><span class="attribute-name">/</span></span>&gt;<br>
            &amp;<span class="entity">nbsp;</span> &lt;<span class="start-tag">input</span><span class="attribute-name"> type</span>=<span class="attribute-value">&quot;submit&quot; </span><span class="attribute-name">onclick</span>=<span class="attribute-value">&quot;showAddress(document.getElementById(&#39;address&#39;).value); return false;&quot; </span><span class="attribute-name">value</span>=<span class="attribute-value">&quot;Go!&quot; </span><span class="error"><span class="attribute-name">/</span></span>&gt;<br>
            &lt;/<span class="end-tag">p</span>&gt;<br></pre><pre id="line77">    &lt;/<span class="end-tag">form</span>&gt;<br>  &lt;/<span class="end-tag">div</span>&gt;<br>  &lt;<span class="start-tag">div</span><span class="attribute-name"> style</span>=<span class="attribute-value">&quot;width:100%; height:85%&quot; </span><span class="attribute-name">id</span>=<span class="attribute-value">&quot;map&quot;</span>&gt;&lt;/<span class="end-tag">div</span>&gt;<br>
  &lt;<span class="start-tag">div</span><span class="attribute-name"> id</span>=<span class="attribute-value">&quot;docs&quot;</span>&gt;<br>         &lt;/<span class="end-tag">div</span>&gt;<br>&lt;/<span class="end-tag">body</span>&gt;<br>
&lt;/<span class="end-tag">html</span>&gt;</pre>And I don&#39;t know Wat to do... <br>PLeeeeeeeeeeeeaaaaseeeeee help me!<br><br>Thanks a lot for your patience!<br>