diff options
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"); |