Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rinigus/mapbox-demo-sfos
Demo application for Sailfish using Mapbox GL Native QML bindings
https://github.com/rinigus/mapbox-demo-sfos
Last synced: 13 days ago
JSON representation
Demo application for Sailfish using Mapbox GL Native QML bindings
- Host: GitHub
- URL: https://github.com/rinigus/mapbox-demo-sfos
- Owner: rinigus
- License: mit
- Created: 2017-09-14T19:17:34.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-18T11:51:16.000Z (about 6 years ago)
- Last Synced: 2024-11-10T09:45:34.493Z (about 2 months ago)
- Language: QML
- Homepage:
- Size: 72.3 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Demo for Sailfish Mapbox GL QML
Demo application for Sailfish using Mapbox GL Native QML bindings from
https://github.com/rinigus/mapbox-gl-qmlIt is recommended to use QML-only approach. To use Mapbox GL tiles and
styles provided by Mapbox, please register on their site and obtain
access key. The key can be either used to specify `accessToken`
property of MapboxMap (see
[API description](https://github.com/rinigus/mapbox-gl-qml/blob/master/api.md))
or using environment variable `MAPBOX_ACCESS_TOKEN`.For QML-only demo,
* edit `qml-only/MainPage.qml` and specify your access token (skip if using env variable)
* copy contents of `qml-only` to your device
* install mapboxgl-qml from https://openrepos.net/content/rinigus/mapbox-gl-native-bindings-qt-qml or
https://build.merproject.org/package/show/home:rinigus:maps/mapboxgl-qml,
* specify environment variable by `export MAPBOX_ACCESS_TOKEN=insert_your_token_here` (skip if added token to QML)
* run the demo by `qmlscene mapbox-gl-qml.qml`While C++ version is given as well, QML approach is recommended. Note that C++
version may require some adjustments of qmake pro-file to include all required
libraries. For example, recently, `libcurl` has been used in SFOS to avoid issues
originating from Qt network handling.