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
