Wow! That is a nifty control in the sandbox. I spent several days custom-implementing a similar functionality (the very rough code can be seen at http://pacificcup.org/OpenLayers/tracker.php)

What is the path to bring that tool to general release? I was kicking myself for not seeing it in the documentation till I realized that it was a sandbox item. Nonetheless, I see that I have duplicated a fair bit of effort.


Michael


On 11/27/2010 6:21 AM, Andreas Hocevar wrote:
Hi,

you may want to have a look at this:

http://dev.openlayers.org/sandbox/ahocevar/playground/addins/timedpointtrack/examples/time-select-control.html

It uses a GeoRSS feed for the track, but it shouldn't be hard to configure it 
to use a gxp track.

Regards,
Andreas.

On Nov 27, 2010, at 15:08 , Markus wrote:

Hi

I would like to know if there is a solution for the following problem:

- given a gpx-trace (which could be converted to another format if
necessary), providing a series of lat-long-time items
- first of all the trace shall be displayed on the map as a polyline,
the trace-items being the nodes of the polyline
- in addition to this a marker shall be displayed, initially set to
the first node
- the user should now be able to grab the marker by mousedown and drag
it along the polyline, the marker continually snapping to the node
closest to the mouse position as long as the mousebutton is down, just
like a "slider", which moves not along a vertical or horizontal line
but along the polyline of the trace
- whenever the marker snaps to a new position, the node's information
(time) shall be provided to an external javascript function
- likewise it should be possible to set the marker to a new position
by javascript just by providing a time of the desired position, the
marker being set to the time-wise closest position

optional
- for future expansion it should be possible to run this not only on a
single trace, but to display multiple traces and a single marker, thus
when the marker snaps to a new position, identifier of trace and time
being provided and setting the marker by choosing trace and time

Is there a simple solution to this? Where are possible traps,
problems?

Markus
--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Using-Marker-as-Slider-on-a-trace-tp5779717p5779717.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users


_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to