aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/test_map/mod.c
diff options
context:
space:
mode:
authorSungTaek Hong <sth253.hong@samsung.com>2016-03-22 15:58:18 -0700
committerCedric BAIL <cedric@osg.samsung.com>2016-03-22 15:58:24 -0700
commit635b02a440bc0d95d4eb043e1ee4dd55181ce93b (patch)
treed0b9d004edbcda3bd52e18d3f562832a9f000501 /src/modules/test_map/mod.c
parenttheme: fix non-fixed parts. (diff)
downloadelementary-635b02a440bc0d95d4eb043e1ee4dd55181ce93b.tar.gz
map: separate name, route source logic
Summary: - So far, elm_map only provides Open Street Map and lacks ability to expand to other map providers since it's xml parse only fits into that of OSM. - This patch is to make route and name source same to tile source, which supports other map tile providers. Reviewers: woohyun, cedric Reviewed By: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D3303 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/modules/test_map/mod.c')
-rw-r--r--src/modules/test_map/mod.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/modules/test_map/mod.c b/src/modules/test_map/mod.c
index 39bc5248b..df300f7ff 100644
--- a/src/modules/test_map/mod.c
+++ b/src/modules/test_map/mod.c
@@ -3,6 +3,7 @@
#endif
#include "Elementary.h"
+#include "elm_widget_map.h"
#include <Eina.h>
EAPI Eina_Stringshare *
@@ -38,6 +39,12 @@ map_module_route_source_get(void)
return NULL;
}
+EAPI void
+map_module_route_source_parse(Elm_Map_Route *r EINA_UNUSED)
+{
+ return;
+}
+
EAPI char *
map_module_route_url_get(Evas_Object *obj EINA_UNUSED, const char *type_name EINA_UNUSED, int method EINA_UNUSED, double flon EINA_UNUSED, double flat EINA_UNUSED, double tlon EINA_UNUSED, double tlat EINA_UNUSED)
{
@@ -50,6 +57,18 @@ map_module_name_url_get(Evas_Object *obj EINA_UNUSED, int method EINA_UNUSED, co
return strdup("");
}
+EAPI void
+map_module_name_source_parse(Elm_Map_Name *n EINA_UNUSED)
+{
+ return;
+}
+
+EAPI void
+map_module_name_list_source_parse(Elm_Map_Name_List *nl EINA_UNUSED)
+{
+ return;
+}
+
EAPI Eina_Bool
map_module_tile_geo_to_coord(const Evas_Object *obj EINA_UNUSED, int zoom EINA_UNUSED, double lon EINA_UNUSED, double lat EINA_UNUSED, int size EINA_UNUSED, int *x EINA_UNUSED, int *y EINA_UNUSED)
{