Vector lines and OSM Layer


i have an OSM layer and want to plot some vector lines (list of points). That work fine only with the WMS:
var layer = new OpenLayers.Layer.WMS( “OpenLayers WMS”,”, {layers: ‘basic’} );

not with the OSM layer
var layerMap = new OpenLayers.Layer.OSM.Mapnik(“Mapnik”);

Why? Please help me. I think its an layer order problem or?


you wouldn’t get an answer faster, if you post your question in different under-forums. Double-postings are not welcome.