From f3c8b92286ad82ce39d400023155ab8bfee1b9a5 Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Tue, 2 Oct 2018 16:19:15 -0700 Subject: [core] Read style's transition from parser --- src/mbgl/style/style_impl.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/mbgl/style/style_impl.cpp') diff --git a/src/mbgl/style/style_impl.cpp b/src/mbgl/style/style_impl.cpp index 0c7f924917..5c9edc789f 100644 --- a/src/mbgl/style/style_impl.cpp +++ b/src/mbgl/style/style_impl.cpp @@ -92,8 +92,7 @@ void Style::Impl::parse(const std::string& json_) { layers.clear(); images.clear(); - transitionOptions = {}; - transitionOptions.duration = util::DEFAULT_TRANSITION_DURATION; + transitionOptions = parser.transition; for (auto& source : parser.sources) { addSource(std::move(source)); -- cgit v1.2.1