Typedefs | Enumerations | Functions

Typedefs

typedef struct _Elm_Map_Marker Elm_Map_Marker
 A marker to be shown in a specific point of the map. More...
 
typedef struct _Elm_Map_Marker_Class Elm_Map_Marker_Class
 Each marker must be associated to a class. More...
 
typedef struct _Elm_Map_Group_Class Elm_Map_Group_Class
 Each marker must be associated to a group class. More...
 
typedef struct _Elm_Map_Route Elm_Map_Route
 A route to be shown in the map. More...
 
typedef struct _Elm_Map_Name Elm_Map_Name
 A handle for specific coordinates. More...
 
typedef struct _Elm_Map_Overlay Elm_Map_Overlay
 A overlay to be shown in a specific point of the map. More...
 
typedef Evas_Object *(* Elm_Map_Marker_Get_Func) (Evas_Object *obj, Elm_Map_Marker *marker, void *data)
 Bubble content fetching class function for marker classes. More...
 
typedef void(* Elm_Map_Marker_Del_Func) (Evas_Object *obj, Elm_Map_Marker *marker, void *data, Evas_Object *o)
 Function to delete bubble content for marker classes. More...
 
typedef Evas_Object *(* Elm_Map_Marker_Icon_Get_Func) (Evas_Object *obj, Elm_Map_Marker *marker, void *data)
 Icon fetching class function for marker classes. More...
 
typedef Evas_Object *(* Elm_Map_Group_Icon_Get_Func) (Evas_Object *obj, void *data)
 Icon fetching class function for markers group classes. More...
 
typedef void(* Elm_Map_Overlay_Get_Cb) (void *data, Evas_Object *map, Elm_Map_Overlay *overlay)
 Get callback function for the overlay. More...
 
typedef void(* Elm_Map_Overlay_Del_Cb) (void *data, Evas_Object *map, Elm_Map_Overlay *overlay)
 Det callback function for the overlay. More...
 
typedef void(* Elm_Map_Name_Cb) (void *data, Evas_Object *map, Elm_Map_Name *name)
 Async-callback function for the name request. More...
 
typedef void(* Elm_Map_Name_List_Cb) (void *data, Evas_Object *map, Eina_List *name_list)
 Async-callback function for the name list request. More...
 
typedef void(* Elm_Map_Route_Cb) (void *data, Evas_Object *map, Elm_Map_Route *route)
 Async-callback function for the route request. More...
 

Enumerations

enum  Elm_Map_Name_Method {
  ELM_MAP_NAME_METHOD_SEARCH,
  ELM_MAP_NAME_METHOD_REVERSE,
  ELM_MAP_NAME_METHOD_LAST
}
 Set the name search method. More...
 
enum  Elm_Map_Overlay_Type {
  ELM_MAP_OVERLAY_TYPE_NONE = 0,
  ELM_MAP_OVERLAY_TYPE_DEFAULT,
  ELM_MAP_OVERLAY_TYPE_CLASS,
  ELM_MAP_OVERLAY_TYPE_GROUP,
  ELM_MAP_OVERLAY_TYPE_BUBBLE,
  ELM_MAP_OVERLAY_TYPE_ROUTE,
  ELM_MAP_OVERLAY_TYPE_LINE,
  ELM_MAP_OVERLAY_TYPE_POLYGON,
  ELM_MAP_OVERLAY_TYPE_CIRCLE,
  ELM_MAP_OVERLAY_TYPE_SCALE
}
 Set overlay type to be used. More...
 
enum  Elm_Map_Source_Type {
  ELM_MAP_SOURCE_TYPE_TILE = 0,
  ELM_MAP_SOURCE_TYPE_ROUTE,
  ELM_MAP_SOURCE_TYPE_NAME,
  ELM_MAP_SOURCE_TYPE_LAST,
  ELM_MAP_SOURCE_TYPE_TILE = 0,
  ELM_MAP_SOURCE_TYPE_ROUTE,
  ELM_MAP_SOURCE_TYPE_NAME,
  ELM_MAP_SOURCE_TYPE_LAST
}
 Set type of a external source (provider). More...
 
enum  Elm_Map_Route_Type {
  ELM_MAP_ROUTE_TYPE_MOTOCAR = 0,
  ELM_MAP_ROUTE_TYPE_BICYCLE,
  ELM_MAP_ROUTE_TYPE_FOOT,
  ELM_MAP_ROUTE_TYPE_LAST,
  ELM_MAP_ROUTE_TYPE_MOTOCAR = 0,
  ELM_MAP_ROUTE_TYPE_BICYCLE,
  ELM_MAP_ROUTE_TYPE_FOOT,
  ELM_MAP_ROUTE_TYPE_LAST
}
 Set type of transport used on route. More...
 
enum  Elm_Map_Route_Method {
  ELM_MAP_ROUTE_METHOD_FASTEST = 0,
  ELM_MAP_ROUTE_METHOD_SHORTEST,
  ELM_MAP_ROUTE_METHOD_LAST,
  ELM_MAP_ROUTE_METHOD_FASTEST = 0,
  ELM_MAP_ROUTE_METHOD_SHORTEST,
  ELM_MAP_ROUTE_METHOD_LAST
}
 Set the routing method, what should be prioritized, time or distance. More...
 
enum  Elm_Map_Zoom_Mode {
  ELM_MAP_ZOOM_MODE_MANUAL = 0,
  ELM_MAP_ZOOM_MODE_AUTO_FIT,
  ELM_MAP_ZOOM_MODE_AUTO_FILL,
  ELM_MAP_ZOOM_MODE_LAST
}
 Set map's zoom behavior. More...
 

Functions

void elm_map_overlay_del (Elm_Map_Overlay *overlay)
 Delete a overlay from the map. More...
 
Elm_Map_Overlay_Type elm_map_overlay_type_get (const Elm_Map_Overlay *overlay)
 Get the overlay type. More...
 
void elm_map_overlay_data_set (Elm_Map_Overlay *overlay, void *data)
 Set a pointer of user data for a overlay. More...
 
void * elm_map_overlay_data_get (const Elm_Map_Overlay *overlay)
 Get the user data stored on a overlay. More...
 
void elm_map_overlay_hide_set (Elm_Map_Overlay *overlay, Eina_Bool hide)
 Set if the overlay is hidden or not. More...
 
Eina_Bool elm_map_overlay_hide_get (const Elm_Map_Overlay *overlay)
 Get a value whether the overlay is hidden or not. More...
 
void elm_map_overlay_displayed_zoom_min_set (Elm_Map_Overlay *overlay, int zoom)
 Set the minimum zoom from where the overlay is displayed. More...
 
int elm_map_overlay_displayed_zoom_min_get (const Elm_Map_Overlay *overlay)
 Get the minimum zoom from where the overlay is displayed. More...
 
void elm_map_overlay_paused_set (Elm_Map_Overlay *overlay, Eina_Bool paused)
 Pause or unpause the overlay. More...
 
Eina_Bool elm_map_overlay_paused_get (const Elm_Map_Overlay *overlay)
 Get a value whether the overlay is paused or not. More...
 
Eina_Bool elm_map_overlay_visible_get (const Elm_Map_Overlay *overlay)
 Get a value whether the overlay is visible or not. More...
 
void elm_map_overlay_content_set (Elm_Map_Overlay *overlay, Evas_Object *obj)
 Set the content object of the overlay. More...
 
const Evas_Objectelm_map_overlay_content_get (const Elm_Map_Overlay *overlay)
 Get the content object. More...
 
void elm_map_overlay_icon_set (Elm_Map_Overlay *overlay, Evas_Object *icon)
 Set a icon of the overlay. More...
 
const Evas_Objectelm_map_overlay_icon_get (const Elm_Map_Overlay *overlay)
 Get the icon object. More...
 
void elm_map_overlay_region_set (Elm_Map_Overlay *overlay, double lon, double lat)
 Set the geographic coordinates of the overlay. More...
 
void elm_map_overlay_region_get (const Elm_Map_Overlay *overlay, double *lon, double *lat)
 Get the geographic coordinates of the overlay. More...
 
void elm_map_overlay_color_set (Elm_Map_Overlay *overlay, int r, int g, int b, int a)
 Set the object color of the overlay. More...
 
void elm_map_overlay_color_get (const Elm_Map_Overlay *overlay, int *r, int *g, int *b, int *a)
 Get the object color of the overlay. More...
 
void elm_map_overlay_show (Elm_Map_Overlay *overlay)
 Show the given overlay at the center of the map, immediately. More...
 
void elm_map_overlays_show (Eina_List *overlays)
 Move and zoom the map to display a list of overlays. More...
 
void elm_map_overlay_get_cb_set (Elm_Map_Overlay *overlay, Elm_Map_Overlay_Get_Cb get_cb, void *data)
 Set the get callback function of the overlay. More...
 
void elm_map_overlay_del_cb_set (Elm_Map_Overlay *overlay, Elm_Map_Overlay_Del_Cb del_cb, void *data)
 Set the del callback function to call when the overlay is deleted. More...
 
void elm_map_overlay_class_append (Elm_Map_Overlay *clas, Elm_Map_Overlay *overlay)
 Add a new overlay member to the class overlay. More...
 
void elm_map_overlay_class_remove (Elm_Map_Overlay *clas, Elm_Map_Overlay *overlay)
 Remove a overlay from the class. More...
 
void elm_map_overlay_class_zoom_max_set (Elm_Map_Overlay *clas, int zoom)
 Set the maximum zoom from where the overlay members in the class can be grouped. More...
 
int elm_map_overlay_class_zoom_max_get (const Elm_Map_Overlay *clas)
 Get the maximum zoom from where the overlay members in the class can be grouped. More...
 
Eina_Listelm_map_overlay_group_members_get (const Elm_Map_Overlay *grp)
 Get the overlay members of the group overlay. More...
 
void elm_map_overlay_bubble_follow (Elm_Map_Overlay *bubble, const Elm_Map_Overlay *parent)
 Follow a other overlay. More...
 
void elm_map_overlay_bubble_content_append (Elm_Map_Overlay *bubble, Evas_Object *content)
 Add a content object to the bubble overlay. More...
 
void elm_map_overlay_bubble_content_clear (Elm_Map_Overlay *bubble)
 Clear all contents inside the bubble overlay. More...
 
void elm_map_overlay_polygon_region_add (Elm_Map_Overlay *overlay, double lon, double lat)
 Add a geographic coordinates to the polygon overlay. More...
 
void elm_map_route_del (Elm_Map_Route *route)
 Remove a route from the map. More...
 
double elm_map_route_distance_get (const Elm_Map_Route *route)
 Get the route distance in kilometers. More...
 
const char * elm_map_route_node_get (const Elm_Map_Route *route)
 Get the information of route nodes. More...
 
const char * elm_map_route_waypoint_get (const Elm_Map_Route *route)
 Get the information of route waypoint. More...
 
const char * elm_map_name_address_get (const Elm_Map_Name *name)
 Get the address of the name. More...
 
void elm_map_name_region_get (const Elm_Map_Name *name, double *lon, double *lat)
 Get the current coordinates of the name. More...
 
void elm_map_name_del (Elm_Map_Name *name)
 Remove a name from the map. More...
 
void elm_map_zoom_min_set (Elm_Map *obj, int zoom)
 Set the minimum zoom of the source. More...
 
int elm_map_zoom_min_get (const Elm_Map *obj)
 Get the minimum zoom of the source. More...
 
void elm_map_rotate_set (Elm_Map *obj, double degree, int cx, int cy)
 Rotate the map. More...
 
void elm_map_rotate_get (const Elm_Map *obj, double *degree, int *cx, int *cy)
 Get the rotate degree of the map. More...
 
void elm_map_user_agent_set (Elm_Map *obj, const char *user_agent)
 Set the user agent used by the map object to access routing services. More...
 
const char * elm_map_user_agent_get (const Elm_Map *obj)
 Get the user agent used by the map object. More...
 
void elm_map_zoom_max_set (Elm_Map *obj, int zoom)
 Set the maximum zoom of the source. More...
 
int elm_map_zoom_max_get (const Elm_Map *obj)
 Get the maximum zoom of the source. More...
 
void elm_map_region_get (const Elm_Map *obj, double *lon, double *lat)
 Get the current geographic coordinates of the map. More...
 
Eina_Listelm_map_overlays_get (const Elm_Map *obj)
 Return all overlays in the map object. More...
 
void elm_map_tile_load_status_get (const Elm_Map *obj, int *try_num, int *finish_num)
 Get the information of tile load status. More...
 
void elm_map_source_set (Elm_Map *obj, Elm_Map_Source_Type type, const char *source_name)
 Set the current source of the map for a specific type. More...
 
const char * elm_map_source_get (const Elm_Map *obj, Elm_Map_Source_Type type)
 Get the name of currently used source for a specific type. More...
 
Elm_Map_Routeelm_map_route_add (Elm_Map *obj, Elm_Map_Route_Type type, Elm_Map_Route_Method method, double flon, double flat, double tlon, double tlat, Elm_Map_Route_Cb route_cb, void *data)
 Add a new route to the map object. More...
 
Efl_Canvas_Objectelm_map_track_add (Elm_Map *obj, void *emap)
 Add a track on the map. More...
 
void elm_map_region_to_canvas_convert (const Elm_Map *obj, double lon, double lat, int *x, int *y)
 Convert geographic coordinates (longitude, latitude) into canvas coordinates. More...
 
Elm_Map_Overlayelm_map_overlay_circle_add (Elm_Map *obj, double lon, double lat, double radius)
 Add a new circle overlay to the map object. More...
 
Elm_Map_Overlayelm_map_overlay_class_add (Elm_Map *obj)
 Add a new class overlay to the map object. More...
 
Elm_Map_Overlayelm_map_overlay_bubble_add (Elm_Map *obj)
 Add a new bubble overlay to the map object. More...
 
const char ** elm_map_sources_get (const Elm_Map *obj, Elm_Map_Source_Type type)
 Get the names of available sources for a specific type. More...
 
Elm_Map_Overlayelm_map_overlay_polygon_add (Elm_Map *obj)
 Add a new polygon overlay to the map object. More...
 
Elm_Map_Overlayelm_map_overlay_line_add (Elm_Map *obj, double flon, double flat, double tlon, double tlat)
 Add a new line overlay to the map object. More...
 
void elm_map_region_show (Elm_Map *obj, double lon, double lat)
 Show the given coordinates at the center of the map, immediately. More...
 
Elm_Map_Nameelm_map_name_add (const Elm_Map *obj, const char *address, double lon, double lat, Elm_Map_Name_Cb name_cb, void *data)
 Request a address or geographic coordinates(longitude, latitude) from a given address or geographic coordinate(longitude, latitude). More...
 
void elm_map_region_bring_in (Elm_Map *obj, double lon, double lat)
 Animatedly bring in given coordinates to the center of the map. More...
 
void elm_map_region_zoom_bring_in (Elm_Map *obj, int zoom, double lon, double lat)
 Animatedly set the zoom level of the map and bring in given coordinates to the center of the map. More...
 
void elm_map_track_remove (Elm_Map *obj, Efl_Canvas_Object *route)
 Remove a track from the map. More...
 
Elm_Map_Overlayelm_map_overlay_route_add (Elm_Map *obj, const Elm_Map_Route *route)
 Add a new route overlay to the map object. More...
 
Elm_Map_Overlayelm_map_overlay_scale_add (Elm_Map *obj, int x, int y)
 Add a new scale overlay to the map object. More...
 
Elm_Map_Overlayelm_map_overlay_add (Elm_Map *obj, double lon, double lat)
 Add a new overlay to the map object. More...
 
void elm_map_canvas_to_region_convert (const Elm_Map *obj, int x, int y, double *lon, double *lat)
 Convert canvas coordinates into geographic coordinates (longitude, latitude). More...
 
Evas_Objectelm_map_add (Evas_Object *parent)
 Add a new map widget to the given parent Elementary (container) object. More...
 
void elm_map_zoom_set (Evas_Object *obj, int zoom)
 Set the zoom level of the map. More...
 
int elm_map_zoom_get (const Evas_Object *obj)
 Get the zoom level of the map. More...
 
void elm_map_zoom_mode_set (Evas_Object *obj, Elm_Map_Zoom_Mode mode)
 Set the zoom mode used by the map object. More...
 
Elm_Map_Zoom_Mode elm_map_zoom_mode_get (const Evas_Object *obj)
 Get the zoom mode used by the map object. More...
 
void elm_map_wheel_disabled_set (Evas_Object *obj, Eina_Bool disabled)
 Enable or disable mouse wheel to be used to zoom in / out the map. More...
 
Eina_Bool elm_map_wheel_disabled_get (const Evas_Object *obj)
 Get a value whether mouse wheel is enabled or not. More...
 
void elm_map_paused_set (Evas_Object *obj, Eina_Bool paused)
 Pause or unpause the map. More...
 
Eina_Bool elm_map_paused_get (const Evas_Object *obj)
 Get a value whether map is paused or not. More...
 

Detailed Description

map_inheritance_tree.png
preview-00.png

This is a widget specifically for displaying a map. It uses basically OpenStreetMap provider http://www.openstreetmap.org/ but custom providers can be added.

It supports some basic but yet nice features:

This widget implements the The Elementary Scrollable Interface interface, so that all (non-deprecated) functions for the base Scroller widget also work for map objects.

Smart callbacks one can listen to:

Available style for map widget:

Available style for markers:

Available style for marker bubble:

List of examples:

Typedef Documentation

◆ Elm_Map_Marker

typedef struct _Elm_Map_Marker Elm_Map_Marker

A marker to be shown in a specific point of the map.

Can be created with elm_map_marker_add() and deleted with elm_map_marker_remove().

◆ Elm_Map_Marker_Class

typedef struct _Elm_Map_Marker_Class Elm_Map_Marker_Class

Each marker must be associated to a class.

It's required to add a mark. The class defines the style of the marker when a marker is displayed alone (not grouped). A new class can be created with elm_map_marker_class_new().

◆ Elm_Map_Group_Class

typedef struct _Elm_Map_Group_Class Elm_Map_Group_Class

Each marker must be associated to a group class.

It's required to add a mark. The group class defines the style of the marker when a marker is grouped to other markers. Markers with the same group are grouped if they are close. A new group class can be created with elm_map_marker_group_class_new().

◆ Elm_Map_Route

typedef struct _Elm_Map_Route Elm_Map_Route

A route to be shown in the map.

Can be created with elm_map_route_add() and deleted with elm_map_route_del().

◆ Elm_Map_Name

typedef struct _Elm_Map_Name Elm_Map_Name

A handle for specific coordinates.

◆ Elm_Map_Overlay

A overlay to be shown in a specific point of the map.

This can be created by elm_map_overlay_add() and similar functions and deleted by elm_map_overlay_del().

◆ Elm_Map_Marker_Get_Func

typedef Evas_Object*(* Elm_Map_Marker_Get_Func) (Evas_Object *obj, Elm_Map_Marker *marker, void *data)

Bubble content fetching class function for marker classes.

When the user click on a marker, a bubble is displayed with a content.

◆ Elm_Map_Marker_Del_Func

typedef void(* Elm_Map_Marker_Del_Func) (Evas_Object *obj, Elm_Map_Marker *marker, void *data, Evas_Object *o)

Function to delete bubble content for marker classes.

◆ Elm_Map_Marker_Icon_Get_Func

typedef Evas_Object*(* Elm_Map_Marker_Icon_Get_Func) (Evas_Object *obj, Elm_Map_Marker *marker, void *data)

Icon fetching class function for marker classes.

◆ Elm_Map_Group_Icon_Get_Func

typedef Evas_Object*(* Elm_Map_Group_Icon_Get_Func) (Evas_Object *obj, void *data)

Icon fetching class function for markers group classes.

◆ Elm_Map_Overlay_Get_Cb

typedef void(* Elm_Map_Overlay_Get_Cb) (void *data, Evas_Object *map, Elm_Map_Overlay *overlay)

Get callback function for the overlay.

◆ Elm_Map_Overlay_Del_Cb

typedef void(* Elm_Map_Overlay_Del_Cb) (void *data, Evas_Object *map, Elm_Map_Overlay *overlay)

Det callback function for the overlay.

Since
1.7

◆ Elm_Map_Name_Cb

typedef void(* Elm_Map_Name_Cb) (void *data, Evas_Object *map, Elm_Map_Name *name)

Async-callback function for the name request.

◆ Elm_Map_Name_List_Cb

typedef void(* Elm_Map_Name_List_Cb) (void *data, Evas_Object *map, Eina_List *name_list)

Async-callback function for the name list request.

◆ Elm_Map_Route_Cb

typedef void(* Elm_Map_Route_Cb) (void *data, Evas_Object *map, Elm_Map_Route *route)

Async-callback function for the route request.

Enumeration Type Documentation

◆ Elm_Map_Name_Method

Set the name search method.

This is for name module interface.

◆ Elm_Map_Overlay_Type

Set overlay type to be used.

This type is resolved when the overlay is created. You can get this value by elm_map_overlay_type_get().

See also
elm_map_overlay_type_get()
elm_map_overlay_add()
elm_map_overlay_class_add()
elm_map_overlay_bubble_add()

◆ Elm_Map_Source_Type

enum Elm_Map_Source_Type

Set type of a external source (provider).

See elm_map_sources_get() See elm_map_source_get() See elm_map_source_set()

Enumerator
ELM_MAP_SOURCE_TYPE_TILE 

Map tile provider.

ELM_MAP_SOURCE_TYPE_ROUTE 

Route service provider.

ELM_MAP_SOURCE_TYPE_NAME 

Name service provider.

ELM_MAP_SOURCE_TYPE_LAST 

Sentinel value to indicate last enum field during iteration.

ELM_MAP_SOURCE_TYPE_TILE 

Map tile provider.

ELM_MAP_SOURCE_TYPE_ROUTE 

Route service provider.

ELM_MAP_SOURCE_TYPE_NAME 

Name service provider.

ELM_MAP_SOURCE_TYPE_LAST 

Sentinel value to indicate last enum field during iteration.

◆ Elm_Map_Route_Type

enum Elm_Map_Route_Type

Set type of transport used on route.

See elm_map_route_add()

Enumerator
ELM_MAP_ROUTE_TYPE_MOTOCAR 

Route should consider an automobile will be used.

ELM_MAP_ROUTE_TYPE_BICYCLE 

Route should consider a bicycle will be used by the user.

ELM_MAP_ROUTE_TYPE_FOOT 

Route should consider user will be walking.

ELM_MAP_ROUTE_TYPE_LAST 

Sentinel value to indicate last enum field during iteration.

ELM_MAP_ROUTE_TYPE_MOTOCAR 

Route should consider an automobile will be used.

ELM_MAP_ROUTE_TYPE_BICYCLE 

Route should consider a bicycle will be used by the user.

ELM_MAP_ROUTE_TYPE_FOOT 

Route should consider user will be walking.

ELM_MAP_ROUTE_TYPE_LAST 

Sentinel value to indicate last enum field during iteration.

◆ Elm_Map_Route_Method

enum Elm_Map_Route_Method

Set the routing method, what should be prioritized, time or distance.

See elm_map_route_add()

Enumerator
ELM_MAP_ROUTE_METHOD_FASTEST 

Route should prioritize time.

ELM_MAP_ROUTE_METHOD_SHORTEST 

Route should prioritize distance.

ELM_MAP_ROUTE_METHOD_LAST 

Sentinel value to indicate last enum field during iteration.

ELM_MAP_ROUTE_METHOD_FASTEST 

Route should prioritize time.

ELM_MAP_ROUTE_METHOD_SHORTEST 

Route should prioritize distance.

ELM_MAP_ROUTE_METHOD_LAST 

Sentinel value to indicate last enum field during iteration.

◆ Elm_Map_Zoom_Mode

Set map's zoom behavior.

It can be set to manual or automatic.

Default value is ELM_MAP_ZOOM_MODE_MANUAL.

Values don't work as bitmask, only one can be chosen.

Valid sizes are 2^zoom, consequently the map may be smaller than the scroller view.

See elm_map_zoom_mode_set() See elm_map_zoom_mode_get()

Enumerator
ELM_MAP_ZOOM_MODE_MANUAL 

Zoom controlled manually by elm_map_zoom_set().

It's set by default.

ELM_MAP_ZOOM_MODE_AUTO_FIT 

Zoom until map fits inside the scroll frame with no pixels outside this area.

ELM_MAP_ZOOM_MODE_AUTO_FILL 

Zoom until map fills scroll, ensuring no pixels are left unfilled.

ELM_MAP_ZOOM_MODE_LAST 

Sentinel value to indicate last enum field during iteration.

Function Documentation

◆ elm_map_overlay_del()

void elm_map_overlay_del ( Elm_Map_Overlay overlay)

Delete a overlay from the map.

This function can delete all types of overlays.

Parameters
overlayThe overlay to be deleted.
See also
elm_map_overlay_add()
elm_map_overlay_class_add()
elm_map_overlay_bubble_add()

References EINA_SAFETY_ON_NULL_RETURN, and elm_map_overlay_class_remove().

◆ elm_map_overlay_type_get()

Elm_Map_Overlay_Type elm_map_overlay_type_get ( const Elm_Map_Overlay overlay)

Get the overlay type.

Parameters
overlayThe overlay to return type.
Returns
Return the overlay type.

This type is resolved when the overlay is created.

See also
elm_map_overlay_add()
elm_map_overlay_class_add()
elm_map_overlay_bubble_add()

References EINA_SAFETY_ON_NULL_RETURN_VAL.

◆ elm_map_overlay_data_set()

void elm_map_overlay_data_set ( Elm_Map_Overlay overlay,
void *  data 
)

Set a pointer of user data for a overlay.

Parameters
overlayThe overlay to own the user data.
dataA pointer of user data
See also
elm_map_overlay_data_get()

References EINA_SAFETY_ON_NULL_RETURN.

◆ elm_map_overlay_data_get()

void* elm_map_overlay_data_get ( const Elm_Map_Overlay overlay)

Get the user data stored on a overlay.

Parameters
overlayThe overlay to return the user data.
Returns
A pointer to data stored using elm_map_overlay_data_set(), or NULL, if none has been set.
See also
elm_map_overlay_data_set()

References EINA_SAFETY_ON_NULL_RETURN_VAL.

◆ elm_map_overlay_hide_set()

void elm_map_overlay_hide_set ( Elm_Map_Overlay overlay,
Eina_Bool  hide 
)

Set if the overlay is hidden or not.

Parameters
overlayThe overlay to be hidden.
hideUse EINA_TRUE to hide the overlay or EINA_FALSE to show.
See also
elm_map_overlay_hide_get()

References EINA_SAFETY_ON_NULL_RETURN, and evas_object_smart_changed().

◆ elm_map_overlay_hide_get()

Eina_Bool elm_map_overlay_hide_get ( const Elm_Map_Overlay overlay)

Get a value whether the overlay is hidden or not.

Parameters
overlayThe overlay to return the hidden state.
Returns
EINA_TRUE means the overlay is hidden. EINA_FALSE indicates it is not.

This gets the current hidden state for the overlay.

See also
elm_map_overlay_hide_set()

References EINA_FALSE, and EINA_SAFETY_ON_NULL_RETURN_VAL.

◆ elm_map_overlay_displayed_zoom_min_set()

void elm_map_overlay_displayed_zoom_min_set ( Elm_Map_Overlay overlay,
int  zoom 
)

Set the minimum zoom from where the overlay is displayed.

Parameters
overlayThe overlay to be set the minimum zoom.
zoomThe minimum zoom.

The overlay only will be displayed when the map is displayed at zoom or bigger.

See also
elm_map_overlay_displayed_zoom_min_get()

References EINA_SAFETY_ON_NULL_RETURN, and evas_object_smart_changed().

◆ elm_map_overlay_displayed_zoom_min_get()

int elm_map_overlay_displayed_zoom_min_get ( const Elm_Map_Overlay overlay)

Get the minimum zoom from where the overlay is displayed.

Parameters
overlayThe overlay to return the minimum zoom.
Returns
zoom The minimum zoom.
See also
elm_map_overlay_displayed_zoom_min_set()

References EINA_SAFETY_ON_NULL_RETURN_VAL.

◆ elm_map_overlay_paused_set()

void elm_map_overlay_paused_set ( Elm_Map_Overlay overlay,
Eina_Bool  paused 
)

Pause or unpause the overlay.

Parameters
overlayThe overlay to be paused.
pausedUse EINA_TRUE to pause the overlay or EINA_FALSE to unpause it.

This sets the paused state to on (EINA_TRUE) or off (EINA_FALSE) for the overlay.

The default is off.

This will stop moving the overlay coordinates instantly. even if map being scrolled or zoomed.

See also
elm_map_overlay_paused_get()

References EINA_SAFETY_ON_NULL_RETURN, and evas_object_smart_changed().

◆ elm_map_overlay_paused_get()

Eina_Bool elm_map_overlay_paused_get ( const Elm_Map_Overlay overlay)

Get a value whether the overlay is paused or not.

Parameters
overlayThe overlay to return paused state.
Returns
EINA_TRUE means overlay is paused. EINA_FALSE indicates it is not.

This gets the current paused state for the overlay.

See also
elm_map_overlay_paused_set()

References EINA_FALSE, and EINA_SAFETY_ON_NULL_RETURN_VAL.

◆ elm_map_overlay_visible_get()

Eina_Bool elm_map_overlay_visible_get ( const Elm_Map_Overlay overlay)

Get a value whether the overlay is visible or not.

Parameters
overlayThe overlay to return visible state.
Returns
EINA_TRUE means overlay is visible. EINA_FALSE indicates it is not.

The visible of the overlay can not be set. This value can be changed dynamically while zooming and panning

Since
1.7

References EINA_FALSE, and EINA_SAFETY_ON_NULL_RETURN_VAL.

◆ elm_map_overlay_content_set()

void elm_map_overlay_content_set ( Elm_Map_Overlay overlay,
Evas_Object obj 
)

Set the content object of the overlay.

Parameters
overlayThe overlay to be set the content.
objThe evas object will be used to display the overlay.

Only default and class type overlay support this function.

The content should be resized or set size hints before set to the overlay. Do not modify this object (move, show, hide, del, etc.), after set. You can only resize this.

This content is what will be inside the overlay that will be displayed. If a content is set, icon and default style layout are no more used before the content is deleted.

If obj is NULL, content inside the overlay is deleted.

See also
elm_map_overlay_content_get()

References EINA_SAFETY_ON_NULL_RETURN.

◆ elm_map_overlay_content_get()

const Evas_Object* elm_map_overlay_content_get ( const Elm_Map_Overlay overlay)

Get the content object.

Parameters
overlayThe overlay to return the content.
Returns
Return the evas object if it exists, else NULL.

Only default and class type overlay support this function.

Returned content is what being inside the overlay that being displayed.

Do not modify this object (move, show, hide, del, etc.). You can only resize this.

The content can be set by elm_map_overlay_content_set().

See also
elm_map_overlay_content_set()

References EINA_SAFETY_ON_NULL_RETURN_VAL.

◆ elm_map_overlay_icon_set()

void elm_map_overlay_icon_set ( Elm_Map_Overlay overlay,
Evas_Object icon 
)

Set a icon of the overlay.

Parameters
overlayThe overlay to be set the icon.
iconThe icon will be used to display the overlay.

Only default and class type overlay support this function.

Do not modify this object (move, show, hide, resize, del, etc.), after set.

If icon is set, default style layout will not be used.

If icon is NULL, icon inside the overlay will be deleted.

See also
elm_map_overlay_icon_get()

References EINA_SAFETY_ON_NULL_RETURN.

◆ elm_map_overlay_icon_get()

const Evas_Object* elm_map_overlay_icon_get ( const Elm_Map_Overlay overlay)

Get the icon object.

Parameters
overlayThe overlay to return the icon.
Returns
Return the icon object if it exists, else NULL.

Only default and class type overlay support this function.

Returned icon is what being inside the overlay that being displayed.

Do not modify this icon (move, show, hide, resize, del, etc.).

The icon can be set by elm_map_overlay_icon_set().

See also
elm_map_overlay_icon_set()

References EINA_SAFETY_ON_NULL_RETURN_VAL.

◆ elm_map_overlay_region_set()

void elm_map_overlay_region_set ( Elm_Map_Overlay overlay,
double  lon,
double  lat 
)

Set the geographic coordinates of the overlay.

Parameters
overlayThe overlay to be set geographic coordinates.
lonLongitude to be set.
latLatitude to be set.

Only default and bubble type overlay support this function.

This sets the center coordinates of the overlay. It can be get by elm_map_overlay_region_get().

See also
elm_map_overlay_region_get()

References EINA_SAFETY_ON_NULL_RETURN.

◆ elm_map_overlay_region_get()

void elm_map_overlay_region_get ( const Elm_Map_Overlay overlay,
double *  lon,
double *  lat 
)

Get the geographic coordinates of the overlay.

Parameters
overlayThe overlay to return geographic coordinates.
lonPointer to store longitude.
latPointer to store latitude.

Only default and bubble type overlay support this function.

This returns the center coordinates of the overlay. It can be set by elm_map_overlay_region_set().

See also
elm_map_overlay_region_set()

References EINA_SAFETY_ON_NULL_RETURN.

◆ elm_map_overlay_color_set()

void elm_map_overlay_color_set ( Elm_Map_Overlay overlay,
int  r,
int  g,
int  b,
int  a 
)

Set the object color of the overlay.

Parameters
overlayThe overlay to be set color.
rRed channel value, from 0 to 255.
gGreen channel value, from 0 to 255.
bBlue channel value, from 0 to 255.
aAlpha channel value, from 0 to 255.

It uses an additive color model, so each color channel represents how much of each primary colors must to be used. 0 represents absence of this color, so if all of the three are set to 0, the color will be black.

These component values should be integers in the range 0 to 255, (single 8-bit byte).

This sets the color used for the overlay. By default, it is set to solid red (r = 255, g = 0, b = 0, a = 255).

For alpha channel, 0 represents completely transparent, and 255, opaque.

Function supports only ELM_MAP_OVERLAY_TYPE_CLASS, ELM_MAP_OVERLAY_TYPE_DEFAULT and ELM_MAP_OVERLAY_TYPE_ROUTE Elm_Map_Overlay_Type types.

See also
elm_map_overlay_color_get()

References EINA_SAFETY_ON_NULL_RETURN.

◆ elm_map_overlay_color_get()

void elm_map_overlay_color_get ( const Elm_Map_Overlay overlay,
int *  r,
int *  g,
int *  b,
int *  a 
)

Get the object color of the overlay.

Parameters
overlayThe overlay to return color.
rPointer to store the red channel value.
gPointer to store the green channel value.
bPointer to store the blue channel value.
aPointer to store the alpha channel value.
See also
elm_map_overlay_color_set()

References EINA_SAFETY_ON_NULL_RETURN.

◆ elm_map_overlay_show()

void elm_map_overlay_show ( Elm_Map_Overlay overlay)

Show the given overlay at the center of the map, immediately.

Parameters
overlayThe overlay to be center at.

This causes map to redraw its viewport's contents to the region containing the given overlay's coordinates, that will be moved to the center of the map.

See also
elm_map_overlays_show() if more than one overlay need to be displayed.

References EINA_SAFETY_ON_NULL_RETURN.

◆ elm_map_overlays_show()

void elm_map_overlays_show ( Eina_List overlays)

Move and zoom the map to display a list of overlays.

Parameters
overlaysA list of Elm_Map_Overlay handles.

The map will be centered on the center point of the overlays in the list. Then the map will be zoomed in order to fit the overlays using the maximum zoom which allows display of all the overlays.

Warning
All the overlays should belong to the same map object.
See also
elm_map_overlay_show() to show a single overlay.

References eina_list_count(), eina_list_data_get(), EINA_SAFETY_ON_FALSE_RETURN, EINA_SAFETY_ON_NULL_RETURN, and evas_object_smart_changed().

◆ elm_map_overlay_get_cb_set()

void elm_map_overlay_get_cb_set ( Elm_Map_Overlay overlay,
Elm_Map_Overlay_Get_Cb  get_cb,
void *  data 
)

Set the get callback function of the overlay.

Parameters
overlayThe overlay to own the get callback function.
get_cbThe callback function.
dataThe user callback data.

If the overlay is clicked, the callback wll be called. The clicked overlay is returned by callback.

You can add callback to the class overlay. If one of the group overlays in this class is clicked, callback will be called and return a virtual group overlays.

You can delete this callback function by setting NULL.

References EINA_SAFETY_ON_NULL_RETURN.

◆ elm_map_overlay_del_cb_set()

void elm_map_overlay_del_cb_set ( Elm_Map_Overlay overlay,
Elm_Map_Overlay_Del_Cb  del_cb,
void *  data 
)

Set the del callback function to call when the overlay is deleted.

Parameters
overlayThe overlay to own the del callback function.
del_cbThe callback function.
dataThe user callback data.

If the overlay is deleted, the callback wll be called. The deleted overlay is returned by callback.

You can delete this callback function by setting NULL.

Since
1.7

References EINA_SAFETY_ON_NULL_RETURN.

◆ elm_map_overlay_class_append()

void elm_map_overlay_class_append ( Elm_Map_Overlay clas,
Elm_Map_Overlay overlay 
)

Add a new overlay member to the class overlay.

Parameters
clasThe class overlay to add a new overlay.
overlayThe overlay to be added to the class overlay.
See also
elm_map_overlay_class_remove()

References EINA_SAFETY_ON_FALSE_RETURN, and EINA_SAFETY_ON_NULL_RETURN.

◆ elm_map_overlay_class_remove()

void elm_map_overlay_class_remove ( Elm_Map_Overlay clas,
Elm_Map_Overlay overlay 
)

Remove a overlay from the class.

Parameters
clasThe class overlay to delete the overlay.
overlayThe overlay to be deleted from the class overlay.
See also
elm_map_overlay_class_append()

References EINA_SAFETY_ON_FALSE_RETURN, and EINA_SAFETY_ON_NULL_RETURN.

Referenced by elm_map_overlay_del().

◆ elm_map_overlay_class_zoom_max_set()

void elm_map_overlay_class_zoom_max_set ( Elm_Map_Overlay clas,
int  zoom 
)

Set the maximum zoom from where the overlay members in the class can be grouped.

Parameters
clasThe overlay class has overlay members.
zoomThe maximum zoom.

Overlay members in the class only will be grouped when the map is displayed at less than zoom.

See also
elm_map_overlay_class_zoom_max_get()

References EINA_SAFETY_ON_FALSE_RETURN, and EINA_SAFETY_ON_NULL_RETURN.

◆ elm_map_overlay_class_zoom_max_get()

int elm_map_overlay_class_zoom_max_get ( const Elm_Map_Overlay clas)

Get the maximum zoom from where the overlay members in the class can be grouped.

Parameters
clasThe overlay class has overlay members.
Returns
The maximum zoom.
See also
elm_map_overlay_class_zoom_max_set()

References EINA_SAFETY_ON_FALSE_RETURN_VAL, and EINA_SAFETY_ON_NULL_RETURN_VAL.

◆ elm_map_overlay_group_members_get()

Eina_List* elm_map_overlay_group_members_get ( const Elm_Map_Overlay grp)

Get the overlay members of the group overlay.

Parameters
grpThe group overlay has overlay members.
Returns
The list of group overlay members.

The group overlays are virtual overlays. Those are shown and hidden dynamically. You can add callback to the class overlay. If one of the group overlays in this class is clicked, callback will be called and return a virtual group overlays.

You can change the state (hidden, paused, etc.) or set the content or icon of the group overlays by changing the state of the class overlay. Do not modify the group overlay itself.

See also
elm_map_overlay_class_add()

References EINA_SAFETY_ON_FALSE_RETURN_VAL, and EINA_SAFETY_ON_NULL_RETURN_VAL.

◆ elm_map_overlay_bubble_follow()

void elm_map_overlay_bubble_follow ( Elm_Map_Overlay bubble,
const Elm_Map_Overlay parent 
)

Follow a other overlay.

Parameters
bubbleThe bubble overlay to follow a parent overlay.
parentThe parent overlay to be followed by the bubble overlay.

Bubble overlay will follow the parent overlay's movement (hide, show, move).

See also
elm_map_overlay_bubble_add()

References EINA_SAFETY_ON_FALSE_RETURN, and EINA_SAFETY_ON_NULL_RETURN.

◆ elm_map_overlay_bubble_content_append()

void elm_map_overlay_bubble_content_append ( Elm_Map_Overlay bubble,
Evas_Object content 
)

Add a content object to the bubble overlay.

Parameters
bubbleThe bubble overlay to add a content.
contentThe content to be added to the bubble overlay.

Added contents will be displayed inside the bubble overlay.

See also
elm_map_overlay_bubble_content_clear()

References EINA_SAFETY_ON_FALSE_RETURN, and EINA_SAFETY_ON_NULL_RETURN.

◆ elm_map_overlay_bubble_content_clear()

void elm_map_overlay_bubble_content_clear ( Elm_Map_Overlay bubble)

Clear all contents inside the bubble overlay.

Parameters
bubbleThe bubble overlay to clear the contents.

This will delete all contents inside the bubble overlay.

See also
elm_map_overlay_bubble_content_append()

References EINA_SAFETY_ON_FALSE_RETURN, and EINA_SAFETY_ON_NULL_RETURN.

◆ elm_map_overlay_polygon_region_add()

void elm_map_overlay_polygon_region_add ( Elm_Map_Overlay overlay,
double  lon,
double  lat 
)

Add a geographic coordinates to the polygon overlay.

Parameters
overlayThe polygon overlay to get a region.
lonThe longitude.
latThe latitude.

At least 3 regions should be added to show the polygon overlay.

Overlay created with this method can be deleted with elm_map_overlay_del().

See also
elm_map_overlay_polygon_add()
elm_map_overlay_del()

References EINA_SAFETY_ON_FALSE_RETURN, and EINA_SAFETY_ON_NULL_RETURN.

◆ elm_map_route_del()

void elm_map_route_del ( Elm_Map_Route route)

Remove a route from the map.

Parameters
routeThe route to remove.
See also
elm_map_route_add()

References ecore_file_download_abort(), ecore_file_remove(), EINA_LIST_FREE, eina_list_remove(), EINA_SAFETY_ON_NULL_RETURN, and eina_stringshare_del().

◆ elm_map_route_distance_get()

double elm_map_route_distance_get ( const Elm_Map_Route route)

Get the route distance in kilometers.

Parameters
routeThe route object.
Returns
The distance of route (unit : km).

References EINA_SAFETY_ON_NULL_RETURN_VAL.

◆ elm_map_route_node_get()

const char* elm_map_route_node_get ( const Elm_Map_Route route)

Get the information of route nodes.

Parameters
routeThe route object.
Returns
Returns a string with the nodes of route.

References EINA_SAFETY_ON_NULL_RETURN_VAL.

◆ elm_map_route_waypoint_get()

const char* elm_map_route_waypoint_get ( const Elm_Map_Route route)

Get the information of route waypoint.

Parameters
routethe route object.
Returns
Returns a string with information about waypoint of route.

References EINA_SAFETY_ON_NULL_RETURN_VAL.

◆ elm_map_name_address_get()

const char* elm_map_name_address_get ( const Elm_Map_Name name)

Get the address of the name.

Parameters
nameThe name handle.
Returns
Returns the address string of name.

This gets the coordinates of the name, created with one of the conversion functions.

See also
elm_map_name_add()

References EINA_SAFETY_ON_NULL_RETURN_VAL.

◆ elm_map_name_region_get()

void elm_map_name_region_get ( const Elm_Map_Name name,
double *  lon,
double *  lat 
)

Get the current coordinates of the name.

Parameters
nameThe name handle.
latPointer to store the latitude.
lonPointer to store The longitude.

This gets the coordinates of the name, created with one of the conversion functions.

See also
elm_map_name_add()

References EINA_SAFETY_ON_NULL_RETURN.

◆ elm_map_name_del()

void elm_map_name_del ( Elm_Map_Name name)

Remove a name from the map.

Parameters
nameThe name to remove.

Basically the struct handled by name will be freed, so conversions between address and coordinates will be lost.

See also
elm_map_name_add()

References ecore_file_download_abort(), ecore_file_remove(), eina_list_remove(), and EINA_SAFETY_ON_NULL_RETURN.

◆ elm_map_zoom_min_set()

void elm_map_zoom_min_set ( Elm_Map *  obj,
int  zoom 
)

Set the minimum zoom of the source.

Parameters
[in]objThe object.
[in]zoomMinimum zoom value to be used.

◆ elm_map_zoom_min_get()

int elm_map_zoom_min_get ( const Elm_Map *  obj)

Get the minimum zoom of the source.

Parameters
[in]objThe object.
Returns
Minimum zoom value to be used.

◆ elm_map_rotate_set()

void elm_map_rotate_set ( Elm_Map *  obj,
double  degree,
int  cx,
int  cy 
)

Rotate the map.

Parameters
[in]objThe object.
[in]degreeAngle from 0.0 to 360.0 to rotate around Z axis.
[in]cxRotation's center horizontal position.
[in]cyRotation's center vertical position.

◆ elm_map_rotate_get()

void elm_map_rotate_get ( const Elm_Map *  obj,
double *  degree,
int *  cx,
int *  cy 
)

Get the rotate degree of the map.

Parameters
[in]objThe object.
[out]degreeAngle from 0.0 to 360.0 to rotate around Z axis.
[out]cxRotation's center horizontal position.
[out]cyRotation's center vertical position.

◆ elm_map_user_agent_set()

void elm_map_user_agent_set ( Elm_Map *  obj,
const char *  user_agent 
)

Set the user agent used by the map object to access routing services.

User agent is a client application implementing a network protocol used in communications within a clientserver distributed computing system

The user_agent identification string will transmitted in a header field User-Agent.

Parameters
[in]objThe object.
[in]user_agentThe user agent to be used by the map.

◆ elm_map_user_agent_get()

const char* elm_map_user_agent_get ( const Elm_Map *  obj)

Get the user agent used by the map object.

Parameters
[in]objThe object.
Returns
The user agent to be used by the map.

◆ elm_map_zoom_max_set()

void elm_map_zoom_max_set ( Elm_Map *  obj,
int  zoom 
)

Set the maximum zoom of the source.

Parameters
[in]objThe object.
[in]zoomMaximum zoom value to be used.

◆ elm_map_zoom_max_get()

int elm_map_zoom_max_get ( const Elm_Map *  obj)

Get the maximum zoom of the source.

Parameters
[in]objThe object.
Returns
Maximum zoom value to be used.

◆ elm_map_region_get()

void elm_map_region_get ( const Elm_Map *  obj,
double *  lon,
double *  lat 
)

Get the current geographic coordinates of the map.

This gets the current center coordinates of the map object. It can be set by elm_map_region_bring_in and elm_map_region_show.

Parameters
[in]objThe object.
[out]lonPointer to store longitude.
[out]latPointer to store latitude.

◆ elm_map_overlays_get()

Eina_List* elm_map_overlays_get ( const Elm_Map *  obj)

Return all overlays in the map object.

This list includes group overlays also. So this can be changed dynamically while zooming and panning.

Parameters
[in]objThe object.
Returns
The list of all overlays or null upon failure.
Since
1.7

◆ elm_map_tile_load_status_get()

void elm_map_tile_load_status_get ( const Elm_Map *  obj,
int *  try_num,
int *  finish_num 
)

Get the information of tile load status.

This gets the current tile loaded status for the map object.

Parameters
[in]objThe object.
[out]try_numPointer to store number of tiles download requested.
[out]finish_numPointer to store number of tiles successfully downloaded.

◆ elm_map_source_set()

void elm_map_source_set ( Elm_Map *  obj,
Elm_Map_Source_Type  type,
const char *  source_name 
)

Set the current source of the map for a specific type.

Map widget retrieves tile images that composes the map from a web service. This web service can be set with this method for ELM_MAP_SOURCE_TYPE_TILE type. A different service can return a different maps with different information and it can use different zoom values.

Map widget provides route data based on a external web service. This web service can be set with this method for ELM_MAP_SOURCE_TYPE_ROUTE type.

Map widget also provide geoname data based on a external web service. This web service can be set with this method for ELM_MAP_SOURCE_TYPE_NAME type.

The source_name need to match one of the names provided by elm_map_sources_get.

The current source can be get using elm_map_source_get.

Parameters
[in]objThe object.
[in]typeSource type.
[in]source_nameThe source to be used.

◆ elm_map_source_get()

const char* elm_map_source_get ( const Elm_Map *  obj,
Elm_Map_Source_Type  type 
)

Get the name of currently used source for a specific type.

Parameters
[in]objThe object.
[in]typeSource type.
Returns
The name of the source in use.

◆ elm_map_route_add()

Elm_Map_Route* elm_map_route_add ( Elm_Map *  obj,
Elm_Map_Route_Type  type,
Elm_Map_Route_Method  method,
double  flon,
double  flat,
double  tlon,
double  tlat,
Elm_Map_Route_Cb  route_cb,
void *  data 
)

Add a new route to the map object.

A route will be traced by point on coordinates ($flat, flon) to point on coordinates ($tlat, tlon), using the route service set with elm_map_source_set.

It will take type on consideration to define the route, depending if the user will be walking or driving, the route may vary. One of ELM_MAP_ROUTE_TYPE_MOTOCAR, ELM_MAP_ROUTE_TYPE_BICYCLE, or ELM_MAP_ROUTE_TYPE_FOOT need to be used.

Another parameter is what the route should prioritize, the minor distance or the less time to be spend on the route. So method should be one of ELM_MAP_ROUTE_METHOD_SHORTEST or ELM_MAP_ROUTE_METHOD_FASTEST.

Routes created with this method can be deleted with elm_map_route_del and distance can be get with elm_map_route_distance_get.

Parameters
[in]objThe object.
[in]typeThe type of transport to be considered when tracing a route.
[in]methodThe routing method, what should be prioritized.
[in]flonThe start longitude.
[in]flatThe start latitude.
[in]tlonThe destination longitude.
[in]tlatThe destination latitude.
[in]route_cbThe route to be traced.
[in]dataA pointer of user data.
Returns
The created route or null upon failure.

◆ elm_map_track_add()

Efl_Canvas_Object* elm_map_track_add ( Elm_Map *  obj,
void *  emap 
)

Add a track on the map.

Parameters
[in]objThe object.
[in]emapThe emap route object.
Returns
The route object. This is an elm object of type Route.

◆ elm_map_region_to_canvas_convert()

void elm_map_region_to_canvas_convert ( const Elm_Map *  obj,
double  lon,
double  lat,
int *  x,
int *  y 
)

Convert geographic coordinates (longitude, latitude) into canvas coordinates.

This gets canvas x, y coordinates from longitude and latitude. The canvas coordinates mean x, y coordinate from current viewport.

Parameters
[in]objThe object.
[in]lonThe longitude to convert.
[in]latThe latitude to convert.
[out]xA pointer to horizontal coordinate.
[out]yA pointer to vertical coordinate.

◆ elm_map_overlay_circle_add()

Elm_Map_Overlay* elm_map_overlay_circle_add ( Elm_Map *  obj,
double  lon,
double  lat,
double  radius 
)

Add a new circle overlay to the map object.

This overlay has a circle type.

Overlay created with this method can be deleted with elm_map_overlay_del.

Parameters
[in]objThe object.
[in]lonThe center longitude.
[in]latThe center latitude.
[in]radiusThe pixel length of radius.
Returns
The created overlay or null upon failure.

◆ elm_map_overlay_class_add()

Elm_Map_Overlay* elm_map_overlay_class_add ( Elm_Map *  obj)

Add a new class overlay to the map object.

This overlay has a class type.

This overlay is not shown before overlay members are appended. if overlay members in the same class are close, group overlays are created. If they are far away, group overlays are hidden. When group overlays are shown, they have default style layouts at first.

You can change the state (hidden, paused, etc.) or set the content or icon of the group overlays by changing the state of the class overlay. Do not modify the group overlay itself.

Also these changes have a influence on the overlays in the same class even if each overlay is alone and is not grouped.

Parameters
[in]objThe object.
Returns
The created overlay or null upon failure.

◆ elm_map_overlay_bubble_add()

Elm_Map_Overlay* elm_map_overlay_bubble_add ( Elm_Map *  obj)

Add a new bubble overlay to the map object.

This overlay has a bubble type.

A bubble will not be displayed before geographic coordinates are set or any other overlays are followed.

This overlay has a bubble style layout and icon or content can not be set.

Overlay created with this method can be deleted with elm_map_overlay_del.

Parameters
[in]objThe object.
Returns
The created overlay or null upon failure.

◆ elm_map_sources_get()

const char** elm_map_sources_get ( const Elm_Map *  obj,
Elm_Map_Source_Type  type 
)

Get the names of available sources for a specific type.

It will provide a list with all available sources. Current source can be set by elm_map_source_set, or get with elm_map_source_get.

At least available sources of tile type are "Mapnik", "Osmarender", "CycleMap" and "Maplint".

At least available sources of route type are "Yours".

At least available sources of name type are "Nominatim".

Parameters
[in]objThe object.
[in]typeSource type.
Returns
The char pointer array of source names.

◆ elm_map_overlay_polygon_add()

Elm_Map_Overlay* elm_map_overlay_polygon_add ( Elm_Map *  obj)

Add a new polygon overlay to the map object.

This overlay has a polygon type.

At least 3 regions should be added to show the polygon overlay.

Overlay created with this method can be deleted with elm_map_overlay_del.

Parameters
[in]objThe object.
Returns
The created overlay or null upon failure.

◆ elm_map_overlay_line_add()

Elm_Map_Overlay* elm_map_overlay_line_add ( Elm_Map *  obj,
double  flon,
double  flat,
double  tlon,
double  tlat 
)

Add a new line overlay to the map object.

This overlay has a line type.

Overlay created with this method can be deleted with elm_map_overlay_del.

Parameters
[in]objThe object.
[in]flonThe start longitude.
[in]flatThe start latitude.
[in]tlonThe destination longitude.
[in]tlatThe destination latitude.
Returns
The created overlay or null upon failure.

◆ elm_map_region_show()

void elm_map_region_show ( Elm_Map *  obj,
double  lon,
double  lat 
)

Show the given coordinates at the center of the map, immediately.

This causes map to redraw its viewport's contents to the region containing the given lat and lon, that will be moved to the center of the map.

See elm_map_region_bring_in for a function to move with animation.

Parameters
[in]objThe object.
[in]lonLongitude to center at.
[in]latLatitude to center at.

◆ elm_map_name_add()

Elm_Map_Name* elm_map_name_add ( const Elm_Map *  obj,
const char *  address,
double  lon,
double  lat,
Elm_Map_Name_Cb  name_cb,
void *  data 
)

Request a address or geographic coordinates(longitude, latitude) from a given address or geographic coordinate(longitude, latitude).

If you want to get address from geographic coordinates, set input address as null and set lon, lat as you want to convert. If address is set except NULL, lon and lat are checked.

To get the string for this address, elm_map_name_address_get should be used after callback or "name,loaded" signal is called.

To get the longitude and latitude, elm_map_region_get should be used.

Parameters
[in]objThe object.
[in]addressThe address.
[in]lonThe longitude.
[in]latThe latitude.
[in]name_cbThe callback function.
[in]dataThe user callback data.
Returns
A Elm_Map_Name handle for this coordinate.

◆ elm_map_region_bring_in()

void elm_map_region_bring_in ( Elm_Map *  obj,
double  lon,
double  lat 
)

Animatedly bring in given coordinates to the center of the map.

This causes map to jump to the given lat and lon coordinates and show it (by scrolling) in the center of the viewport, if it is not already centered. This will use animation to do so and take a period of time to complete.

See elm_map_region_show for a function to avoid animation.

Parameters
[in]objThe object.
[in]lonLongitude to center at.
[in]latLatitude to center at.

◆ elm_map_region_zoom_bring_in()

void elm_map_region_zoom_bring_in ( Elm_Map *  obj,
int  zoom,
double  lon,
double  lat 
)

Animatedly set the zoom level of the map and bring in given coordinates to the center of the map.

This causes map to zoom into specific zoom level and also move to the given lat and lon coordinates and show it (by scrolling) in the center of the viewport concurrently.

See also elm_map_region_bring_in.

Parameters
[in]objThe object.
[in]zoomThe zoom level to set.
[in]lonLongitude to center at.
[in]latLatitude to center at.
Since
1.11

◆ elm_map_track_remove()

void elm_map_track_remove ( Elm_Map *  obj,
Efl_Canvas_Object route 
)

Remove a track from the map.

Parameters
[in]objThe object.
[in]routeThe track to remove.

◆ elm_map_overlay_route_add()

Elm_Map_Overlay* elm_map_overlay_route_add ( Elm_Map *  obj,
const Elm_Map_Route route 
)

Add a new route overlay to the map object.

This overlay has a route type.

This overlay has a route style layout and icon or content can not be set.

The color scheme can be changed by elm_map_overlay_content_set.

Overlay created with this method can be deleted with elm_map_overlay_del.

Parameters
[in]objThe object.
[in]routeThe route object to make a overlay.
Returns
The created overlay or null upon failure.

◆ elm_map_overlay_scale_add()

Elm_Map_Overlay* elm_map_overlay_scale_add ( Elm_Map *  obj,
int  x,
int  y 
)

Add a new scale overlay to the map object.

This overlay has a scale type.

The scale overlay shows the ratio of a distance on the map to the corresponding distance.

Overlay created with this method can be deleted with elm_map_overlay_del.

Parameters
[in]objThe object.
[in]xhorizontal pixel coordinate.
[in]yvertical pixel coordinate.
Returns
The created overlay or null upon failure.

◆ elm_map_overlay_add()

Elm_Map_Overlay* elm_map_overlay_add ( Elm_Map *  obj,
double  lon,
double  lat 
)

Add a new overlay to the map object.

This overlay has a default type.

A overlay will be created and shown in a specific point of the map, defined by lon and lat.

The created overlay has a default style layout before content or icon is set. If content or icon is set, those are displayed instead of default style layout.

You can set by using elm_map_overlay_content_set or elm_map_overlay_icon_set. If null is set, default style is shown again.

Overlay created with this method can be deleted by elm_map_overlay_del.

Parameters
[in]objThe object.
[in]lonThe longitude of the overlay.
[in]latThe latitude of the overlay.
Returns
The created overlay or null upon failure.

◆ elm_map_canvas_to_region_convert()

void elm_map_canvas_to_region_convert ( const Elm_Map *  obj,
int  x,
int  y,
double *  lon,
double *  lat 
)

Convert canvas coordinates into geographic coordinates (longitude, latitude).

This gets longitude and latitude from canvas x, y coordinates. The canvas coordinates mean x, y coordinate from current viewport.

Parameters
[in]objThe object.
[in]xHorizontal coordinate of the point to convert.
[in]yVertical coordinate of the point to convert.
[out]lonA pointer to the longitude.
[out]latA pointer to the latitude.

◆ elm_map_add()

Evas_Object* elm_map_add ( Evas_Object parent)

Add a new map widget to the given parent Elementary (container) object.

Parameters
parentThe parent object.
Returns
a new map widget handle or NULL, on errors.

This function inserts a new map widget on the canvas.

References EINA_SAFETY_ON_NULL_RETURN_VAL.

◆ elm_map_zoom_set()

void elm_map_zoom_set ( Evas_Object obj,
int  zoom 
)

Set the zoom level of the map.

This sets the zoom level.

It will respect limits defined by elm_map_zoom_min_set and elm_map_zoom_max_set.

By default these values are 0 (world map) and 18 (maximum zoom).

This function should be used when zoom mode is set to ELM_MAP_ZOOM_MODE_MANUAL. This is the default mode, and can be set with elm_map_zoom_mode_set.

Parameters
[in]objThe object.
[in]zoomThe zoom level.

◆ elm_map_zoom_get()

int elm_map_zoom_get ( const Evas_Object obj)

Get the zoom level of the map.

This returns the current zoom level of the map object.

Note that if you set the fill mode to other than ELM_MAP_ZOOM_MODE_MANUAL (which is the default), the zoom level may be changed at any time by the map object itself to account for map size and map viewport size.

Parameters
[in]objThe object.
Returns
The zoom level.

◆ elm_map_zoom_mode_set()

void elm_map_zoom_mode_set ( Evas_Object obj,
Elm_Map_Zoom_Mode  mode 
)

Set the zoom mode used by the map object.

This sets the zoom mode to manual or one of the automatic levels. Manual (ELM_MAP_ZOOM_MODE_MANUAL) means that zoom is set manually by elm_map_zoom_mode_set and will stay at that level until changed by code or until zoom mode is changed. This is the default mode.

The Automatic modes will allow the map object to automatically adjust zoom mode based on properties. ELM_MAP_ZOOM_MODE_AUTO_FIT will adjust zoom so the map fits inside the scroll frame with no pixels outside this area. ELM_MAP_ZOOM_MODE_AUTO_FILL will be similar but ensure no pixels within the frame are left unfilled. Do not forget that the valid sizes are 2^zoom, consequently the map may be smaller than the scroller view.

Parameters
[in]objThe object.
[in]modeThe zoom mode of the map, being it one of ELM_MAP_ZOOM_MODE_MANUAL (default), ELM_MAP_ZOOM_MODE_AUTO_FIT, or ELM_MAP_ZOOM_MODE_AUTO_FILL.

References EINA_FALSE.

◆ elm_map_zoom_mode_get()

Elm_Map_Zoom_Mode elm_map_zoom_mode_get ( const Evas_Object obj)

Get the zoom mode used by the map object.

This function returns the current zoom mode used by the ma object.

Parameters
[in]objThe object.
Returns
The zoom mode of the map, being it one of ELM_MAP_ZOOM_MODE_MANUAL (default), ELM_MAP_ZOOM_MODE_AUTO_FIT, or ELM_MAP_ZOOM_MODE_AUTO_FILL.

References EINA_TRUE, and ELM_MAP_ZOOM_MODE_MANUAL.

◆ elm_map_wheel_disabled_set()

void elm_map_wheel_disabled_set ( Evas_Object obj,
Eina_Bool  disabled 
)

Enable or disable mouse wheel to be used to zoom in / out the map.

Wheel is enabled by default.

Parameters
[in]objThe object.
[in]disabledUse true to disable mouse wheel or false to enable it.

◆ elm_map_wheel_disabled_get()

Eina_Bool elm_map_wheel_disabled_get ( const Evas_Object obj)

Get a value whether mouse wheel is enabled or not.

Mouse wheel can be used for the user to zoom in or zoom out the map.

Parameters
[in]objThe object.
Returns
Use true to disable mouse wheel or false to enable it.

◆ elm_map_paused_set()

void elm_map_paused_set ( Evas_Object obj,
Eina_Bool  paused 
)

Pause or unpause the map.

This sets the paused state to on true or off false for map.

The default is off.

This will stop zooming using animation, changing zoom levels will change instantly. This will stop any existing animations that are running.

Parameters
[in]objThe object.
[in]pausedUse true to pause the map obj or false to unpause it.

◆ elm_map_paused_get()

Eina_Bool elm_map_paused_get ( const Evas_Object obj)

Get a value whether map is paused or not.

This gets the current paused state for the map object.

Parameters
[in]objThe object.
Returns
Use true to pause the map obj or false to unpause it.