summaryrefslogtreecommitdiff
path: root/efl
diff options
context:
space:
mode:
Diffstat (limited to 'efl')
-rw-r--r--efl/elementary/map.pxd1
-rw-r--r--efl/elementary/map.pyx18
2 files changed, 19 insertions, 0 deletions
diff --git a/efl/elementary/map.pxd b/efl/elementary/map.pxd
index f9c43c9..b577866 100644
--- a/efl/elementary/map.pxd
+++ b/efl/elementary/map.pxd
@@ -22,6 +22,7 @@ cdef extern from "Elementary.h":
22 int elm_map_zoom_max_get(const Evas_Object *obj) 22 int elm_map_zoom_max_get(const Evas_Object *obj)
23 void elm_map_region_get(const Evas_Object *obj, double *lon, double *lat) 23 void elm_map_region_get(const Evas_Object *obj, double *lon, double *lat)
24 void elm_map_region_bring_in(Evas_Object *obj, double lon, double lat) 24 void elm_map_region_bring_in(Evas_Object *obj, double lon, double lat)
25 void elm_map_region_zoom_bring_in(Evas_Object *obj, int zoom, double lon, double lat)
25 void elm_map_region_show(Evas_Object *obj, double lon, double lat) 26 void elm_map_region_show(Evas_Object *obj, double lon, double lat)
26 void elm_map_canvas_to_region_convert(const Evas_Object *obj, Evas_Coord x, Evas_Coord y, double *lon, double *lat) 27 void elm_map_canvas_to_region_convert(const Evas_Object *obj, Evas_Coord x, Evas_Coord y, double *lon, double *lat)
27 void elm_map_region_to_canvas_convert(const Evas_Object *obj, double lon, double lat, Evas_Coord *x, Evas_Coord *y) 28 void elm_map_region_to_canvas_convert(const Evas_Object *obj, double lon, double lat, Evas_Coord *x, Evas_Coord *y)
diff --git a/efl/elementary/map.pyx b/efl/elementary/map.pyx
index f5c82a9..8c2a3a8 100644
--- a/efl/elementary/map.pyx
+++ b/efl/elementary/map.pyx
@@ -1092,6 +1092,24 @@ cdef class Map(Object):
1092 """ 1092 """
1093 elm_map_region_show(self.obj, lon, lat) 1093 elm_map_region_show(self.obj, lon, lat)
1094 1094
1095 def region_zoom_bring_in(self, zoom, lon, lat):
1096 """ Animatedly set the zoom level of the map and bring in given
1097 coordinates to the center of the map.
1098
1099 This causes map to zoom into specific zoom level and also move to the
1100 given lat and lon coordinates and show it (by scrolling) in the
1101 center of the viewport concurrently.
1102
1103 :param zoom: The zoom level to set
1104 :type zoom: int
1105 :param lon: The longitude to center at
1106 :type lon: float
1107 :param lat: The latitude to center at
1108 :type lat: float
1109
1110 """
1111 elm_map_region_zoom_bring_in(self.obj, zoom, lon, lat)
1112
1095 def canvas_to_region_convert(self, x, y): 1113 def canvas_to_region_convert(self, x, y):
1096 """ Convert canvas coordinates into geographic coordinates. 1114 """ Convert canvas coordinates into geographic coordinates.
1097 1115