Tracking information of markers
-
Hi,
I am using the trackserver plugin. It is great! Please check the attached url for my question.I made some adjustments to the plugin, I changed the date format of the infobar to a one I prefer.
Also I added a pop-up to the start and end of each track, containing timestamp information of that point(and more info later). I did this with the following code:
if (do_markers === true || do_markers == ‘start’) {
start_marker = new _this.Mapicon(start_latlng, { fillColor: start_marker_color }).bindPopup(timestamp).addTo(featuregroup);
markers.push(start_marker);
}
if (do_markers === true || do_markers == ‘end’) {
end_marker = new _this.Mapicon(end_latlng, {
fillColor: end_marker_color, track_id: track_id}).bindPopup(timestamp).addTo(featuregroup).bringToBack()However, the variable of the timestamp is always the timestamp of the last point of the track now, the same that was visible on the infobar.
I cannot find how I can transfer the timestamp information of the start point (from which array?) of the track into a variable.
Can you please help?
Thanks in advance!The page I need help with: [log in to see the link]
- The topic ‘Tracking information of markers’ is closed to new replies.