Hello .. i make a sample of my problem 
http://geocodeur.free.fr/olayers/simplewgs.html here     calling the gml
file  is showing deformed polygons  


<nabble_embed>function init() {
            var options = {
                units: "dd",//"m",
                controls: [     new OpenLayers.Control.Navigation(), 
                        new OpenLayers.Control.KeyboardDefaults(), 
                        new OpenLayers.Control.PanZoomBar(), 
                        new OpenLayers.Control.ScaleLine(),
                        new OpenLayers.Control.Attribution() ],
                               numZoomLevels: 18 };

                
            map = new OpenLayers.Map("map",options);
            map.addLayer(new OpenLayers.Layer.OSM());
           
            map.setCenter(new OpenLayers.LonLat(2 ,48) // Center of the map
                  .transform(
                    new OpenLayers.Projection("EPSG:4326"), // transform from 
WGS
1984
                    new OpenLayers.Projection("EPSG:900913") // to Spherical
Mercator Projection
                  ), 10 // Zoom level
             );
             
             map.addControl (new OpenLayers.Control.MousePosition({
                div: document.getElementById('mouseposition') }));
            

        }
        function goGML(file){
                var proj_4326 = new OpenLayers.Projection("EPSG:4326");
                var proj_900913 = new OpenLayers.Projection("EPSG:900913");
                var proj_32630 = new OpenLayers.Projection("EPSG:32630");
                
                 var gml = new OpenLayers.Layer.GML("KML", file, 
                    {
                          projection: proj_4326,
                     }
                 );    
                        
        
                //objLayer = map.addLayer(new OpenLayers.Layer.GML("GML", 
file));
                selectControl = new OpenLayers.Control.SelectFeature(objLayer,
                {onSelect: onFeatureSelect, onUnselect: onFeatureUnselect}); 
                map.addLayer(gml);

        }</nabble_embed>

so you could see the gml file  http://geocodeur.free.fr/olayers/lookcom.xml
here 
Polygons are extract from a base vector generated to display it in Bing maps
originally .. I try it with different coords systems (EPSG 900913 ).. but
they don't display at all !  So  whats wrong in my code , or in my gml file
?
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Polygon-deformed-in-a-vector-layer-tp5943868p5943868.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to