diff options
Diffstat (limited to 'src/mbgl/map/map_context.cpp')
-rw-r--r-- | src/mbgl/map/map_context.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/mbgl/map/map_context.cpp b/src/mbgl/map/map_context.cpp index b4badb20ef..0ea51bf53a 100644 --- a/src/mbgl/map/map_context.cpp +++ b/src/mbgl/map/map_context.cpp @@ -113,7 +113,6 @@ void MapContext::setStyleURL(const std::string& url) { Log::Error(Event::Setup, "style %s could not be found or is an incompatible legacy map or style", styleURL.c_str()); } else { Log::Error(Event::Setup, "loading style failed: %s", res.error->message.c_str()); - data.loading = false; } } else if (res.notModified || res.noContent) { return; @@ -146,10 +145,6 @@ void MapContext::loadStyleJSON(const std::string& json, const std::string& base) // force style cascade, causing all pending transitions to complete. style->cascade(Clock::now()); - // set loading here so we don't get a false loaded event as soon as map is - // created but before a style is loaded - data.loading = true; - updateAsync(Update::Classes | Update::RecalculateStyle | Update::Annotations); } |