path: root/src/modules
diff options
authorBluezery <>2012-03-07 09:28:08 +0000
committerCarsten Haitzler <>2012-03-07 09:28:08 +0000
commit7c46f5537fc81a09bbc1609b708794f250f84c96 (patch)
treee49073480c47993796830c357109aedfbeb6559d /src/modules
parentd9481920f40c53326645deb8d69f858b0a3cad7c (diff)
From: Bluezery <>
Subject: [E-devel] [Patch][elm_map] Change & Add map APIs I rename & add some APIs. As previously discussed, I categorized map APIs. ( 1) Zoom elm_map_zoom_set/get elm_map_zoom_mode_set/get elm_map_zoom_min_set/get elm_map_zoom_max_set/get 2) Region - Geographic coordinates (region) elm_map_region_get elm_map_region_show/bring_in elm_map_canvas_to_region_convert I will not use "_geo_" in map APIs. All map APIs are basically used by geographic coordinates. 3) Property elm_map_paused_set/get elm_map_rotate_set/get elm_map_wheel_disabled_set/get elm_map_user_agent_set/get 4) Overlay elm_map_overlay_add/del elm_map_overlay_xxx elm_map_overlay_class_xxx elm_map_overlay_bubble_xxx elm_map_overlay_route_xxx I will add line, rectangle, poi overlays ASAP. 5) Source - External Provider (Tile, Route, Name, ) elm_map_sources_get elm_map_source_set/get I will add more provider ASAP such as POI, etc. 6) Route elm_map_route_add/del elm_map_route_distance_get elm_map_route_node_get elm_map_route_waypoints_get 7) Name elm_map_name_add/del elm_map_route_address_get elm_map_route_region_get 6) Route and 7) Name do not return visible objects actually. Those just return data. I don't know "_add" suffix is correct for none visible objects. I cannot decide yet whether those should be removed from map widget. But current trends are that route, geocoding are tightly coupled with Map. If Apps want to use only data, just use elm_map_route_add(). If not, use elm_map_route_add() & elm_map_overlay_route_add(). Also name overlay could be added in the future. 8) Miscellaneous elm_map_tile_load_status_get 9) Signals Basic events : "clicked", "clicked,double", "press", "longpressed", Scroller events: "scroll", "scroll,xxx,xxx" Zoom events: "zoom,start/stop/change" Source (provider) events: "tile,load/loaded/loaded,fail" , "route,load/loaded/loaded,fail", "name,load/loaded/loaded,fail" There are some big patches. I think diff program do not make exact diff. :D. Anyway, it's better to maintain if this can be in before API fix (elementary 1.0). Because after these change, It is hard to maintain old APIs. PS) Documentations and some minor bugs are remained yet. SVN revision: 68915
Diffstat (limited to 'src/modules')
1 files changed, 10 insertions, 10 deletions
diff --git a/src/modules/test_map/mod.c b/src/modules/test_map/mod.c
index 8466aa316..a075cdd2a 100644
--- a/src/modules/test_map/mod.c
+++ b/src/modules/test_map/mod.c
@@ -5,25 +5,25 @@
5#endif 5#endif
6 6
7EAPI char * 7EAPI char *
8map_module_source_get(void) 8map_module_source_name_get(void)
9{ 9{
10 return strdup("test_map"); 10 return strdup("test_map");
11} 11}
12 12
13EAPI int 13EAPI int
14map_module_zoom_min_get(void) 14map_module_tile_zoom_min_get(void)
15{ 15{
16 return 0; 16 return 0;
17} 17}
18 18
19EAPI int 19EAPI int
20map_module_zoom_max_get(void) 20map_module_tile_zoom_max_get(void)
21{ 21{
22 return 18; 22 return 18;
23} 23}
24 24
25EAPI char * 25EAPI char *
26map_module_url_get(Evas_Object *obj __UNUSED__, int x, int y, int zoom) 26map_module_tile_url_get(Evas_Object *obj __UNUSED__, int x, int y, int zoom)
27{ 27{
28 char buf[PATH_MAX]; 28 char buf[PATH_MAX];
29 snprintf(buf, sizeof(buf), "", 29 snprintf(buf, sizeof(buf), "",
@@ -31,32 +31,32 @@ map_module_url_get(Evas_Object *obj __UNUSED__, int x, int y, int zoom)
31 return strdup(buf); 31 return strdup(buf);
32} 32}
33 33
34EAPI int 34EAPI char *
35map_module_route_source_get(void) 35map_module_route_source_get(void)
36{ 36{
37 return 0; 37 return NULL;
38} 38}
39 39
40EAPI char * 40EAPI char *
41map_module_route_url_get(Evas_Object *obj __UNUSED__, char *type_name __UNUSED__, int method __UNUSED__, double flon __UNUSED__, double flat __UNUSED__, double tlon __UNUSED__, double tlat __UNUSED__) 41map_module_route_url_get(Evas_Object *obj __UNUSED__, const char *type_name __UNUSED__, int method __UNUSED__, double flon __UNUSED__, double flat __UNUSED__, double tlon __UNUSED__, double tlat __UNUSED__)
42{ 42{
43 return strdup(""); 43 return strdup("");
44} 44}
45 45
46EAPI char * 46EAPI char *
47map_module_name_url_get(Evas_Object *obj __UNUSED__, int method __UNUSED__, char *name __UNUSED__, double lon __UNUSED__, double lat __UNUSED__) 47map_module_name_url_get(Evas_Object *obj __UNUSED__, int method __UNUSED__, const char *name __UNUSED__, double lon __UNUSED__, double lat __UNUSED__)
48{ 48{
49 return strdup(""); 49 return strdup("");
50} 50}
51 51
52EAPI Eina_Bool 52EAPI Eina_Bool
53map_module_geo_into_coord(const Evas_Object *obj __UNUSED__, int zoom __UNUSED__, double lon __UNUSED__, double lat __UNUSED__, int size __UNUSED__, int *x __UNUSED__, int *y __UNUSED__) 53map_module_tile_geo_to_coord(const Evas_Object *obj __UNUSED__, int zoom __UNUSED__, double lon __UNUSED__, double lat __UNUSED__, int size __UNUSED__, int *x __UNUSED__, int *y __UNUSED__)
54{ 54{
55 return EINA_FALSE; 55 return EINA_FALSE;
56} 56}
57 57
58EAPI Eina_Bool 58EAPI Eina_Bool
59map_module_coord_into_geo(const Evas_Object *obj __UNUSED__, int zoom __UNUSED__, int x __UNUSED__, int y __UNUSED__, int size __UNUSED__, double *lon __UNUSED__, double *lat __UNUSED__) 59map_module_tile_coord_to_geo(const Evas_Object *obj __UNUSED__, int zoom __UNUSED__, int x __UNUSED__, int y __UNUSED__, int size __UNUSED__, double *lon __UNUSED__, double *lat __UNUSED__)
60{ 60{
61 return EINA_FALSE; 61 return EINA_FALSE;
62} 62}