void setMapType(maps_view_h view);
static void __readyMapCb(maps_view_h view);
static Eina_Bool __idlerCb(void *data);
+ static Eina_Bool __dirtyTimerCb(void *data);
static void __renderingCb(void *data);
static void __pixelGetCb(void *data, Evas_Object *obj);
static void __processViewObject(maps_view_h view, const maps_view_object_h object,
HereViewObjects __visualObjects;
PendingObjects __pendingObjects;
Ecore_Idler *__idler;
+ Ecore_Timer *__dirtyTimer;
bool __redraw;
maps_plugin_map_view_ready_cb __readyCb;
-libheremaps-engine.so.1.0.6_37
\ No newline at end of file
+libheremaps-engine.so.1.0.6_39
\ No newline at end of file
-libheremaps-engine.so.1.0.6_37
\ No newline at end of file
+libheremaps-engine.so.1.0.6_39
\ No newline at end of file
-libheremaps-engine.so.1.0.6_37
\ No newline at end of file
+libheremaps-engine.so.1.0.6_39
\ No newline at end of file
-libheremaps-engine.so.1.0.6_37
\ No newline at end of file
+libheremaps-engine.so.1.0.6_39
\ No newline at end of file
+[Version] maps-plugin-here_0.4.0
+[Date] 11 June 2018
+[Title] Lower the frequency of drawing cached map tiles in local
+[Developer] Seechan Kim <cbible.kim@samsung.com>
+
[Version] maps-plugin-here_0.3.34
[Date] 24 Apr 2018
[Title] Rebuild libheremaps-engine.so with libjson-c 4.0
Name: maps-plugin-here
Summary: Tizen HERE Maps Plug-in Library
-Version: 0.3.34
+Version: 0.4.0
Release: 1
Group: Location/Libraries
License: Apache-2.0 and HERE
__idler = NULL;
__redraw = false;
__readyCb = NULL;
+ __dirtyTimer = NULL;
}
HereView::~HereView()
void HereView::__renderingCb(void *data)
{
- if (!data) return;
- evas_object_image_pixels_dirty_set((Evas_Object*)data, EINA_TRUE);
+ HereView *hv = NULL;
+ int maps_error = maps_view_get_maps_plugin_view_handle(data, (void**)&hv);
+ if (!hv || hv->__isShutdown || maps_error != MAPS_ERROR_NONE) return;
+
+ if (!hv->__dirtyTimer)
+ hv->__dirtyTimer = ecore_timer_add(0.001, __dirtyTimerCb, data);
}
+Eina_Bool HereView::__dirtyTimerCb(void *data)
+{
+ HereView *hv = NULL;
+ int maps_error = maps_view_get_maps_plugin_view_handle(data, (void**)&hv);
+ if (!hv || hv->__isShutdown || maps_error != MAPS_ERROR_NONE) {
+ if (hv) hv->__dirtyTimer = NULL;
+ return ECORE_CALLBACK_CANCEL;
+ }
+
+ hv->__dirtyTimer = NULL;
+ evas_object_image_pixels_dirty_set((Evas_Object*)hv->__img, EINA_TRUE);
+ return ECORE_CALLBACK_CANCEL;
+}
+
+
void HereView::setMapType(maps_view_h view)
{
if (!view)
}
/* callback */
- GeoTiledMap::UpdateMapSignalFunctor callback = std::tr1::bind(&__renderingCb, __img);
+ GeoTiledMap::UpdateMapSignalFunctor callback = std::tr1::bind(&__renderingCb, view);
__map->SetUpdateMapSignal(callback);
/* zoom level */