static const String ILLEGAL_URL;
/**
- * This constant represents an App ID.
- */
- String RequestAppId;
-
- /**
* This is the default constructor.
*/
BaseQuery();
long GetHashCode(const char *string);
EXPORT_API Bitmap* DecodePngToBmp(const byte* buffer, size_t size,
- MediaPixelFormat pixelFormat=MEDIA_PIXEL_FORMAT_RGBA8888);
+ MediaPixelFormat pixelFormat=MEDIA_PIXEL_FORMAT_RGBA8888);
EXPORT_API void ConvertRGBA2BGRA(void *data, unsigned int w, unsigned int h,
- MediaPixelFormat format=MEDIA_PIXEL_FORMAT_RGBA8888);
+ MediaPixelFormat format=MEDIA_PIXEL_FORMAT_RGBA8888);
template<typename T>
inline T
*/
void SetEvasGlApi(Evas_GL_API *__glapi);
-#ifdef TIZEN_MIGRATION
/**
* This typedef defines a function object as a type. The function object can
* be called when the map has been ready after initialized. A function object of
* @param slot A function object to be called when the map has
* been ready after initialization.
*/
- void SetReadyMapSignal(ReadyMapSignalFunctor callback, void *data);
-#else
- /**
- * This typedef defines a function object as a type. The function object can
- * be called when the map has been ready after initialized. A function object of
- * this type returns <code>void</code> and receives no arguments.
- */
- typedef void(*ReadyMapSignalFunctor)(void);
+ void SetReadyMapSignal(ReadyMapSignalFunctor callback, void *data = NULL);
/**
- * This method sets a callback to be invoked when the map has
- * been ready after initialization.
- *
- * @param slot A function object to be called when the map has
- * been ready after initialization.
- */
- void SetReadyMapSignal(ReadyMapSignalFunctor callback);
-
-#endif
- /**
* This method sets the angle of the map.
*
* @param angle The angle of the map [-360~360].
HERE_MAPS_NO_COPY_NO_ASSIGN(GeoTiledMap);
class GeoTiledMapImpl;
+#ifdef TIZEN_MIGRATION
GeoTiledMapImpl *m_pImpl;
+#else
+ std::auto_ptr<GeoTiledMapImpl> m_pImpl;
+#endif
};
HERE_MAPS_END_NAMESPACE
void * pUserData, int *nReqId);
int HerePluginSearchPlaceList(maps_area_h hArea, maps_item_hashtable_h hPref,
- maps_place_filter_h hFilter, maps_service_search_place_list_cb pCbFunc, void * pUserData, int *nReqId);
+ maps_place_filter_h hFilter, maps_service_search_place_list_cb pCbFunc,
+ void * pUserData, int *nReqId);
int HerePluginSearchPlaceDetails(const char* szUrl,
- maps_service_get_place_details_cb pCbFunc, void * pUserData, int *nReqId);
+ maps_service_get_place_details_cb pCbFunc,
+ void * pUserData, int *nReqId);
int HerePluginSearchRoute(maps_coordinates_h hOrigin, maps_coordinates_h hDestination,
maps_item_hashtable_h hPref, maps_service_search_route_cb pCbFunc,
int HerePluginDestroyMapView(maps_view_h hView);
-int HerePluginRenderMap(maps_view_h hView, const maps_coordinates_h mapsCoord, const double dZoom, const double dAngle,
+int HerePluginRenderMap(maps_view_h hView, const maps_coordinates_h mapsCoord, double dZoom, double dAngle,
maps_plugin_render_map_cb pCbFunc, void* pUserData, int* nReqId);
-int HerePluginRenderMapArea(maps_view_h hView, const maps_area_h hArea, const double dZoom, const double dAngle,
+int HerePluginRenderMapArea(maps_view_h hView, const maps_area_h hArea, double dZoom, double dAngle,
maps_plugin_render_map_cb pCbFunc, void* pUserData, int* nReqId);
-int HerePluginMoveCenter(maps_view_h hView, const int delta_x, const int delta_y,
+int HerePluginMoveCenter(maps_view_h hView, int delta_x, int delta_y,
maps_plugin_render_map_cb pCbFunc, void* pUserData, int* nReqId);
int HerePluginSetScalebar(maps_view_h hView, bool enable);
int HerePluginGetScalebar(maps_view_h hView, bool *enabled);
-int HerePluginDrawMap(Evas* pCanvas, const int x, const int y,
- const int nWidth, const int nHeight);
+int HerePluginDrawMap(maps_view_h hView, Evas* pCanvas, int x, int y, int w, int h);
int HerePluginGetCenter(maps_view_h hView, maps_coordinates_h *center);
-int HerePluginScreenToGeography(maps_view_h hView, const int x, const int y, maps_coordinates_h *mapsCoord);
+int HerePluginScreenToGeography(maps_view_h hView, int x, int y, maps_coordinates_h *mapsCoord);
int HerePluginGeographyToScreen(maps_view_h hView, const maps_coordinates_h mapsCoord, int *x, int *y);
int HerePluginGetMaxZoomLevel(maps_view_h hView, int *nMaxZoomLevel);
-int HerePluginOnViewObject(maps_view_h hView, const maps_view_object_h object, const maps_view_object_operation_e operation);
+int HerePluginOnViewObject(maps_view_h hView, const maps_view_object_h object, maps_view_object_operation_e operation);
#endif //_LOCATION_HERE_API_H_
\ No newline at end of file
}
int HerePluginSearchPlaceList(maps_area_h hArea, maps_item_hashtable_h hPref,
- maps_place_filter_h hFilter, maps_service_search_place_list_cb pCbFunc, void *pUserData, int *nReqId)
+ maps_place_filter_h hFilter, maps_service_search_place_list_cb pCbFunc,
+ void *pUserData, int *nReqId)
{
/* checking parmaters */
if (!hFilter || !pCbFunc || !nReqId)
}
int HerePluginSearchPlaceDetails(const char* szUrl,
- maps_service_get_place_details_cb pCbFunc, void *pUserData, int *nReqId)
+ maps_service_get_place_details_cb pCbFunc,
+ void *pUserData, int *nReqId)
{
/* checking parmaters */
if (!szUrl || (szUrl && *szUrl == '\0') || !pCbFunc || !nReqId)
return error;
}
-int HerePluginRenderMap(maps_view_h hView, const maps_coordinates_h mapsCoord, const double dZoom, const double dAngle,
+int HerePluginRenderMap(maps_view_h hView, const maps_coordinates_h mapsCoord, double dZoom, double dAngle,
maps_plugin_render_map_cb pCbFunc, void* pUserData, int* nReqId)
{
if (!hView || !mapsCoord || !pCbFunc || !nReqId)
return error;
}
-int HerePluginRenderMapArea(maps_view_h hView, const maps_area_h hArea, const double dZoom, const double dAngle,
+int HerePluginRenderMapArea(maps_view_h hView, const maps_area_h hArea, double dZoom, double dAngle,
maps_plugin_render_map_cb pCbFunc, void* pUserData, int* nReqId)
{
if (!hView || !hArea || !pCbFunc || !nReqId)
return error;
}
-int HerePluginMoveCenter(maps_view_h hView, const int delta_x, const int delta_y, maps_plugin_render_map_cb pCbFunc, void* pUserData, int* nReqId)
+int HerePluginMoveCenter(maps_view_h hView, int delta_x, int delta_y,
+ maps_plugin_render_map_cb pCbFunc, void* pUserData, int* nReqId)
{
if (!hView || !pCbFunc || !nReqId)
return HERE_ERROR_INVALID_PARAMETER;
return error;
}
-int HerePluginDrawMap(Evas* pCanvas, const int x, const int y,
- const int nWidth, const int nHeight)
+int HerePluginDrawMap(maps_view_h hView, Evas* pCanvas, int x, int y, int w, int h)
{
return HERE_ERROR_NONE;
}
return error;
}
-int HerePluginScreenToGeography(maps_view_h hView, const int x, const int y, maps_coordinates_h *mapsCoord)
+int HerePluginScreenToGeography(maps_view_h hView, int x, int y, maps_coordinates_h *mapsCoord)
{
if (!hView || !mapsCoord)
return HERE_ERROR_INVALID_PARAMETER;
return HereView::GetMaxZoomLevel(hView, nMaxZoomLevel);
}
-int HerePluginOnViewObject(maps_view_h hView, const maps_view_object_h object, const maps_view_object_operation_e operation)
+int HerePluginOnViewObject(maps_view_h hView, const maps_view_object_h object, maps_view_object_operation_e operation)
{
if (!hView)
return HERE_ERROR_INVALID_PARAMETER;
return ConvertToMapsError(ret);
}
-EXPORT_API int maps_plugin_render_map(maps_view_h hView, const maps_coordinates_h coordinates, const double zoom_factor,
- const double rotation_angle, maps_plugin_render_map_cb callback, void* user_data, int* request_id)
+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)
{
int ret = HerePluginRenderMap(hView, coordinates, zoom_factor, rotation_angle,
- callback, user_data, request_id);
+ callback, user_data, request_id);
if (ret != HERE_ERROR_NONE)
MAPS_LOGD("here_error_e = %d", ret);
return ConvertToMapsError(ret);
}
-EXPORT_API int maps_plugin_render_map_area(maps_view_h hView, const maps_area_h area, const double zoom_factor,
- const double rotation_angle, maps_plugin_render_map_cb callback, void* user_data, int* request_id)
+EXPORT_API int maps_plugin_render_map_area(maps_view_h hView, const maps_area_h area,
+ double zoom_factor, double rotation_angle,
+ maps_plugin_render_map_cb callback, void* user_data, int* request_id)
{
- int ret = HerePluginRenderMapArea(hView, area, zoom_factor, rotation_angle, callback, user_data, request_id);
+ int ret = HerePluginRenderMapArea(hView, area, zoom_factor, rotation_angle,
+ callback, user_data, request_id);
if (ret != HERE_ERROR_NONE)
MAPS_LOGD("here_error_e = %d", ret);
return ConvertToMapsError(ret);
}
-EXPORT_API int maps_plugin_move_center(maps_view_h hView, const int delta_x, const 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,
+ maps_plugin_render_map_cb callback, void* user_data, int* request_id)
{
int ret = HerePluginMoveCenter(hView, delta_x, delta_y, callback, user_data, request_id);
return ConvertToMapsError(ret);
}
-EXPORT_API int maps_plugin_draw_map(maps_view_h hView, Evas* canvas, const int x, const int y, const int width, const int height)
+EXPORT_API int maps_plugin_draw_map(maps_view_h hView, Evas* canvas, int x, int y, int w, int h)
{
- int ret = HerePluginDrawMap(canvas, x, y, width, height);
+ int ret = HerePluginDrawMap(hView, canvas, x, y, w, h);
if (ret != HERE_ERROR_NONE)
MAPS_LOGD("here_error_e = %d", ret);
return ConvertToMapsError(ret);
}
-EXPORT_API int maps_plugin_screen_to_geography(maps_view_h hView, const int x, const int y, maps_coordinates_h *mapsCoord)
+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);
return ConvertToMapsError(ret);
return ConvertToMapsError(ret);
}
-EXPORT_API int maps_plugin_on_object(maps_view_h hView, const maps_view_object_h object, const maps_view_object_operation_e operation)
+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 = HerePluginOnViewObject(hView, object, operation);
maps_view_get_traffic_enabled(hView, &traffic_enabled);
bool public_transit_enabled = false;
+ maps_view_get_public_transit_enabled(hView, &public_transit_enabled);
GeoTiledMap::MapType hereMapType = HereUtils::Convert(map_type, buildings_enabled,
traffic_enabled, public_transit_enabled);
hereMarker->SetPosition(GeoCoordinates(lat, lng));
/* origin */
- Tizen::Maps::FloatPoint fpntOrigin(0.5, 1);
+ Tizen::Maps::FloatPoint fpntOrigin(0.5, 0.5);
+ if (type == MAPS_VIEW_MARKER_PIN)
+ fpntOrigin.y = 1.0;
hereMarker->SetMarkerOrigin(fpntOrigin);
/* z-order */