I solved the problem :D I have renamed from gpx file to txt but leave gpx protocol in code. And it works. I know it is stoopid but it works -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Gpx-vector-layer-not-displayed-tp6868869p6871308.html Sent from the OpenLayers Dev mailing list archive at Nabble.com.