diff options
Diffstat (limited to 'efl/elementary/map.pyx')
-rw-r--r-- | efl/elementary/map.pyx | 18 |
1 files changed, 18 insertions, 0 deletions
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 | ||