<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<STYLE type=text/css>DIV {
        MARGIN: 0px
}
</STYLE>

<META name=GENERATOR content="MSHTML 8.00.6001.19019"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=025262719-15042011><FONT color=#0000ff 
size=2 face=Arial>Hi,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=025262719-15042011><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=025262719-15042011><FONT color=#0000ff 
size=2 face=Arial>your code snippet seems to be correct.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=025262719-15042011><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=025262719-15042011><FONT color=#0000ff 
size=2 face=Arial>What projection you are using for your 
map?&nbsp;</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=025262719-15042011><FONT color=#0000ff 
size=2 face=Arial>Can the textfile be found?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=025262719-15042011><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=025262719-15042011><FONT color=#0000ff 
size=2 face=Arial>Arnd</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=025262719-15042011><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=025262719-15042011><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr align=left><FONT size=2 face=Tahoma><B>Von:</B> 
openlayers-users-bounces@lists.osgeo.org 
[mailto:openlayers-users-bounces@lists.osgeo.org] <B>Im Auftrag von </B>Sukuchha 
Shrestha<BR><B>Gesendet:</B> Freitag, 15. April 2011 17:07<BR><B>An:</B> 
openlayers-users@lists.osgeo.org<BR><B>Betreff:</B> [OpenLayers-Users] example 
of OpenLayers.Format.Text using vectors<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV 
style="FONT-FAMILY: 'times new roman', 'new york', times, serif; FONT-SIZE: 12pt">
<DIV 
style="FONT-FAMILY: 'times new roman', 'new york', times, serif; COLOR: black; FONT-SIZE: 12pt">Hello 
nice people,</DIV>
<DIV 
style="FONT-FAMILY: 'times new roman', 'new york', times, serif; COLOR: black; FONT-SIZE: 12pt"><BR></DIV>
<DIV 
style="FONT-FAMILY: 'times new roman', 'new york', times, serif; COLOR: black; FONT-SIZE: 12pt">I 
am trying to load my point data in a text file but somehow it is not working. I 
have scour the mail list, but still i am able to display my points ! My points 
are in the format of text file separated by tab ! Why it is not working ? If 
anybody can help, i would be a happy man !!</DIV>
<DIV 
style="FONT-FAMILY: 'times new roman', 'new york', times, serif; COLOR: black; FONT-SIZE: 12pt"><BR></DIV>
<DIV>
<DIV><FONT class=Apple-style-span 
face="'times new&#13;&#10; roman', 'new york', times, serif">
<DIV><BR></DIV>
<DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;//Add vector layer</DIV>
<DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;vector_layer = new 
OpenLayers.Layer.Vector('Basic Vector Layer', {</DIV>
<DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;protocol: new 
OpenLayers.Protocol.HTTP({</DIV>
<DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;url: "map_data.txt",</DIV>
<DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;format: new 
OpenLayers.Format.Text()}),</DIV>
<DIV><SPAN style="WHITE-SPACE: pre" class=Apple-tab-span></SPAN>projection: new 
OpenLayers.Projection("EPSG:4326")</DIV>
<DIV><SPAN style="WHITE-SPACE: pre" class=Apple-tab-span></SPAN>});</DIV>
<DIV><SPAN style="WHITE-SPACE: pre" class=Apple-tab-span></SPAN></DIV>
<DIV><SPAN style="WHITE-SPACE: pre" class=Apple-tab-span></SPAN></DIV>
<DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;map.addLayer(vector_layer);</DIV>
<DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; map.addControl( new 
OpenLayers.Control.LayerSwitcher());</DIV>
<DIV><SPAN style="WHITE-SPACE: pre" class=Apple-tab-span></SPAN>&nbsp;</DIV>
<DIV><SPAN style="WHITE-SPACE: pre" class=Apple-tab-span></SPAN></DIV>
<DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;</DIV>
<DIV>Thanks</DIV>
<DIV>sukuchha&nbsp;</DIV>
<DIV>&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;</DIV></FONT></DIV></DIV>
<DIV 
style="POSITION: fixed; FONT-FAMILY: 'times new roman', 'new york', times, serif; COLOR: black; FONT-SIZE: 12pt"></DIV></DIV></BODY></HTML>