melowntech / vts-browser-cpp

VTS Browser C++ library
BSD 2-Clause "Simplified" License
53 stars 19 forks source link

Drawing geometric shapes and images at given coordinates #3

Closed coyfi closed 5 years ago

coyfi commented 5 years ago

Greetings,

I was wondering what would be the most straightforward way to draw geometric shapes on the C++ front-end map at certain coordinates? Would using geodata be the correct way to achieve it?

A simple use case would be to read coordinates and shape identifiers from a file and draw them on the map. A secondary use case would be to draw a given vector or raster image file at the given coordinates, with a title - I believe these are both covered in the tutorials for the Javascript version of VTS Browser, but couldn't quite figure out the C++ equivalent.

Thank you.

malytomas commented 5 years ago

Hi Coyfi, support for geodata is actively being worked on for the c++ browser now.

Current status:

legend:

We strive to make the geodata implementation as compatible as possible, but there will inevitably be differences.

The vts-browser-desktop example app has some capabilities to show / modify geodata and stylesheets.

~To answer your question, adding some points with labels is already possible, but adding images (icons) not yet.~

Hope this helps.

Cheers, Tomáš Malý

-- EDIT(2019-05-20): devel merged into master, marked few more things as done -- EDIT(2019-06-26): icons -- EDIT(2019-12-05): line labels

coyfi commented 5 years ago

Thank you for the detailed reply! It is helpful to know what is currently possible to do with the project and what will be in the future - glad that the C++ version is actively developed as well.

It seems we'll be looking at using the Javascript version until the C++ one becomes more mature feature-wise, thus at least for my part this issue could be marked as resolved/closed if preferred.

malytomas commented 4 years ago

Hi, I just wanted to let you know that the things you asked for are now implemented in the c++ browser too.

You may want to give it a try and, please, let us know if you find any problems.

Best, tm

coyfi commented 4 years ago

Thank you for the follow-up, it is good to hear the C++ version is actively developed - will definitely have to try it again the next possible moment.