Visualize your KML, KMZ, GPX or TCX track in 3D and 2D. Rotate, Tilt and Zoom into your track.
In 2D you can see each recorded position. The tooltip will show you the exact time and height.
See https://the-sz.com/products/track_viewer/ for a real life demo.
The track is shown on a map from MapBox. The map can be a street map (style: trackViewer.style3DMapboxStreetMap
) or a satellite map (style: trackViewer.style3DMapboxSatellite
).
The map can have 3D terrain or can be flat.
elevation: trackViewer.elevationFromMap
will show a 3D terrain with the track laid onto the terrain.
elevation: trackViewer.elevationFromFile
will show a flat map where the track is shown in 3D. The elevation is taken from the track.
elevation: trackViewer.elevationNone
will show a flat map with a flat track.
The track will be shown on a street map from Google Maps. You can decide whether every track record (style: trackViewer.style2DAllRecords
) or only one record per minute (style: trackViewer.style2DOneRecordPerMinute
) should be shown as a dot. Using useLines: true
will connect all dots.
Track records will be shown in 3D space using bars or useDots: false
dots. The background can be a Google street map (style: trackViewer.style3DStreetMap
), a Google satellite map (style: trackViewer.style3DSatellite
), a blue rectangle (style: trackViewer.style3DBlueBackground
) or nothing (style: trackViewer.style3DNoBackground
).
Select This example shows how to use a track file selected by user from the local computer. It also allows you to select all possible styles.
Remote This example shows how to load track from a server. The track is shown in full window size. The used styles are hard coded.
Note: You must specify your MapBox access token and Google maps key in the HTML files. Search for ***KEY***.
In which style the track will be shown.
How the elevation is shown in the 3D MapBox style.
Whether the dots in 2D style shown be connected with a line or not.
Whether the track records should be shown as bars or dots in 3D style.
Specify your MapBox access token.
Specify your Google maps key.
HTML object where the map will be rendered.
HTML object which height should be accounted for when resizing the map.
HTML object which will switch to and from full screen in 3D style.
HTML object which will be hidden if the track gets shown.
Number of spacing pixels to the right of the map.
Dot image shown in trackViewer.style2DAllRecords
style.
X center of the dotImageLight
image.
Y center of the dotImageLight
image.
Dot image shown in trackViewer.style2DOneRecordPerMinute
style.
X center of the dotImageHeavy
image.
Y center of the dotImageHeavy
image.
Color of the connecting line in 2D style if useLines: true
.
Track color in 3D MapBox style if elevation: trackViewer.elevationFromMap
or elevation: trackViewer.elevationNone
.
Track color in 3D MapBox style if elevation: trackViewer.elevationFromFile
.