<br><br>On Wednesday, April 25, 2012, alexe100  wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I<br>
I have a web page that shows points features and one line in the map<br>
If I use:<br>
var layer = new OpenLayers.Layer.WMS( &quot;OpenLayers<br>
WMS&quot;,&quot;<a href="http://vmap0.tiles.osgeo.org/wms/vmap0" target="_blank">http://vmap0.tiles.osgeo.org/wms/vmap0</a>&quot;, {layers: &#39;basic&#39;} );<br>
map.addLayer(layer);<br>
<br>
the vectors are well shown.</blockquote><div><br></div><div>I guess your vectors are in EPSG:4326. The OSGeo WMS layer is also in EPSG:4326, so the vectors display correctly onto this layer.</div><div><br></div><div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
IF I use this instead:<br>
var layer = new OpenLayers.Layer.OSM();<br>
map.addLayer(layer);<br>
<br>
only one point feature is shown on the  map and the text font has bad<br>
quality.</blockquote><div><br></div><div>The OSM layer&#39;s projection is EPSG:900913 (Spherical Mercator)...</div><div><br></div><div>Try adding projection:&quot;EPSG:4326&quot; in your vector layer options, to tell OpenLayers to transform the vector coords from EPSG:4326 to the map projection, that is EPSG:900913. This will only work if you use a BBOX or Fixed strategy in your vector layer. If not please show how you create the vector layer and add features to it.<span></span></div>
<div><br></div><div>Cheers,</div><br><br>-- <br>Eric Lemoine<br><br>Camptocamp France SAS<br>Savoie Technolac, BP 352<br>73377 Le Bourget du Lac, Cedex<br><br>Tel : 00 33 4 79 44 44 96<br>Mail : <a href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a><br>
<a href="http://www.camptocamp.com">http://www.camptocamp.com</a><br><br>