title: How to display a track on a layer with lat and long
body: <p>i just want to show a track on my map i tried as follow but the problem is i don't want to load track point in layer from GPX File (because i don't want to generate file from coordinates witch i get from GPSdevice programmatically)</p>
  
  <p>is there any way to add a track layer from long and lat</p>
  
  <pre><code>// Add the Layer with the GPX Track
  var lgpx = new OpenLayers.Layer.Vector("Car track", {
      strategies: [new OpenLayers.Strategy.Fixed()],
      protocol: new OpenLayers.Protocol.HTTP({
          url: "testTrack.GPX",
          format: new OpenLayers.Format.GPX()
      }),
      style: { strokeColor: "green", strokeWidth: 5, strokeOpacity: 0.5 },
      projection: new OpenLayers.Projection("EPSG:4326")
  });
  map.addLayer(lgpx);
  </code></pre>
  
  <p>Here is the lat and long in GPX file(xml format)</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
      &lt;gpx version="1.0"&gt;
      &lt;name&gt;Example gpx&lt;/name&gt;
      &lt;trk&gt;&lt;name&gt;Example gpx&lt;/name&gt;&lt;number&gt;1&lt;/number&gt;
      &lt;trkseg&gt;
          &lt;trkpt lat="35.737097" lon="51.314965"&gt;&lt;/trkpt&gt;
          &lt;trkpt lat="35.736953" lon="51.317454"&gt;&lt;/trkpt&gt;
          &lt;trkpt lat="35.737572" lon="51.317551"&gt;&lt;/trkpt&gt;
          &lt;trkpt lat="35.737755" lon="51.315716"&gt;&lt;/trkpt&gt;
          &lt;trkpt lat="35.739588" lon="51.316070"&gt;&lt;/trkpt&gt;
      &lt;/trkseg&gt;
      &lt;/trk&gt;
   &lt;/gpx&gt;
  </code></pre>