Tizen Native API

This is a widget specifically for displaying a map.

map_inheritance_tree.png

It basically uses the OpenStreetMap provider http://www.openstreetmap.org, but custom providers can be added.

It supports some basic yet nice features:

  • Zooming and scrolling
  • Markers with content to be displayed when a user clicks on them
  • Group of markers and
  • Routes

This widget implements the elm-scrollable-interface interface, so that all (non-deprecated) functions for the base Scroller widget also work for map objects.

Smart callbacks that one can listen to:

  • "clicked" - This is called when a user has clicked the map without dragging it around.
  • "clicked,double" - This is called when a user has double-clicked the map.
  • "press" - This is called when a user has pressed down on the map.
  • "longpressed" - This is called when a user has pressed down on the map for a long time without dragging it around.
  • "scroll" - The content has been scrolled (moved).
  • "scroll,drag,start" - Dragging the content around has started.
  • "scroll,drag,stop" - Dragging the content around has stopped.
  • "scroll,anim,start" - Scrolling animation has started.
  • "scroll,anim,stop" - Scrolling animation has stopped.
  • "zoom,start" - Zoom animation has started.
  • "zoom,stop" - Zoom animation has stopped.
  • "zoom,change" - Zoom changed when using the auto zoom mode.
  • "tile,load" - A map tile image load begins.
  • "tile,loaded" - A map tile image load ends.
  • "tile,loaded,fail" - A map tile image load fails.
  • "route,load" - Route request begins.
  • "route,loaded" - Route request ends.
  • "route,loaded,fail" - Route request fails.
  • "name,load" - Name request begins.
  • "name,loaded" - Name request ends.
  • "name,loaded,fail" - Name request fails.
  • "overlay,clicked" - An overlay is clicked.
  • "loaded" - The map is finally loaded.
    Since (EFL) :
    1.7
  • "language,changed" - The program's language has changed.

Available style for map widgets:

  • "default"

Available styles for markers:

  • "radio"
  • "radio2"
  • "empty"

Available style for marker bubbles:

  • "default"

Functions

Evas_Objectelm_map_add (Evas_Object *parent)
 Adds a new map widget to the given parent Elementary (container) object.
void elm_map_zoom_set (Evas_Object *obj, int zoom)
 Sets the zoom level of the map.
int elm_map_zoom_get (const Evas_Object *obj)
 Gets the zoom level of the map.
void elm_map_zoom_mode_set (Evas_Object *obj, Elm_Map_Zoom_Mode mode)
 Sets the zoom mode used by the map object.
Elm_Map_Zoom_Mode elm_map_zoom_mode_get (const Evas_Object *obj)
 Gets the zoom mode used by the map object.
void elm_map_zoom_min_set (Evas_Object *obj, int zoom)
 Sets the minimum zoom of the source.
int elm_map_zoom_min_get (const Evas_Object *obj)
 Gets the minimum zoom of the source.
void elm_map_zoom_max_set (Evas_Object *obj, int zoom)
 Sets the maximum zoom of the source.
int elm_map_zoom_max_get (const Evas_Object *obj)
 Gets the maximum zoom of the source.
void elm_map_region_get (const Evas_Object *obj, double *lon, double *lat)
 Gets the current geographic coordinates of the map.
void elm_map_region_bring_in (Evas_Object *obj, double lon, double lat)
 Animatedly brings the given coordinates to the center of the map.
void elm_map_region_show (Evas_Object *obj, double lon, double lat)
 Shows the given coordinates at the center of the map, immediately.
void elm_map_canvas_to_region_convert (const Evas_Object *obj, const Evas_Coord x, const Evas_Coord y, double *lon, double *lat)
 Converts the canvas coordinates into geographic coordinates (longitude, latitude).
void elm_map_region_to_canvas_convert (const Evas_Object *obj, double lon, double lat, Evas_Coord *x, Evas_Coord *y)
 Converts the geographic coordinates (longitude, latitude) into canvas coordinates.
void elm_map_paused_set (Evas_Object *obj, Eina_Bool paused)
 Pauses or unpauses the map.
Eina_Bool elm_map_paused_get (const Evas_Object *obj)
 Gets a value that indicates whether the map is paused.
void elm_map_rotate_set (Evas_Object *obj, double degree, Evas_Coord cx, Evas_Coord cy)
 Rotates the map.
void elm_map_rotate_get (const Evas_Object *obj, double *degree, Evas_Coord *cx, Evas_Coord *cy)
 Gets the rotate degree of the map.
void elm_map_wheel_disabled_set (Evas_Object *obj, Eina_Bool disabled)
 Enables or disables the mouse wheel to be used to zoom in / out the map.
Eina_Bool elm_map_wheel_disabled_get (const Evas_Object *obj)
 Gets a value that indicates whether the mouse wheel is enabled.
void elm_map_user_agent_set (Evas_Object *obj, const char *user_agent)
 Sets the user agent used by the map object to access routing services.
const char * elm_map_user_agent_get (const Evas_Object *obj)
 Gets the user agent used by the map object.
Elm_Map_Overlayelm_map_overlay_add (Evas_Object *obj, double lon, double lat)
 Adds a new overlay to the map object. This overlay has a default type.
Eina_Listelm_map_overlays_get (Evas_Object *obj)
 Returns all overlays in the map object.
void elm_map_overlay_del (Elm_Map_Overlay *overlay)
 Deletes an overlay from the map. This function can delete all types of overlays.
Elm_Map_Overlay_Type elm_map_overlay_type_get (const Elm_Map_Overlay *overlay)
 Gets the overlay type.
void elm_map_overlay_data_set (Elm_Map_Overlay *overlay, void *data)
 Sets a pointer to the user data of an overlay.
void * elm_map_overlay_data_get (const Elm_Map_Overlay *overlay)
 Gets the user data stored on a overlay.
void elm_map_overlay_hide_set (Elm_Map_Overlay *overlay, Eina_Bool hide)
 Sets whether the overlay is hidden.
Eina_Bool elm_map_overlay_hide_get (const Elm_Map_Overlay *overlay)
 Gets a value that indicates whether the overlay is hidden.
void elm_map_overlay_displayed_zoom_min_set (Elm_Map_Overlay *overlay, int zoom)
 Sets the minimum zoom from where the overlay is displayed.
int elm_map_overlay_displayed_zoom_min_get (const Elm_Map_Overlay *overlay)
 Gets the minimum zoom from where the overlay is displayed.
void elm_map_overlay_paused_set (Elm_Map_Overlay *overlay, Eina_Bool paused)
 Pauses or unpauses the overlay.
Eina_Bool elm_map_overlay_paused_get (const Elm_Map_Overlay *overlay)
 Gets a value that indicates whether the overlay is paused.
Eina_Bool elm_map_overlay_visible_get (const Elm_Map_Overlay *overlay)
 Gets a value that indicates whether the overlay is visible.
void elm_map_overlay_content_set (Elm_Map_Overlay *overlay, Evas_Object *obj)
 Sets the content object of the overlay.
const Evas_Objectelm_map_overlay_content_get (const Elm_Map_Overlay *overlay)
 Gets the content object.
void elm_map_overlay_icon_set (Elm_Map_Overlay *overlay, Evas_Object *icon)
 Sets an icon for the overlay.
const Evas_Objectelm_map_overlay_icon_get (const Elm_Map_Overlay *overlay)
 Gets the icon object.
void elm_map_overlay_region_set (Elm_Map_Overlay *overlay, double lon, double lat)
 Sets the geographic coordinates of the overlay.
void elm_map_overlay_region_get (const Elm_Map_Overlay *overlay, double *lon, double *lat)
 Gets the geographic coordinates of the overlay.
void elm_map_overlay_color_set (Elm_Map_Overlay *overlay, int r, int g, int b, int a)
 Sets the object color of the overlay.
void elm_map_overlay_color_get (const Elm_Map_Overlay *overlay, int *r, int *g, int *b, int *a)
 Gets the object color of the overlay.
void elm_map_overlay_show (Elm_Map_Overlay *overlay)
 Shows the given overlay at the center of the map, immediately.
void elm_map_overlays_show (Eina_List *overlays)
 Moves and zooms the map to display a list of overlays.
void elm_map_overlay_get_cb_set (Elm_Map_Overlay *overlay, Elm_Map_Overlay_Get_Cb get_cb, void *data)
 Sets the get callback function of the overlay.
void elm_map_overlay_del_cb_set (Elm_Map_Overlay *overlay, Elm_Map_Overlay_Del_Cb del_cb, void *data)
 Sets the get callback function to call when the overlay is deleted.
Elm_Map_Overlayelm_map_overlay_class_add (Evas_Object *obj)
 Adds a new class overlay to the map object. This overlay has a class type.
void elm_map_overlay_class_append (Elm_Map_Overlay *clas, Elm_Map_Overlay *overlay)
 Adds a new overlay member to the class overlay.
void elm_map_overlay_class_remove (Elm_Map_Overlay *clas, Elm_Map_Overlay *overlay)
 Removes an overlay from the class.
void elm_map_overlay_class_zoom_max_set (Elm_Map_Overlay *clas, int zoom)
 Sets the maximum zoom from where the overlay members in the class can be grouped.
int elm_map_overlay_class_zoom_max_get (const Elm_Map_Overlay *clas)
 Gets the maximum zoom from where the overlay members in the class can be grouped.
Eina_Listelm_map_overlay_group_members_get (const Elm_Map_Overlay *grp)
 Gets the overlay members of the group overlay.
Elm_Map_Overlayelm_map_overlay_bubble_add (Evas_Object *obj)
 Adds a new bubble overlay to the map object. This overlay has a bubble type.
void elm_map_overlay_bubble_follow (Elm_Map_Overlay *bubble, const Elm_Map_Overlay *parent)
 Follows another overlay.
void elm_map_overlay_bubble_content_append (Elm_Map_Overlay *bubble, Evas_Object *content)
 Adds a content object to the bubble overlay.
void elm_map_overlay_bubble_content_clear (Elm_Map_Overlay *bubble)
 Clears all the content inside the bubble overlay.
Elm_Map_Overlayelm_map_overlay_route_add (Evas_Object *obj, const Elm_Map_Route *route)
 Adds a new route overlay to the map object. This overlay has a route type.
Elm_Map_Overlayelm_map_overlay_line_add (Evas_Object *obj, double flon, double flat, double tlon, double tlat)
 Adds a new line overlay to the map object. This overlay has a line type.
Elm_Map_Overlayelm_map_overlay_polygon_add (Evas_Object *obj)
 Adds a new polygon overlay to the map object. This overlay has a polygon type.
void elm_map_overlay_polygon_region_add (Elm_Map_Overlay *overlay, double lon, double lat)
 Adds geographic coordinates to the polygon overlay.
Elm_Map_Overlayelm_map_overlay_circle_add (Evas_Object *obj, double lon, double lat, double radius)
 Adds a new circle overlay to the map object. This overlay has a circle type.
Elm_Map_Overlayelm_map_overlay_scale_add (Evas_Object *obj, Evas_Coord x, Evas_Coord y)
 Adds a new scale overlay to the map object. This overlay has a scale type.
void elm_map_tile_load_status_get (const Evas_Object *obj, int *try_num, int *finish_num)
 Gets information on the tile load status.
const char ** elm_map_sources_get (const Evas_Object *obj, Elm_Map_Source_Type type)
 Gets the names of available sources for a specific type.
void elm_map_source_set (Evas_Object *obj, Elm_Map_Source_Type type, const char *source_name)
 Sets the current source of the map for a specific type.
const char * elm_map_source_get (const Evas_Object *obj, Elm_Map_Source_Type type)
 Gets the name of the currently used source for a specific type.
Elm_Map_Routeelm_map_route_add (Evas_Object *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)
 Adds a new route to the map object.
void elm_map_route_del (Elm_Map_Route *route)
 Removes a route from the map.
double elm_map_route_distance_get (const Elm_Map_Route *route)
 Gets the route distance in kilometers.
const char * elm_map_route_node_get (const Elm_Map_Route *route)
 Gets the information of the route nodes.
const char * elm_map_route_waypoint_get (const Elm_Map_Route *route)
 Gets the information of the route waypoint.
Elm_Map_Nameelm_map_name_add (const Evas_Object *obj, const char *address, double lon, double lat, Elm_Map_Name_Cb name_cb, void *data)
 Requests an address or geographic coordinates(longitude, latitude) from a given address or geographic coordinates(longitude, latitude).
void elm_map_name_search (const Evas_Object *obj, const char *address, Elm_Map_Name_List_Cb name_cb, void *data)
 Requests a list of addresses corresponding to a given name.
const char * elm_map_name_address_get (const Elm_Map_Name *name)
 Gets the address of the name.
void elm_map_name_region_get (const Elm_Map_Name *name, double *lon, double *lat)
 Gets the current coordinates of the name.
void elm_map_name_del (Elm_Map_Name *name)
 Removes a name from the map.
Evas_Objectelm_map_track_add (Evas_Object *obj, void *emap)
 Adds a track on the map.
void elm_map_track_remove (Evas_Object *obj, Evas_Object *route)

Typedefs

typedef enum _Elm_Map_Overlay_Type Elm_Map_Overlay_Type
 Enumeration that sets the overlay type to be used. This type is resolved when the overlay is created.
typedef struct _Elm_Map_Marker Elm_Map_Marker
typedef struct
_Elm_Map_Marker_Class 
Elm_Map_Marker_Class
typedef struct _Elm_Map_Group_Class Elm_Map_Group_Class
typedef struct _Elm_Map_Route Elm_Map_Route
typedef struct _Elm_Map_Name Elm_Map_Name
typedef struct _Elm_Map_Overlay Elm_Map_Overlay
typedef struct _Elm_Map_Region Elm_Map_Region
typedef Evas_Object *(* Elm_Map_Marker_Get_Func )(Evas_Object *obj, Elm_Map_Marker *marker, void *data)
typedef void(* Elm_Map_Marker_Del_Func )(Evas_Object *obj, Elm_Map_Marker *marker, void *data, Evas_Object *o)
typedef Evas_Object *(* Elm_Map_Marker_Icon_Get_Func )(Evas_Object *obj, Elm_Map_Marker *marker, void *data)
typedef Evas_Object *(* Elm_Map_Group_Icon_Get_Func )(Evas_Object *obj, void *data)
typedef void(* Elm_Map_Overlay_Get_Cb )(void *data, Evas_Object *map, Elm_Map_Overlay *overlay)
typedef void(* Elm_Map_Overlay_Del_Cb )(void *data, Evas_Object *map, Elm_Map_Overlay *overlay)
typedef void(* Elm_Map_Name_Cb )(void *data, Evas_Object *map, Elm_Map_Name *name)
typedef void(* Elm_Map_Name_List_Cb )(void *data, Evas_Object *map, Eina_List *name_list)
typedef void(* Elm_Map_Route_Cb )(void *data, Evas_Object *map, Elm_Map_Route *route)

Typedef Documentation

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()

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

Icon fetching class function for marker group classes

typedef struct _Elm_Map_Marker Elm_Map_Marker

A marker to be shown at a specific point on the map. Can be created with elm_map_marker_add() and deleted with elm_map_marker_remove()

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()

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

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 clicks on a marker, a bubble is displayed with content

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

typedef struct _Elm_Map_Name Elm_Map_Name

A handle for specific coordinates

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

Async-callback function for the name request

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

Async-callback function for the name list request

typedef struct _Elm_Map_Overlay Elm_Map_Overlay

An overlay to be shown at a specific point on the map. This can be created by elm_map_overlay_add() and other similar functions, and deleted by elm_map_overlay_del()

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

Del callback function for the overlay

Since (EFL) :
1.7
typedef void(* Elm_Map_Overlay_Get_Cb)(void *data, Evas_Object *map, Elm_Map_Overlay *overlay)

Get callback function for the overlay

Enumeration that sets the overlay type to be used. This type is resolved when the overlay is created.

Remarks:
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()
typedef struct _Elm_Map_Region Elm_Map_Region

A geographical point specified by latitude, longitude and altitude values.

typedef struct _Elm_Map_Route Elm_Map_Route

A route to be shown on the map. Can be created with elm_map_route_add() and deleted with elm_map_route_del()

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

Enumeration that sets the overlay type to be used. This type is resolved when the overlay is created.

Remarks:
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()

Enumeration that sets the name search method.

This is for the name module interface.

Enumeration that sets the routing method. It decides what should be prioritized, time or distance.

See also:
elm_map_route_add()
Enumerator:
ELM_MAP_ROUTE_METHOD_FASTEST 

Route should prioritize time

ELM_MAP_ROUTE_METHOD_SHORTEST 

Route should prioritize distance

Enumeration that sets the type of transport used on a route.

See also:
elm_map_route_add()
Enumerator:
ELM_MAP_ROUTE_TYPE_MOTOCAR 

Route should consider that an automobile is used

ELM_MAP_ROUTE_TYPE_BICYCLE 

Route should consider that a bicycle is used by the user

ELM_MAP_ROUTE_TYPE_FOOT 

Route should consider that the user is walking

Enumeration that sets the type of an external source (provider).

See also:
elm_map_sources_get()
elm_map_source_get()
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

Sets the map's zoom behavior. It can be set to manual or automatic.

Remarks:
The 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 also:
elm_map_zoom_mode_set()
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 the map fits inside the scroll frame with no pixels outside this area

ELM_MAP_ZOOM_MODE_AUTO_FILL 

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


Function Documentation

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

Async ofscreen map image capture function

This function inserts a new map widget on the canvas.

Since :
2.3.1
Parameters:
[in]parentThe parent object
Returns:
A new map widget handle, otherwise NULL in case of an error
void elm_map_canvas_to_region_convert ( const Evas_Object obj,
const Evas_Coord  x,
const Evas_Coord  y,
double *  lon,
double *  lat 
)

Converts the canvas coordinates into geographic coordinates (longitude, latitude).

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

Since :
2.3.1
Parameters:
[in]objThe map object
[in]xThe horizontal coordinate of the point to convert
[in]yThe vertical coordinate of the point to convert
[in]lonA pointer to the longitude
[in]latA pointer to the latitude

see elm_map_region_to_canvas_convert()

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

Requests an address or geographic coordinates(longitude, latitude) from a given address or geographic coordinates(longitude, latitude).

Since :
2.3.1
Remarks:
If you want to get an address from the geographic coordinates, set the input address as NULL and set lon and lat as you want to convert. If the address is set to a value other than NULL, lon and lat are checked.
To get the string for this address, elm_map_name_address_get() should be used after callback or the "name,loaded" signal is called.
To get the longitude and latitude, elm_map_name_region_get() should be used.
Parameters:
[in]objThe map object
[in]addressThe address
[in]lonThe longitude
[in]latThe latitude
[in]name_cbThe callback function
[in]dataThe user callback data
Returns:
name A Elm_Map_Name handle for this coordinate
const char* elm_map_name_address_get ( const Elm_Map_Name name)

Gets the address of the name.

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

Since :
2.3.1
Parameters:
[in]nameThe name handle
Returns:
The address string of name
See also:
elm_map_name_add()
void elm_map_name_del ( Elm_Map_Name name)

Removes a name from the map.

Since :
2.3.1
Remarks:
Basically the struct handled by name is freed, so conversions between the address and coordinates is lost.
Parameters:
[in]nameThe name to remove
See also:
elm_map_name_add()
void elm_map_name_region_get ( const Elm_Map_Name name,
double *  lon,
double *  lat 
)

Gets the current coordinates of the name.

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

Since :
2.3.1
Parameters:
[in]nameThe name handle
[out]latThe pointer to store the latitude
[out]lonThe pointer to store The longitude
See also:
elm_map_name_add()
void elm_map_name_search ( const Evas_Object obj,
const char *  address,
Elm_Map_Name_List_Cb  name_cb,
void *  data 
)

Requests a list of addresses corresponding to a given name.

Since (EFL) :
1.8
Since :
2.3.1
Remarks:
This is used if you want to search the address from a name.
Parameters:
[in]objThe map object
[in]addressThe address
[in]name_cbThe callback function
[in]dataThe user callback data
Elm_Map_Overlay* elm_map_overlay_add ( Evas_Object obj,
double  lon,
double  lat 
)

Adds a new overlay to the map object. This overlay has a default type.

Since :
2.3.1
Remarks:
An overlay is created and shown at a specific point on the map, defined by lon and lat.
The created overlay has a default style layout before the content or icon is set.
If the content or icon is set, they are displayed instead of the default style layout. You can set this by using elm_map_overlay_content_set() or elm_map_overlay_icon_set(). If NULL is set, the default style is shown again.
Overlay created with this method can be deleted by elm_map_overlay_del().
Parameters:
[in]objThe map object to add a new overlay
[in]lonThe longitude of the overlay
[in]latThe latitude of the overlay
Returns:
The created overlay, otherwise NULL on failure
See also:
elm_map_overlay_del()
elm_map_overlay_class_add()
elm_map_overlay_bubble_add()
elm_map_overlay_content_set()
elm_map_overlay_icon_set()

Adds a new bubble overlay to the map object. This overlay has a bubble type.

Since :
2.3.1
Remarks:
A bubble is not displayed unless the geographic coordinates are set or any other overlays are followed.
This overlay has a bubble style layout and icon or the content cannot be set.
Overlay created with this method can be deleted by elm_map_overlay_del().
Parameters:
[in]objThe map object to add a new overlay
Returns:
The created overlay, otherwise NULL on failure
See also:
elm_map_overlay_del()
elm_map_overlay_add()
elm_map_overlay_class_add()
elm_map_overlay_region_set()
elm_map_overlay_bubble_follow()

Adds a content object to the bubble overlay.

Since :
2.3.1
Remarks:
The added content is displayed inside the bubble overlay.
Parameters:
[in]bubbleThe bubble overlay to add content
[in]contentThe content to be added to the bubble overlay
See also:
elm_map_overlay_bubble_content_clear()

Clears all the content inside the bubble overlay.

This deletes all the content inside the bubble overlay.

Since :
2.3.1
Parameters:
[in]bubbleThe bubble overlay whose content is cleared
See also:
elm_map_overlay_bubble_content_append()
void elm_map_overlay_bubble_follow ( Elm_Map_Overlay bubble,
const Elm_Map_Overlay parent 
)

Follows another overlay.

Since :
2.3.1
Remarks:
The bubble overlay follows the parent overlay's movement (hide, show, move).
Parameters:
[in]bubbleThe bubble overlay to follow a parent overlay
[in]parentThe parent overlay to be followed by the bubble overlay
See also:
elm_map_overlay_bubble_add()
Elm_Map_Overlay* elm_map_overlay_circle_add ( Evas_Object obj,
double  lon,
double  lat,
double  radius 
)

Adds a new circle overlay to the map object. This overlay has a circle type.

Since :
2.3.1
Remarks:
Overlay created with this method can be deleted by elm_map_overlay_del().
Parameters:
[in]objThe map object to add a new circle overlay
[in]lonThe center longitude
[in]latThe center latitude
[in]radiusThe pixel length of the radius
Returns:
The created overlay, otherwise NULL on failure
See also:
elm_map_overlay_del()

Adds a new class overlay to the map object. This overlay has a class type.

Since :
2.3.1
Remarks:
This overlay is not shown unless 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 chaning the state of the class overlay. Do not modify the group overlay.
Also these changes have an influence on the overlays in the same class even if each overlay is alone and is not grouped.
Parameters:
[in]objThe map object to add a new overlay
Returns:
The created overlay, otherwise NULL on failure
See also:
elm_map_overlay_del()
elm_map_overlay_add()
elm_map_overlay_bubble_add()

Adds a new overlay member to the class overlay.

Since :
2.3.1
Parameters:
[in]clasThe class overlay to which to add a new overlay
[in]overlayThe overlay to be added to the class overlay
See also:
elm_map_overlay_class_remove()

Removes an overlay from the class.

Since :
2.3.1
Parameters:
[in]clasThe class overlay from which to delete the overlay
[in]overlayThe overlay to be deleted from the class overlay
See also:
elm_map_overlay_class_append()

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

Since :
2.3.1
Parameters:
[in]clasThe overlay class having overlay members
Returns:
The maximum zoom
See also:
elm_map_overlay_class_zoom_max_set()
void elm_map_overlay_class_zoom_max_set ( Elm_Map_Overlay clas,
int  zoom 
)

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

Since :
2.3.1
Remarks:
Overlay members in the class are only grouped when the map is displayed at less than zoom.
Parameters:
[in]clasThe overlay class having overlay members
[in]zoomThe maximum zoom
See also:
elm_map_overlay_class_zoom_max_get()
void elm_map_overlay_color_get ( const Elm_Map_Overlay overlay,
int *  r,
int *  g,
int *  b,
int *  a 
)

Gets the object color of the overlay.

Since :
2.3.1
Parameters:
[in]overlayThe overlay to return color
[out]rThe pointer that stores the red channel value
[out]gThe pointer that stores the green channel value
[out]bThe pointer that stores the blue channel value
[out]aThe pointer that stores the alpha channel value
See also:
elm_map_overlay_color_set()
void elm_map_overlay_color_set ( Elm_Map_Overlay overlay,
int  r,
int  g,
int  b,
int  a 
)

Sets the object color of the overlay.

Since :
2.3.1
Remarks:
It uses an additive color model, so each color channel represents how much of each primary colors must be used. 0 represents the absence of this color, so if all of the three are set to 0, the color is black.
These component values should be integers in the range from 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 an alpha channel, 0 represents complete transparency, and 255 represents opacity.
This function supports only the ELM_MAP_OVERLAY_TYPE_CLASS, ELM_MAP_OVERLAY_TYPE_DEFAULT, and ELM_MAP_OVERLAY_TYPE_ROUTE Elm_Map_Overlay_Type types.
Parameters:
[in]overlayThe overlay for which to set color
[in]rThe red channel value, from 0 to 255
[in]gThe green channel value, from 0 to 255
[in]bThe blue channel value, from 0 to 255
[in]aThe alpha channel value, from 0 to 255
See also:
elm_map_overlay_color_get()

Gets the content object.

Since :
2.3.1
Remarks:
Only default and class type overlay support this function.
The returned content is what is inside the overlay and is going to be 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().
Parameters:
[in]overlayThe overlay to return the content
Returns:
The evas object if it exists, otherwise NULL
See also:
elm_map_overlay_content_set()
void elm_map_overlay_content_set ( Elm_Map_Overlay overlay,
Evas_Object obj 
)

Sets the content object of the overlay.

Since :
2.3.1
Remarks:
Only default and class type overlay support this function.
The content should be resized or size hints should be set in advance for the overlay. Do not modify this object (move, show, hide, del, etc.), after setting. You can only resize this.
This content is what is inside the overlay and is going to be displayed. If content is set, the icon and default style layout are no more used unless the content is deleted.
If obj is NULL, the content inside the overlay is deleted.
Parameters:
[in]overlayThe overlay whose content is set
[in]objThe evas object is used to display the overlay
See also:
elm_map_overlay_content_get()
void* elm_map_overlay_data_get ( const Elm_Map_Overlay overlay)

Gets the user data stored on a overlay.

Since :
2.3.1
Parameters:
[in]overlayThe overlay to return the user data
Returns:
A pointer to the data stored using elm_map_overlay_data_set(), otherwise NULL if no data has been set
See also:
elm_map_overlay_data_set()
void elm_map_overlay_data_set ( Elm_Map_Overlay overlay,
void *  data 
)

Sets a pointer to the user data of an overlay.

Since :
2.3.1
Parameters:
[in]overlayThe overlay to own the user data
[in]dataA pointer to the user data
See also:
elm_map_overlay_data_get()
void elm_map_overlay_del ( Elm_Map_Overlay overlay)

Deletes an overlay from the map. This function can delete all types of overlays.

Since :
2.3.1
Parameters:
[in]overlayThe overlay to be deleted
See also:
elm_map_overlay_add()
elm_map_overlay_class_add()
elm_map_overlay_bubble_add()
void elm_map_overlay_del_cb_set ( Elm_Map_Overlay overlay,
Elm_Map_Overlay_Del_Cb  del_cb,
void *  data 
)

Sets the get callback function to call when the overlay is deleted.

Since (EFL) :
1.7
Since :
2.3.1
Remarks:
If the overlay is deleted, the callback is called. The deleted overlay is returned by the callback.
You can delete this callback function by setting NULL.
Parameters:
[in]overlayThe overlay to own the del callback function
[in]del_cbThe callback function
[in]dataThe user callback data

Gets the minimum zoom from where the overlay is displayed.

Since :
2.3.1
Parameters:
[in]overlayThe overlay with minimum zoom
Returns:
zoom The minimum zoom
See also:
elm_map_overlay_displayed_zoom_min_set()
void elm_map_overlay_displayed_zoom_min_set ( Elm_Map_Overlay overlay,
int  zoom 
)

Sets the minimum zoom from where the overlay is displayed.

Since :
2.3.1
Remarks:
The overlay is only displayed when the map is displayed at zoom or bigger.
Parameters:
[in]overlayThe overlay to set to minimum zoom
[in]zoomThe minimum zoom
See also:
elm_map_overlay_displayed_zoom_min_get()
void elm_map_overlay_get_cb_set ( Elm_Map_Overlay overlay,
Elm_Map_Overlay_Get_Cb  get_cb,
void *  data 
)

Sets the get callback function of the overlay.

Since :
2.3.1
Remarks:
If the overlay is clicked, the callback is called. The clicked overlay is returned by callback.
You can add a callback to the class overlay. If one of the group overlays in this class is clicked, callback is called and a virtual group overlay is returned.
You can delete this callback function by setting NULL.
Parameters:
[in]overlayThe overlay to own the get callback function
[in]get_cbThe callback function
[in]dataThe user callback data

Gets the overlay members of the group overlay.

Since :
2.3.1
Remarks:
The group overlays are virtual overlays. They are shown and hidden dynamically. You can add a callback to the class overlay. If one of the group overlays in this class is clicked, callback is called and a virtual group overlays is returned.
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.
Parameters:
[in]grpThe group overlay having overlay members
Returns:
The list of group overlay members
See also:
elm_map_overlay_class_add()

Gets a value that indicates whether the overlay is hidden.

This gets the current hidden state for the overlay.

Since :
2.3.1
Parameters:
[in]overlayThe overlay with the hidden state
Returns:
EINA_TRUE indicates that the overlay is hidden, otherwise EINA_FALSE indicates that it is not
See also:
elm_map_overlay_hide_set()
void elm_map_overlay_hide_set ( Elm_Map_Overlay overlay,
Eina_Bool  hide 
)

Sets whether the overlay is hidden.

Since :
2.3.1
Parameters:
[in]overlayThe overlay to hide
[in]hideIf EINA_TRUE the overlay is hidden, otherwise EINA_FALSE if it is shown
See also:
elm_map_overlay_hide_get()

Gets the icon object.

Since :
2.3.1
Remarks:
Only default and class type overlay support this function.
The returned icon is what is inside the overlay and is going to be displayed.
Do not modify this icon (move, show, hide, resize, del, etc.).
The icon can be set by elm_map_overlay_icon_set().
Parameters:
[in]overlayThe overlay to return the icon
Returns:
The icon object if it exists, otherwise NULL
See also:
elm_map_overlay_icon_set()
void elm_map_overlay_icon_set ( Elm_Map_Overlay overlay,
Evas_Object icon 
)

Sets an icon for the overlay.

Since :
2.3.1
Remarks:
Only default and class type overlay support this function.
Do not modify this object (move, show, hide, resize, del, etc.), after it is set.
If the icon is set, the default style layout is not used.
If icon is NULL, the icon inside the overlay is deleted.
Parameters:
[in]overlayThe overlay to set the icon
[in]iconThe icon used to display the overlay
See also:
elm_map_overlay_icon_get()
Elm_Map_Overlay* elm_map_overlay_line_add ( Evas_Object obj,
double  flon,
double  flat,
double  tlon,
double  tlat 
)

Adds a new line overlay to the map object. This overlay has a line type.

Since :
2.3.1
Remarks:
Overlay created with this method can be deleted by elm_map_overlay_del().
Parameters:
[in]objThe map object to add a new overlay
[in]flonThe start longitude
[in]flatThe start latitude
[in]tlonThe destination longitude
[in]tlatThe destination latitude
Returns:
The created overlay, otherwise NULL on failure
See also:
elm_map_overlay_del()

Gets a value that indicates whether the overlay is paused.

This gets the current paused state for the overlay.

Since :
2.3.1
Parameters:
[in]overlayThe overlay in the paused state
Returns:
EINA_TRUE indicates that the overlay is paused, otherwise EINA_FALSE indicates that it is not
See also:
elm_map_overlay_paused_set()
void elm_map_overlay_paused_set ( Elm_Map_Overlay overlay,
Eina_Bool  paused 
)

Pauses or unpauses the overlay.

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

Since :
2.3.1
Remarks:
The default is off.
This stops moving the overlay coordinates instantly, even if the map is being scrolled or zoomed.
Parameters:
[in]overlayThe overlay to be paused
[in]pausedIf EINA_TRUE the overlay is paused, otherwise EINA_FALSE if it is unpaused
See also:
elm_map_overlay_paused_get()

Adds a new polygon overlay to the map object. This overlay has a polygon type.

Since :
2.3.1
Remarks:
At least 3 regions should be added to show the polygon overlay.
Overlay created with this method can be deleted by elm_map_overlay_del().
Parameters:
[in]objThe map object to add a new overlay
Returns:
The created overlay, otherwise NULL on failure
See also:
elm_map_overlay_polygon_region_add()
elm_map_overlay_del()
void elm_map_overlay_polygon_region_add ( Elm_Map_Overlay overlay,
double  lon,
double  lat 
)

Adds geographic coordinates to the polygon overlay.

Since :
2.3.1
Remarks:
At least 3 regions should be added to show the polygon overlay.
Overlay created with this method can be deleted by elm_map_overlay_del().
Parameters:
[in]overlayThe polygon overlay to add geographic coordinates
[in]lonThe longitude
[in]latThe latitude
See also:
elm_map_overlay_polygon_add()
elm_map_overlay_del()
void elm_map_overlay_region_get ( const Elm_Map_Overlay overlay,
double *  lon,
double *  lat 
)

Gets the geographic coordinates of the overlay.

Since :
2.3.1
Remarks:
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().
Parameters:
[in]overlayThe overlay to return geographic coordinates
[out]lonThe pointer to store the longitude
[out]latThe pointer to store the latitude
See also:
elm_map_overlay_region_set()
void elm_map_overlay_region_set ( Elm_Map_Overlay overlay,
double  lon,
double  lat 
)

Sets the geographic coordinates of the overlay.

Since :
2.3.1
Remarks:
Only default and bubble type overlay support this function.
This sets the center coordinates of the overlay. It can be obtained by elm_map_overlay_region_get().
Parameters:
[in]overlayThe overlay for which the geographic coordinates are set
[in]lonThe longitude to be set
[in]latThe latitude to be set
See also:
elm_map_overlay_region_get()

Adds a new route overlay to the map object. This overlay has a route type.

Since :
2.3.1
Remarks:
This overlay has a route style layout and icon or content cannot be set.
The color scheme can be changed by elm_map_overlay_content_set().
Overlay created with this method can be deleted by elm_map_overlay_del().
Parameters:
[in]objThe map object to add a new overlay
[in]routeThe route object to make an overlay
Returns:
The created overlay, otherwise NULL on failure
See also:
elm_map_overlay_del()
elm_map_overlay_class_add()
elm_map_overlay_content_set()
elm_map_overlay_content_get()

Adds a new scale overlay to the map object. This overlay has a scale type.

Since :
2.3.1
Remarks:
The scale overlay shows the ratio of a distance on the map to the corresponding distance.
Overlay created with this method can be deleted by elm_map_overlay_del().
Parameters:
[in]objThe map object to add a new scale overlay
[in]xThe horizontal pixel coordinate
[in]yThe vertical pixel coordinate
Returns:
The created overlay, otherwise NULL on failure
See also:
elm_map_overlay_del()

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

Since :
2.3.1
Remarks:
This causes the map to redraw its viewport's contents in the region containing the given overlay coordinates, that are moved to the center of the map.
Parameters:
[in]overlayThe overlay to show at the center
See also:
elm_map_overlays_show() if more than one overlay needs to be displayed.

Gets the overlay type.

Since :
2.3.1
Remarks:
This type is resolved when the overlay is created.
Parameters:
[in]overlayThe overlay type
Returns:
The overlay type
See also:
elm_map_overlay_add()
elm_map_overlay_class_add()
elm_map_overlay_bubble_add()

Gets a value that indicates whether the overlay is visible.

Since (EFL) :
1.7
Since :
2.3.1
Remarks:
The visibility of the overlay cannot be set.
This value can be changed dynamically while zooming and panning.
Parameters:
[in]overlayThe overlay in the visible state
Returns:
EINA_TRUE indicates that the overlay is visible, otherwise EINA_FALSE indicates that it is not

Returns all overlays in the map object.

Since (EFL) :
1.7
Since :
2.3.1
Remarks:
This list includes group overlays also. So this can be changed dynamically while zooming and panning.
Parameters:
[in]objThe map object to return overlays
Returns:
The list of all overlays, otherwise NULL on failure
void elm_map_overlays_show ( Eina_List overlays)

Moves and zooms the map to display a list of overlays.

Since :
2.3.1
Remarks:
The map is centered on the center point of the overlay in the list. Then the map is zoomed in order to fit the overlay using the maximum zoom which allows display of all the overlays.
All the overlays should belong to the same map object.
Parameters:
[in]overlaysA list of Elm_Map_Overlay handles
See also:
elm_map_overlay_show() to show a single overlay.

Gets a value that indicates whether the map is paused.

This gets the current paused state for the map object.

Since :
2.3.1
Parameters:
[in]objThe map object
Returns:
EINA_TRUE means that the map is paused, otherwise EINA_FALSE indicates that it is not
See also:
elm_map_paused_set()
void elm_map_paused_set ( Evas_Object obj,
Eina_Bool  paused 
)

Pauses or unpauses the map.

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

Since :
2.3.1
Remarks:
The default is off.
This stops zooming using animation, changing zoom levels change instantly. This stops any existing animations that are running.
Parameters:
[in]objThe map object
[in]pausedIf EINA_TRUE the map obj is paused, otherwise EINA_FALSE if it is unpaused
See also:
elm_map_paused_get()
void elm_map_region_bring_in ( Evas_Object obj,
double  lon,
double  lat 
)

Animatedly brings the given coordinates to the center of the map.

Since :
2.3.1
Remarks:
This causes the map to jump to the given lat and lon coordinates and display it (by scrolling) in the center of the viewport, if it is not already centered. This uses animation to do so and takes a period of time to complete.
Parameters:
[in]objThe map object
[in]lonThe longitude to bring to the center
[in]latThe latitude to bring to the center
See also:
elm_map_region_show() for a function to avoid animation.
elm_map_region_get()
void elm_map_region_get ( const Evas_Object obj,
double *  lon,
double *  lat 
)

Gets 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().

Since :
2.3.1
Parameters:
[in]objThe map object
[out]lonThe pointer that stores the longitude
[out]latThe pointer that stores the latitude
See also:
elm_map_region_bring_in()
elm_map_region_show()
void elm_map_region_show ( Evas_Object obj,
double  lon,
double  lat 
)

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

Since :
2.3.1
Remarks:
This causes the map to redraw its viewport's contents to the region containing the given lat and lon, that are moved to the center of the map.
Parameters:
[in]objThe map object
[in]lonThe longitude to show at the center
[in]latThe latitude to show at the center
See also:
elm_map_region_bring_in() for a function to move with animation.
elm_map_region_get()
void elm_map_region_to_canvas_convert ( const Evas_Object obj,
double  lon,
double  lat,
Evas_Coord x,
Evas_Coord y 
)

Converts the geographic coordinates (longitude, latitude) into canvas coordinates.

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

Since :
2.3.1
Parameters:
[in]objThe map object
[in]lonThe longitude to convert
[in]latThe latitude to convert
[out]xA pointer to the horizontal coordinate
[out]yA pointer to the vertical coordinate

see elm_map_canvas_to_region_convert()

void elm_map_rotate_get ( const Evas_Object obj,
double *  degree,
Evas_Coord cx,
Evas_Coord cy 
)

Gets the rotate degree of the map.

Since :
2.3.1
Parameters:
[in]objThe map object
[out]degreeThe pointer that stores degrees from 0.0 to 360.0 to rotate around the Z axis
[out]cxThe pointer that stores the rotation's center horizontal position
[out]cyThe pointer that stores the rotation's center vertical position
See also:
elm_map_rotate_set() to set map rotation.
void elm_map_rotate_set ( Evas_Object obj,
double  degree,
Evas_Coord  cx,
Evas_Coord  cy 
)

Rotates the map.

Since :
2.3.1
Parameters:
[in]objThe map object
[in]degreeThe angle from 0.0 to 360.0 to rotate around the Z axis
[in]cxThe rotation's center horizontal position
[in]cyThe rotation's center vertical position
See also:
elm_map_rotate_get()
Elm_Map_Route* elm_map_route_add ( Evas_Object 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 
)

Adds a new route to the map object.

Since :
2.3.1
Remarks:
A route is traced by a point at the coordinates (flat, flon) to a point at the coordinates (tlat, tlon), using the route service set by elm_map_source_set().
It takes type to be considered to define the route, depending on whether the user is walking or driving, the route may vary. One from 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, minimum distance or less time spent on the route. So method should be one from ELM_MAP_ROUTE_METHOD_SHORTEST or ELM_MAP_ROUTE_METHOD_FASTEST.
Routes created by this method can be deleted by elm_map_route_del(), and distance can be obtained by elm_map_route_distance_get().
Parameters:
[in]objThe map object
[in]typeThe type of transport to be considered when tracing a route
[in]methodThe routing method that 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 to the user data
Returns:
The created route, otherwise NULL on failure
See also:
elm_map_route_del()
elm_map_route_distance_get()
elm_map_source_set()
void elm_map_route_del ( Elm_Map_Route route)

Removes a route from the map.

Since :
2.3.1
Parameters:
[in]routeThe route to remove
See also:
elm_map_route_add()
double elm_map_route_distance_get ( const Elm_Map_Route route)

Gets the route distance in kilometers.

Since :
2.3.1
Parameters:
[in]routeThe route object
Returns:
The distance of the route (unit : km)
const char* elm_map_route_node_get ( const Elm_Map_Route route)

Gets the information of the route nodes.

Since :
2.3.1
Parameters:
[in]routeThe route object
Returns:
A string with the nodes of the route
const char* elm_map_route_waypoint_get ( const Elm_Map_Route route)

Gets the information of the route waypoint.

Since :
2.3.1
Parameters:
[in]routeThe route object
Returns:
A string with information about the waypoint of the route
const char* elm_map_source_get ( const Evas_Object obj,
Elm_Map_Source_Type  type 
)

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

Since :
2.3.1
Parameters:
[in]objThe map object
[in]typeThe source type
Returns:
The name of the source in use
See also:
elm_map_sources_get()
elm_map_source_set()
void elm_map_source_set ( Evas_Object obj,
Elm_Map_Source_Type  type,
const char *  source_name 
)

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

Since :
2.3.1
Remarks:
Map widget retrieves tile images that compose of the map from a web service. This web service can be set by this method for the ELM_MAP_SOURCE_TYPE_TILE type. A different service can return a different map with different information and it can use different zoom values.
Map widget provides route data based on an external web service. This web service can be set with this method for the ELM_MAP_SOURCE_TYPE_ROUTE type.
Map widget also provides geoname data based on a external web service. This web service can be set with this method for the ELM_MAP_SOURCE_TYPE_NAME type.
The source_name needs to match one of the names provided by elm_map_sources_get().
The current source can be obtained by elm_map_source_get().
Parameters:
[in]objThe map object
[in]typeThe source type
[in]source_nameThe source to be used
See also:
elm_map_sources_get()
elm_map_source_get()
const char** elm_map_sources_get ( const Evas_Object obj,
Elm_Map_Source_Type  type 
)

Gets the names of available sources for a specific type.

Since :
2.3.1
Remarks:
It provides a list with all available sources. Current source can be set by elm_map_source_set(), or obtained by elm_map_source_get().
Available sources of tile type:
  • "Mapnik"
  • "Osmarender"
  • "CycleMap"
  • "Maplint"
Available sources of route type:
  • "Yours"
Available sources of name type:
  • "Nominatim"
Parameters:
[in]objThe map object
[in]typeThe source type
Returns:
The char pointer array of source names
See also:
elm_map_source_set()
elm_map_source_get()
void elm_map_tile_load_status_get ( const Evas_Object obj,
int *  try_num,
int *  finish_num 
)

Gets information on the tile load status.

Since :
2.3.1
Remarks:
This gets the current tile loaded status for the map object.
Parameters:
[in]objThe map object
[out]try_numThe pointer that stores the number of tile download requests
[out]finish_numThe pointer that stores the number of tiles successfully downloaded
Evas_Object* elm_map_track_add ( Evas_Object obj,
void *  emap 
)

Adds a track on the map.

Since :
2.3.1
Parameters:
[in]objThe map object
[in]emapThe emap route object
Returns:
The route object
This is an elm object of type Route.
void elm_map_track_remove ( Evas_Object obj,
Evas_Object route 
)
Since :
2.3.1
Parameters:
[in]objThe map object
[in]routeThe track to remove
const char* elm_map_user_agent_get ( const Evas_Object obj)

Gets the user agent used by the map object.

Since :
2.3.1
Parameters:
[in]objThe map object
Returns:
The user agent identification string used by the map
See also:
elm_map_user_agent_set()
void elm_map_user_agent_set ( Evas_Object obj,
const char *  user_agent 
)

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

Since :
2.3.1
Remarks:
User agent is a client application implementing a network protocol used in communications within a client–server distributed computing system.
The user_agent identification string is transmitted in a header field User-Agent.
Parameters:
[in]objThe map object
[in]user_agentThe user agent to be used by the map
See also:
elm_map_user_agent_get()

Gets a value that indicates whether the mouse wheel is enabled.

Since :
2.3.1
Remarks:
Mouse wheel can be used for the user to zoom in or zoom out of the map.
Parameters:
[in]objThe map object
Returns:
EINA_TRUE indicates that the map is disabled, otherwise EINA_FALSE indicates that it is enabled
See also:
elm_map_wheel_disabled_set()
void elm_map_wheel_disabled_set ( Evas_Object obj,
Eina_Bool  disabled 
)

Enables or disables the mouse wheel to be used to zoom in / out the map.

Since :
2.3.1
Remarks:
Mouse wheel can be used for the user to zoom in or zoom out of the map.
It's disabled by default.
Parameters:
[in]objThe map object
[in]disabledIf EINA_TRUE the mouse wheel is disabled, otherwise EINA_FALSE if it is enabled
See also:
elm_map_wheel_disabled_get()
int elm_map_zoom_get ( const Evas_Object obj)

Gets the zoom level of the map.

This returns the current zoom level of the map object.

Since :
2.3.1
Remarks:
Note that if you set the fill mode to a value 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 in order to account for the map size and map viewport size.
Parameters:
[in]objThe map object
Returns:
The current zoom level
See also:
elm_map_zoom_set()
int elm_map_zoom_max_get ( const Evas_Object obj)

Gets the maximum zoom of the source.

Since :
2.3.1
Parameters:
[in]objThe map object
Returns:
The maximum zoom of the source
See also:
elm_map_zoom_max_set()
void elm_map_zoom_max_set ( Evas_Object obj,
int  zoom 
)

Sets the maximum zoom of the source.

Since :
2.3.1
Parameters:
[in]objThe map object
[in]zoomThe new maximum zoom value to be used
See also:
elm_map_zoom_max_get()
int elm_map_zoom_min_get ( const Evas_Object obj)

Gets the minimum zoom of the source.

Since :
2.3.1
Parameters:
[in]objThe map object
Returns:
The minimum zoom of the source
See also:
elm_map_zoom_min_set()
void elm_map_zoom_min_set ( Evas_Object obj,
int  zoom 
)

Sets the minimum zoom of the source.

Since :
2.3.1
Parameters:
[in]objThe map object
[in]zoomThe new minimum zoom value to be used
See also:
elm_map_zoom_min_get()

Gets the zoom mode used by the map object.

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

Since :
2.3.1
Parameters:
[in]objThe map object
Returns:
The zoom mode of the map, one from ELM_MAP_ZOOM_MODE_MANUAL (default), ELM_MAP_ZOOM_MODE_AUTO_FIT, or ELM_MAP_ZOOM_MODE_AUTO_FILL
See also:
elm_map_zoom_mode_set()

Sets the zoom mode used by the map object.

Since :
2.3.1

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_set() and stays at that level until changed by code or until the zoom mode is changed. This is the default mode.

Remarks:
The Automatic modes allow the map object to automatically adjust the zoom mode based on properties. ELM_MAP_ZOOM_MODE_AUTO_FIT adjusts the zoom so that the map fits inside the scroll frame with no pixels outside this area. ELM_MAP_ZOOM_MODE_AUTO_FILL is similar but ensure that 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 map object
[in]modeThe zoom mode of the map, one from ELM_MAP_ZOOM_MODE_MANUAL (default), ELM_MAP_ZOOM_MODE_AUTO_FIT, or ELM_MAP_ZOOM_MODE_AUTO_FILL
See also:
elm_map_zoom_set()
void elm_map_zoom_set ( Evas_Object obj,
int  zoom 
)

Sets the zoom level of the map.

This sets the zoom level.

Since :
2.3.1
Remarks:
It respects the 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 the 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 map object
[in]zoomThe zoom level to set
See also:
elm_map_zoom_mode_set()
elm_map_zoom_get()