Hi Arnd, My projection of the Map is also WGS1984. And my textfile are in the format point, tittle which i have attached to the mail.
sukuchha ----- Weitergeleitete Mail ---- Von: Arnd Wippermann <[email protected]> An: Sukuchha Shrestha <[email protected]> CC: [email protected] Gesendet: Freitag, den 15. April 2011, 21:36:59 Uhr Betreff: AW: [OpenLayers-Users] example of OpenLayers.Format.Text using vectors Hi, your code snippet seems to be correct. What projection you are using for your map? Can the textfile be found? Arnd ________________________________ Von: [email protected] [mailto:[email protected]] Im Auftrag von Sukuchha Shrestha Gesendet: Freitag, 15. April 2011 17:07 An: [email protected] Betreff: [OpenLayers-Users] example of OpenLayers.Format.Text using vectors Hello nice people, 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 !! //Add vector layer vector_layer = new OpenLayers.Layer.Vector('Basic Vector Layer', { protocol: new OpenLayers.Protocol.HTTP({ url: "map_data.txt", format: new OpenLayers.Format.Text()}), projection: new OpenLayers.Projection("EPSG:4326") }); map.addLayer(vector_layer); map.addControl( new OpenLayers.Control.LayerSwitcher()); Thanks sukuchha
point title 2.395833,13.061389 Brandenburg: Potsdam 53.075878,8.807311 Bremen: Bremen 53.550556,9.993333 Hamburg: Hamburg 50.083333,8.25 Hessen: Wiesbaden 53.633333,11.416667 Mecklenburg-Vorpommern: Schwerin 52.374444,9.738611 Niedersachsen: Hannover 51.225556,6.782778 Nordrhein-Westfalen: Düsseldorf 50,8.271111 Rheinland-Pfalz: Mainz 49.233333,7 Saarland: Saarbrücken 51.049259, 13.73836 Sachsen: Dresden 52.133333, 11.616667 Sachsen-Anhalt: Magdeburg 54.325278, 10.140556 Schleswig-Holstein: Kiel 50.978056, 11.029167 Thüringen: Erfurt
_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
