Skip to content

Commit

Permalink
Using Qt Resources to handle JSON styles
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoabinader committed Jun 3, 2015
1 parent 6fb8c19 commit eda0e57
Show file tree
Hide file tree
Showing 7 changed files with 10,499 additions and 4 deletions.
8 changes: 4 additions & 4 deletions example/example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
QString getStyle() {
static unsigned currentStyle;
const char *styles[] {
"/usr/share/mbgl/styles/emerald-v7.json",
"/usr/share/mbgl/styles/mapbox-streets-v7.json",
"/usr/share/mbgl/styles/light-v7.json",
"/usr/share/mbgl/styles/dark-v7.json",
":/emerald-v7.json",
":/mapbox-streets-v7.json",
":/light-v7.json",
":/dark-v7.json",
};

if (currentStyle >= sizeof(styles) / sizeof(char *)) {
Expand Down
2 changes: 2 additions & 0 deletions qmapboxgl.pro
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ SOURCES += example/example.cpp \

HEADERS += include/qmapboxgl.h

RESOURCES += styles/styles.qrc

INCLUDEPATH += include
Loading

0 comments on commit eda0e57

Please sign in to comment.