Fix: apply providerkey before calling setMapType 68/106468/1
authorVarun <tallytalwar@gmail.com>
Wed, 21 Dec 2016 16:49:16 +0000 (11:49 -0500)
committerVarun <tallytalwar@gmail.com>
Wed, 21 Dec 2016 16:49:16 +0000 (11:49 -0500)
Change-Id: Ic233ecff4251d99966b6c78497c7aa0f7bf1ba86

src/mapzen/tangram_view.cpp

index 7945270..52dcb76 100644 (file)
@@ -127,13 +127,13 @@ mapzen_error_e TangramView::create(maps_view_h view, maps_plugin_map_view_ready_
        MAPS_LOGD("evas_gl_context_create() set PixelScale %f", scaleFactor);
        m_map->setPixelScale(scaleFactor);
 
-       // Start loading the scene by setting the map type.
-       setMapType(view);
-
        if (providerKey) {
                m_providerKey = providerKey;
        }
 
+       // Start loading the scene by setting the map type.
+       setMapType(view);
+
        // Make the GL context current and perform GL setup.
        evas_gl_make_current(m_gl, m_surface, m_context);
        m_map->setupGL();