[OpenLayers-Users] Configuring OpenLayers.Layer.Text reading real
comma separated values
Martin
nomorebigfoot at gmx.ch
Tue Mar 2 04:01:43 EST 2010
Hi
I am aware of this description:
http://wiki.openstreetmap.org/wiki/OpenLayers_Dynamic_POI
and also this examples:
http://openlayers.org/dev/examples/dynamic-text-layer.html
http://openlayers.org/dev/examples/markersTextLayer.html
This examples uses such files (tab separated) for data layer:
point title description icon
10,20 my orange title my orange description
2,4 my aqua title my aqua description
42,-71 my purple title my purple description<br/>is great.
http://www.openlayers.org/api/img/zoom-world-mini.png
I also already use OpenLayers.Layer.GML to overlay own GPX tracks over
maps, now i would like to do same with such files as below. Trackpoint
is described with >northing,easting,height< while this >0,0,XX,"new
track"< starts a new track segment. Third value (XX) would be the color,
but is not needed for now.
Is there a possibility to configure the parser for that before reading?
Thanks in advance.
Martin
0,0,17,"new track"
47.044651,8.253997,0,
47.039143,8.253655,0,
47.033367,8.257087,0,
47.029724,8.264640,0,
47.028667,8.273909,0,
47.030197,8.282663,0,
47.035015,8.289015,0,
47.041477,8.289187,0,
47.046478,8.283351,0,
47.047760,8.275455,0,
47.048344,8.266872,0,
47.047062,8.261379,0,
0,0,17,"new track"
47.041588,8.258633,0,
47.036579,8.263096,0,
47.034309,8.272020,0,
47.035130,8.277685,0,
47.038540,8.281977,0,
47.042416,8.277685,0,
47.043919,8.271163,0,
47.043102,8.264641,0,
0,0,17,"new track"
47.044731,8.247131,0,
47.037861,8.248161,0,
47.029491,8.255027,0,
47.024437,8.268760,0,
47.025730,8.280775,0,
47.031254,8.292620,0,
47.041477,8.295881,0,
47.048111,8.288329,0,
47.052185,8.277343,0,
47.052303,8.266701,0,
47.050323,8.257431,0,
0,0,17,"new track"
More information about the Users
mailing list