title: Openlayers: Vector Features instead of Markers
body: <p>I want to place a symbol o a Map. E.g.</p>
  
  <p><img src="https://i.stack.imgur.com/Xmcrr.png" alt="Map Example"></p>
  
  <p>So far I have used OpenLayers with <code>OpenLayers.Layer.Markers</code>. The code looks like this:</p>
  
  <pre><code>    map = new OpenLayers.Map('map');
      layer = new OpenLayers.Layer.OSM( "Simple OSM Map");
      map.addLayer(layer);
      map.setCenter(
          new OpenLayers.LonLat({{ location.lon }}, {{ location.lat }}).transform(
              new OpenLayers.Projection("EPSG:4326"),
              map.getProjectionObject()
          ), 15);
  
     var lonLat = new OpenLayers.LonLat({{ location.lon }}, {{ location.lat }})
               .transform(
                 new OpenLayers.Projection("EPSG:4326"), // transform from WGS 1984
                 map.getProjectionObject() // to Spherical Mercator Projection
               );
     var markers = new OpenLayers.Layer.Markers( "Markers" );
     map.addLayer(markers);
     markers.addMarker(new OpenLayers.Marker(lonLat));
  </code></pre>
  
  <p>This works as excepted and shows the map above. But I can't get it to work with Vectors replacing the last 3 lines with:</p>
  
  <pre><code>     vectors = new OpenLayers.Layer.Vector("Vector Layer");
       vectors.addFeatures([new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Point(lonLat))]);
       map.addLayer(vectors);
  </code></pre>
  
  <p>Is there any special magic needed to use <code>OpenLayers.Feature.Vector</code>?</p>