2

I have openstreetmap tiles for offline (png images), how can I display these images (tiles) on my application with zooming and rotation functionality as on openstreetmap.org using c++?

4
  • Welcome to GIS.SE .Please take the tour to learn how to ask as question. Your question as it stands is too broad for this format. Jan 28, 2016 at 8:58
  • crosspost: help.openstreetmap.org/questions/47949/…
    – scai
    Feb 5, 2016 at 11:58
  • legitimate question
    – Eran W
    Dec 28, 2016 at 3:18
  • not a crosspost, this was first. and it's another website
    – Eran W
    Dec 28, 2016 at 3:18

4 Answers 4

2

You could use CartoType (http://www.cartotype.com/index.html). The library supports map rendering, routing, turn by turn navigation, and geocoding.

For a comprehensive list of frameworks visit http://wiki.openstreetmap.org/wiki/Frameworks. There are numerous other frameworks in the OSM environment depending on your needs.

2
  • :Thanks for your answer. I need a osm map tiles viewer (as on openstreetmap.org) for my application on c++, but tiles (png images) should be loaded not via Internet, but from my local directory. Also I should add some graphics(polylines, rectangles etc.) to this map using C++. How can I do it? Thanks.
    – UkrMan2016
    Jan 29, 2016 at 6:56
  • You can accomplish all of your requirements (incorporating offline tiles, drawing features) with cartotype. Visit the features page (cartotype.com/features.html) for more information or contact the developers (cartotype.com/contact.html). Your question "How can I do it" is to broad you should be a bit more concise. Jan 29, 2016 at 10:38
0

As far as I have understood your question is mainly about zooming and rotating a png-image in C++. If this is correct the problem boils down to finding the proper image-processing library. I can suggest libpng for displaying, but for manipulation (including rotation) you may want to have a look at openCV or at Magick++.

0

Marble is open source, written in C++ and supports online and offline tile viewing. Apart from that there is a long list of desktop software for OSM in the OSM wiki.

0

Maybe you van also have a closer look at libosmscout. (found via Frameworks in the OSM wiki) Not sure myself whether it has tile display, but at least own offline vector map rendering in C++.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.