diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2015-03-06 13:24:47 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2015-03-06 13:24:47 +0100 |
commit | d161e0c3c39b4466ae94f4f7bee556017aec0f10 (patch) | |
tree | 465df28f52acec21c116b256f85f631b474879f1 /src/mbgl | |
parent | 5821be029c46d375d32bff91bdacec2f8ed701dd (diff) | |
parent | 8e42582c52d39153a1e1a0b14599b63c38c68531 (diff) | |
download | qtlocation-mapboxgl-d161e0c3c39b4466ae94f4f7bee556017aec0f10.tar.gz |
Merge pull request #951 from mapbox/mbgl-render
Update static image rendering executable
Diffstat (limited to 'src/mbgl')
-rw-r--r-- | src/mbgl/map/map.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mbgl/map/map.cpp b/src/mbgl/map/map.cpp index ed20ec24a6..73e188848f 100644 --- a/src/mbgl/map/map.cpp +++ b/src/mbgl/map/map.cpp @@ -241,6 +241,10 @@ void Map::run() { checkForPause(); } + if (mode == Mode::Static && !style && styleURL.empty()) { + throw exception("Style is not set"); + } + view.activate(); workers = util::make_unique<uv::worker>(**loop, 4, "Tile Worker"); |