1 #include <Elementary.h>
5 const char *const MAP_EDJE = "map.edj";
8 static city_info_s cities[] = {
16 .id = CITY_LOS_ANGELES,
18 .name = "Los Angeles",
22 .id = CITY_SAN_FRANCISCO,
24 .name = "San Francisco",
40 .id = CITY_MEICO_CITY,
42 .name = "Mexico City",
49 .nation = "Costa Rica",
52 .id = CITY_NEW_YORK_CITY,
54 .name = "New York City",
64 .id = CITY_WASHINGTON_DC,
66 .name = "Washington DC",
76 .id = CITY_BUENOS_AIRES,
78 .name = "Buenos Aires",
79 .nation = "Argentina",
106 .id = CITY_AMSTERDAM,
109 .nation = "Netherlands",
112 .id = CITY_BARCELONA,
130 .id = CITY_CAPE_TOWN,
133 .nation = "South Africa",
139 .nation = "Switzerland",
160 .id = CITY_STOCKHOLM,
196 .id = CITY_JERUSALEM,
217 .nation = "United Arab Emirates",
226 .id = CITY_ISLAMABAD,
229 .nation = "Pakistan",
259 .nation = "Thailand",
265 .nation = "Indonesia",
274 .id = CITY_HONG_KONG,
280 .id = CITY_SINGAPORE,
283 .nation = "Singapore",
307 .nation = "Australia",
311 Evas_Object *map_create(Evas_Object *parent)
313 Evas_Object *map = NULL;
314 Evas_Object *button = NULL;
316 char full_path[] = {0, };
318 retv_if(!parent, NULL);
320 path = app_get_resource_path();
321 retv_if(!path, NULL);
323 snprintf(full_path, sizeof(full_path), "%s/edje/%s", path, MAP_EDJE);
326 map = elm_layout_add(parent);
328 elm_layout_file_set(map, full_path, "main");
329 evas_object_show(map);
334 void map_destroy(Evas_Object *map)
336 Evas_Object *button = NULL;
340 evas_object_del(map);