Show track line with OpenLayers. Click a marker to show and hide track. Live Demo.
Prequisites: Getting Started with OpenLayers and OpenStreetmap
This example demostrates:
- Displaying tracks (routes)
- Reading GPX-track files
- Changing layers on top using Z-index
- Click events