On Wed, Jun 25, 2008 at 3:29 PM, David Martinez Morata <[EMAIL PROTECTED]> wrote: > Thanks for your answeres! :) > but now in the same point with gml features changing coordinates in the map. > > In options for the mep object I define this projections: > > var options = {numZoomLevels: 20, > projection: new OpenLayers.Projection("EPSG:900913"), > displayProjection: new OpenLayers.Projection("EPSG:4623")}; > > and for my GML layer i try with: > > map.addLayer(new OpenLayers.Layer.GML("GML", > "http://10.192.160.133/OpenLayers/ngo9_wgs84_01meu_cables_lille32.gml", > {format: OpenLayers.Format.GML, > formatOptions: { > extractStyles: true, > extractAttributes: true} > } > ) > ); > > And defining the external and internal projection and alwais the same > problem...my layer in the middle of Atlantic ocean, when I zoom to a > village, the error its minimal, but if I pam to the map the layer chages > location!!! > Any sugestion to fix it?
Christopher told you to pass a "projection" option to your GML layer constructor: map.addLayer(new OpenLayers.Layer.GML("GML", "http://10.192.160.133/OpenLayers/ngo9_wgs84_01meu_cables_lille32.gml", {format: OpenLayers.Format.GML, formatOptions: { extractStyles: true, extractAttributes: true} }, projection: new OpenLayers.Projection('EPSG:4326') ) ); Have you tried that? -- Eric _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users