From 86c164053746eece6bd24a6d776af58f757ef723 Mon Sep 17 00:00:00 2001 From: chanywa Date: Wed, 6 Dec 2017 10:42:22 +0900 Subject: [PATCH] Set the minimum size for map view Change-Id: I48462683a382c098e19a941f4d7315e9f8accc3b --- maps-plugin-mapzen.changes | 5 +++++ packaging/maps-plugin-mapzen.spec | 2 +- src/mapzen/tangram_view.cpp | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/maps-plugin-mapzen.changes b/maps-plugin-mapzen.changes index 9f9ee80..d0b92ef 100644 --- a/maps-plugin-mapzen.changes +++ b/maps-plugin-mapzen.changes @@ -1,3 +1,8 @@ +[Version] maps-plugin-mapzen_0.0.10 +[Date] 06 Dec 2017 +[Title] Set the minimum size for map view +[Developer] Seechan Kim + [Version] maps-plugin-mapzen_0.0.9 [Date] 04 Dec 2017 [Title] Fix crashes and blocking with curl threads diff --git a/packaging/maps-plugin-mapzen.spec b/packaging/maps-plugin-mapzen.spec index a0081a8..5f7a533 100644 --- a/packaging/maps-plugin-mapzen.spec +++ b/packaging/maps-plugin-mapzen.spec @@ -1,6 +1,6 @@ Name: maps-plugin-mapzen Summary: Tizen Mapzen Maps Plug-in Library -Version: 0.0.9 +Version: 0.0.10 Release: 1 Group: Location/Libraries License: Apache-2.0 and MIT diff --git a/src/mapzen/tangram_view.cpp b/src/mapzen/tangram_view.cpp index d5fc728..2f7b9aa 100644 --- a/src/mapzen/tangram_view.cpp +++ b/src/mapzen/tangram_view.cpp @@ -62,6 +62,8 @@ mapzen_error_e TangramView::create(maps_view_h view, maps_plugin_map_view_ready_ if (maps_error != MAPS_ERROR_NONE) { return (mapzen_error_e)convert_maps_error_to_mapzen_error(maps_error); } + m_w = MAX(m_w, 1); + m_h = MAX(m_h, 1); // Create an OpenGL context. { -- 2.7.4