summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2016-09-22 15:38:03 +0300
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2016-09-22 15:38:03 +0300
commitd3eaf98ca17c31d063805d5eadf85be83a20b757 (patch)
tree9b52b6ca798e4e49a65e1235d3bed5372e12f2f1
parentd5679b07be3125f00be8a6bd6a91edc0f5cb7930 (diff)
downloadqtlocation-mapboxgl-d3eaf98ca17c31d063805d5eadf85be83a20b757.tar.gz
[glfw, qt] Added missing docs (#6428)
-rw-r--r--platform/linux/README.md4
-rw-r--r--platform/qt/README.md4
2 files changed, 8 insertions, 0 deletions
diff --git a/platform/linux/README.md b/platform/linux/README.md
index bb05284609..f7dc2dbec6 100644
--- a/platform/linux/README.md
+++ b/platform/linux/README.md
@@ -33,6 +33,10 @@ Set the environment variable `MAPBOX_ACCESS_TOKEN` to your [Mapbox access token]
export MAPBOX_ACCESS_TOKEN=MYTOKEN
+Optionally, you can specify a custom style to the test application:
+
+ export MAPBOX_STYLE_URL=MYSTYLEURL
+
Then, you can then proceed to build the test application:
make glfw-app
diff --git a/platform/qt/README.md b/platform/qt/README.md
index dcd394ec36..dc17d69903 100644
--- a/platform/qt/README.md
+++ b/platform/qt/README.md
@@ -31,6 +31,10 @@ to provide it by setting the environment variable `MAPBOX_ACCESS_TOKEN`:
export MAPBOX_ACCESS_TOKEN=MYTOKEN
+Optionally, you can specify a custom style to the QMapboxGL example application:
+
+ export MAPBOX_STYLE_URL=MYSTYLEURL
+
#### Using QMapboxGL
`QMapboxGL` is a [QObject](http://doc.qt.io/qt-5/qobject.html) - [MapWindow](https://github.com/mapbox/mapbox-gl-native/blob/master/platform/qt/app/mapwindow.hpp) provides an example [QGLWidget](http://doc.qt.io/qt-5/qglwidget.html) that contains a `QMapboxGL` object. If you use `QMapboxGL` in non-standard Qt widgets, make sure to initialize the GL extensions required by Mapbox whenever possible: