|
2016-06-09
, 15:40
|
Posts: 1,548 |
Thanked: 7,510 times |
Joined on Apr 2010
@ Czech Republic
|
#12
|
Have to admit that I really like it much better than all the Mapnik styles I've tried. Is this https://www.mapbox.com/maps/outdoors/ OSM, or are they using some additional data source?
Looks too good to me to be OSM.
|
2016-06-09
, 18:13
|
|
Posts: 2,355 |
Thanked: 5,249 times |
Joined on Jan 2009
@ Barcelona
|
#13
|
I've checked an are I have mapped for OSM and I'm pretty certain it is just filtered & styled OSM data with some height model for contours (SRTM or the other infrared image based one ?).
|
2016-06-09
, 19:08
|
|
Posts: 141 |
Thanked: 1,530 times |
Joined on May 2011
@ Finland
|
#14
|
I've checked an are I have mapped for OSM and I'm pretty certain it is just filtered & styled OSM data with some height model for contours
My perusal of the source code hasn't yet found exactly how are you supposed to feed actual map data to it.
The Following User Says Thank You to otsaloma For This Useful Post: | ||
|
2017-09-16
, 09:49
|
Posts: 1,414 |
Thanked: 7,547 times |
Joined on Aug 2016
@ Estonia
|
#15
|
|
2017-09-16
, 13:04
|
Posts: 339 |
Thanked: 1,623 times |
Joined on Oct 2013
@ France
|
#16
|
I have managed to compile Mapbox GL Native for SFOS and tested it with the small app. All seems to be working as expected. Even in online mode, its fast, allows smooth transitions and so on.
SFOS packaging: Compilation relies on recent gcc (using 6.4.0, https://build.merproject.org/package...oolbox/opt-gcc). The compiled Qt version of the library is available at https://build.merproject.org/package...maps/qmapboxgl on the basis of https://github.com/rinigus/pkg-mapbox-gl-native .
QML integration: At present, Mapbox GL Native development is targeting Qt/QML through QtLocation 5.9 plugin. As a result, direct interface with QML was removed in the beginning of March 2017.
I have made a small project that would allow us to interface Mapbox GL through QML at https://github.com/rinigus/mapbox-gl-qml . Idea is to compose the interface that can be used by mapping applications for showing and interacting with the maps. Interface between OpenGL and QML is based on the same approach as used in the current implementation for QtLocation. This looks to be compatible with Silica as well, as much as I tested.
Small SFOS app is available at https://github.com/rinigus/mapbox-demo-sfos and shows how to integrate developed QML interface into the app as well as the integration with gcc-6.4.0.
I am letting you know about the development early, so we can discuss the ways we can integrate it with the available map applications (Poor Maps, modRana, Maep, and others). There is plenty to do, but all seems to be doable at this stage and shouldn't take a while before we'll get the map applications based on OpenGL rendering. Ideally, we should keep the same source code trees for tile-based and OpenGL map applications.
The Following 5 Users Say Thank You to Zeta For This Useful Post: | ||
|
2017-09-16
, 14:29
|
Posts: 1,414 |
Thanked: 7,547 times |
Joined on Aug 2016
@ Estonia
|
#17
|
I imagine you want to put the OpenGL rendering part inside the maps applications, and changing the server to also serve vector maps ? Would you also want to use OpenGL to render raster map (for the apps not supporting vector) on the server side ?
Seeing the progress made in QtLocation 5.9 (http://blog.qt.io/blog/2017/09/04/qtlocation-5-9/), do you think backporting the whole QtLocation to Qt5.6 would be possible and not too much work, in order to stay as compatible as possible with those future improvements ?
On my side, I am working (albeit a hundred times slower than you) on a stripped down HUD like interface for another target (Odroid C2). So far, I used OSRM (Open Source Routing Machine) as it was the first of all the engines I got to compile (OSM has a lot of dependencies in comparison...), and has an embedded server.
I played with its debug vector tile output for some tests (http://project-osrm.org/docs/v5.7.0/api/#tile-service).
I decoded them manually with QPainter so far, as they are only containing roads, not the full maps details as MapBox can render), OpenGL is my next target to allow tilting the maps to show the horizon, like you would have in other car navigation systems (like old Here Maps : http://www.geeky-gadgets.com/wp-cont...-here-maps.jpg).
You are making me think about how to move this to something that could be shared with Sailfish, despite I would have trouble to keep up with your pace, and not having Silica and other Sailfish specific components...
The Following 3 Users Say Thank You to rinigus For This Useful Post: | ||
|
2017-09-16
, 15:34
|
Posts: 339 |
Thanked: 1,623 times |
Joined on Oct 2013
@ France
|
#18
|
I tried once to compile QtLocation 5.9 against Qt 5.7 that I have on my desktop, but that failed on some internal Qt class (classes that they use for 'private' implementation). Didn't tried it anymore.
However, as far as I can see, much of it should be supported by Mapbox GL. Not sure about videos played on top of the map, but tilting & rotating is all there.
The Following 2 Users Say Thank You to Zeta For This Useful Post: | ||
|
2017-09-16
, 16:43
|
Posts: 1,414 |
Thanked: 7,547 times |
Joined on Aug 2016
@ Estonia
|
#19
|
That was what I was afraid. Too bad.
I don't see a use case for embedding videos, I was thinking more of the MapPolyline and other types to render geometry on top of the map, like the route to follow or points of interest (like gas station in car mode). Not sure how easy it is to do with an older Qt.
I took a look at the MapBox GL before, but it is a huge piece of software, and I didn't understand all the subtleties of what it can do, and how to integrate it correctly in an application. I'll take a look again.
Can you describe your linux setup to see if I can replicate it here and maybe help ?
qputenv("MAPBOX_ACCESS_TOKEN", "HERE GOES THE TOKEN");
The Following 4 Users Say Thank You to rinigus For This Useful Post: | ||
|
2017-09-16
, 22:17
|
Posts: 339 |
Thanked: 1,623 times |
Joined on Oct 2013
@ France
|
#20
|
Let me know if there is any trouble. I'll continue meanwhile adding QML methods. Should be all there soon, I hope.
diff --git a/app/mapbox-qml.pro b/app/mapbox-qml.pro index fe7be45..d21fb3d 100644 --- a/app/mapbox-qml.pro +++ b/app/mapbox-qml.pro @@ -1,6 +1,6 @@ TEMPLATE = app -QT += qml quick location positioning +QT += qml quick location positioning sql CONFIG += c++14 SOURCES += src/main.cpp @@ -10,7 +10,7 @@ RESOURCES += qml.qrc include(../mapbox-gl-qml.pri) INCLUDEPATH += ../../mapbox-gl-native/platform/qt/include ../../mapbox-gl-native/include -LIBS += -L../../mapbox-gl-native/build -lqmapboxgl +LIBS += -L../../mapbox-gl-native/build -lqmapboxgl -lz # Additional import path used to resolve QML modules in Qt Creator's code model QML_IMPORT_PATH =
The Following 3 Users Say Thank You to Zeta For This Useful Post: | ||
Looks too good to me to be OSM.
/me curses at the stupid build system.
I am currently toying with the Bluetooth protocol on a Garmin Fenix I got secondhand and I would enjoy something like this to render my little walks
Last edited by javispedro; 2016-06-09 at 14:05.