Skip to content

examples desktop

Tomáš Malý edited this page Dec 5, 2019 · 7 revisions

VTS Browser Desktop

vts-browser-desktop.png

You may see most of the capabilities of the VTS Browser CPP library here.

Navigation on the map should be intuitive and is very similar to what is in the web browser counterpart VTS Browser JS. If you find it too slow or too fast, you may change the sensitivity in the Options panel.

In the Options panel, you may switch different modes of loading resources, navigation modes, rendering options and more. This allows you to test it all and decide which one you like most.

One of the greatest advantages of the native C++ library, compared to the web browser, is its fast and fluent rendering. The timing of individual tasks is accessible in the Statistics panel. The Time map shows cpu time spent in the VTS library and Time app is time spent afterwards in processing gui, events and so on. The Time frame shows total time of a single frame, including waiting for v-sync.

The Statistics panel shows further information, that is available from the library. There are number of resources in different stages, memory consumption estimates, number of nodes traversed and rendered etc.

The Position panel shows where in the map you are looking at, in what rotation and other information. It also allows to change in what SRS are the coordinates shown. The entire position can be copied to or from clipboard.

The Views panel allows to switch in between multiple map config urls, if they were provided when launching the program. Furthermore, you may change between the named views that are available in some map configurations, or design one of your own. Geodata layers and their styles can also be edited here, including adding new monolithic layer with custom features.

In the Marks panel you see a list of all marks you have placed. To place a mark, you point your cursor at the point and press M. In the list there are (euclidean) distances between consecutive points and a grand total distance. When viewing details of a mark, there are exact coordinates (in the SRS specified in the Position panel), and an option to go to that location or to delete that mark. These marks are entirely application specific feature.

Finally, the Search panel shows search input bar and results.

The application uses SDL, a library that provides window creation and event handling in a portable way.