Hey Frank, I checked everything ...with ur code now even map is not getting displayed . I am attaching my gpx file with this mail.
http://www.nabble.com/file/p20971591/TeamBday1.gpx TeamBday1.gpx Thanks, Reena. Frank Broniewski-5 wrote: > > On Tuesday 09 December 2008 11:36:54 S.Reena wrote: >> Hi All, >> >> I want to upload gpx file on my map but its giving error that it cannot >> be >> displayed. I am attaching my gpx file with this >> >> map.addLayer(new OpenLayers.Layer.GML("GPX", "gpx/mygps.gpx", >> { >> format: OpenLayers.Format.GPX, >> formatOptions:{ extractWaypoints:true, >> extractTracks:true, >> extractRoutes:true, >> extractAttributes:true >> } >> })); >> >> http://www.nabble.com/file/p20912231/mygps.gpx mygps.gpx >> >> Thanks in advance :) >> >> Cheers, >> Reena. > > Hi Reena, > > I can't see anything wrong with your layer definitions, I am basically > using > the same. Did you check your permissions on the gpx file (read)? Is the > path > correct? Did you check if your gpx file is valid? > I am using the definition below, maybe it helps you. > > Frank > > pt = new OpenLayers.Layer.GML ( > "Informationen", > "http://clydeswelt.frabron.de/kml/wpt.gpx", > { > > projection: new > OpenLayers.Projection("EPSG:4326"), > format: OpenLayers.Format.GPX, > styleMap: ptStyle, > formatOptions: { > extractWaypoints: true, > extractTracks: false, > extractRoutes: false, > extractAttributes: true > } > } > ); > > -- > Frank Broniewski > > Metrico s.àr.l. ( http://www.metrico.lu ) > 36, rue des Romains > L-5433 Niederdonven > Luxembourg > > Fon: +352 26 74 94 28 > Fax: +352 26 74 94 99 > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/Problem-in-displaying-GML-layer-tp20912231p20971591.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
