modified intermediate APIs for maps-widget between maps-service and plug-in #2 18/73318/2 accepted/tizen/common/20160607.194833 accepted/tizen/ivi/20160607.235813 accepted/tizen/mobile/20160607.235821 accepted/tizen/tv/20160607.235728 accepted/tizen/wearable/20160607.235825 submit/tizen/20160607.123939
authorchanywa <cbible.kim@samsung.com>
Tue, 7 Jun 2016 12:38:14 +0000 (21:38 +0900)
committerchanywa <cbible.kim@samsung.com>
Tue, 7 Jun 2016 12:38:38 +0000 (21:38 +0900)
Change-Id: I49e25310b8ab34b95a6830bcb35827498e24ebf7

src/here_plugin.cpp

index 018d05f..7502475 100644 (file)
@@ -318,8 +318,7 @@ EXPORT_API int maps_plugin_destroy_map_view(maps_view_h hView)
 }
 
 EXPORT_API int maps_plugin_render_map(maps_view_h hView,
-       const maps_coordinates_h coordinates, double zoom_factor, double rotation_angle,
-       maps_plugin_render_map_cb callback, void* user_data, int* request_id)
+       const maps_coordinates_h coordinates, double zoom_factor, double rotation_angle)
 {
        int ret = HerePluginRenderMap(hView, coordinates, zoom_factor, rotation_angle);
 
@@ -329,8 +328,7 @@ EXPORT_API int maps_plugin_render_map(maps_view_h hView,
        return ConvertToMapsError(ret);
 }
 
-EXPORT_API int maps_plugin_move_center(maps_view_h hView, int delta_x, int delta_y,
-       maps_plugin_render_map_cb callback, void* user_data, int* request_id)
+EXPORT_API int maps_plugin_move_center(maps_view_h hView, int delta_x, int delta_y)
 {
        int ret = HerePluginMoveCenter(hView, delta_x, delta_y);
 
@@ -356,9 +354,9 @@ EXPORT_API int maps_plugin_get_scalebar(maps_view_h hView, bool *enabled)
        return ConvertToMapsError(ret);
 }
 
-EXPORT_API int maps_plugin_draw_map(maps_view_h hView, Evas* canvas, int x, int y, int w, int h)
+EXPORT_API int maps_plugin_on_object(maps_view_h hView, const maps_view_object_h object, maps_view_object_operation_e operation)
 {
-       int ret = HerePluginDrawMap(hView, canvas, x, y, w, h);
+       int ret = HerePluginOnViewObject(hView, object, operation);
 
        if (ret != HERE_ERROR_NONE)
                MAPS_LOGD("here_error_e = %d, %s", ret, ConverHereErrorToString(ret));
@@ -366,12 +364,6 @@ EXPORT_API int maps_plugin_draw_map(maps_view_h hView, Evas* canvas, int x, int
        return ConvertToMapsError(ret);
 }
 
-EXPORT_API int maps_plugin_get_center(maps_view_h hView, maps_coordinates_h *center)
-{
-       int ret = HerePluginGetCenter(hView, center);
-       return ConvertToMapsError(ret);
-}
-
 EXPORT_API int maps_plugin_screen_to_geography(maps_view_h hView, int x, int y, maps_coordinates_h *mapsCoord)
 {
        int ret = HerePluginScreenToGeography(hView, x, y, mapsCoord);
@@ -396,16 +388,11 @@ EXPORT_API int maps_plugin_get_max_zoom_level(maps_view_h hView, int *max_zoom_l
        return ConvertToMapsError(ret);
 }
 
-EXPORT_API int maps_plugin_on_object(maps_view_h hView, const maps_view_object_h object, maps_view_object_operation_e operation)
+EXPORT_API int maps_plugin_get_center(maps_view_h hView, maps_coordinates_h *center)
 {
-       int ret = HerePluginOnViewObject(hView, object, operation);
-
-       if (ret != HERE_ERROR_NONE)
-               MAPS_LOGD("here_error_e = %d, %s", ret, ConverHereErrorToString(ret));
-
+       int ret = HerePluginGetCenter(hView, center);
        return ConvertToMapsError(ret);
 }
 
-
 } // end of extern "C"