<div dir="ltr">Ok Andreas, but how can I to configure my server....<br>If the server it's configurated how can I test...<br><br>Please, If you can, use an example... for :<br>OpenLayers.Layer.GML instead of OpenLayers.Layer.Mapserver.Untiled<br>
<br><br>Thanks...<br><br><br><div class="gmail_quote">2008/8/14 Andreas Hocevar <span dir="ltr"><<a href="mailto:andreas.hocevar@gmail.com">andreas.hocevar@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">David Calle wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi List,<br>
<br>
I need to modify the Point Track Markers example... for tracking the points of a existing layer...<br>
This is my layer with the points:<br>
<br>
var paradas8 = new OpenLayers.Layer.MapServer.Untiled( "Paradas 8", "../../cgi-bin/mapserv",<br>
{map:"C:/data/publicacion.map",<br>
layers: "paradas8_ida",transparent: "true", map_imagetype: "png"});<br>
<br>
map.addLayers([paradas8]);<br>
</blockquote>
<br></div>
So you are using Mapserver already! You just have to configure it to serve it as WFS/GML, and use OpenLayers.Layer.GML instead of OpenLayers.Layer.Mapserver.Untiled. The PointTrack layer cannot get the points from an image...<br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
<br>
So, I need to use these points.... into the example...<br>
<br>
function populateMap() {<br>
<br></div>
var lineLayer = new OpenLayers.Layer.PointTrack(<a href="http://rss.name" target="_blank">rss.name</a> <<a href="http://rss.name" target="_blank">http://rss.name</a>> + " Track",<div class="Ih2E3d">
<br>
{dataFrom: OpenLayers.Layer.PointTrack.dataFrom.SOURCE_NODE});<br>
</div></blockquote>
<br>
The dataFrom property has nothing to do with the source of your data. It only tells the PointTrack layer if a line feature should get the data from its source or target node.<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
lineLayer.addNodes(rss.features);<br>
</blockquote>
<br>
This is the interesting line. In the example, "rss" is the layer that contains the points. In your use case, this would be the GML layer with your points.<br>
<br>
<br>
Regards,<br><font color="#888888">
Andreas.<br>
</font></blockquote></div><br></div>