2016-01-11 02:38:57 -08:00
|
|
|
class Elm.Map (Elm.Widget, Elm.Interface_Scrollable,
|
|
|
|
Elm.Interface_Atspi_Widget_Action,
|
2015-05-06 05:47:21 -07:00
|
|
|
Evas.Clickable_Interface)
|
2014-03-23 07:45:00 -07:00
|
|
|
{
|
|
|
|
eo_prefix: elm_obj_map;
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
|
|
|
@property zoom {
|
2014-03-23 07:45:00 -07:00
|
|
|
set {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[Set the zoom level of the map.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
This sets the zoom level.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
It will respect limits defined by @.zoom_min.set and
|
|
|
|
@.zoom_max.set.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
By default these values are 0 (world map) and 18 (maximum zoom).
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
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 @.zoom_mode.set.
|
|
|
|
]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[Get the zoom level of the map.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
This returns the current zoom level of the map object.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
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.
|
|
|
|
]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-12 09:12:16 -07:00
|
|
|
zoom: int; [[The zoom level.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property paused {
|
2014-03-23 07:45:00 -07:00
|
|
|
set {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[Pause or unpause the map.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
This sets the paused state to on ($true) or off ($false)
|
|
|
|
for map.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
The default is off.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
This will stop zooming using animation, changing zoom levels
|
|
|
|
will change instantly. This will stop any existing animations
|
|
|
|
that are running.
|
|
|
|
]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[Get a value whether map is paused or not.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
This gets the current paused state for the map object.
|
|
|
|
]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-12 09:12:16 -07:00
|
|
|
paused: bool; [[Use $true to pause the map $obj or $false
|
|
|
|
to unpause it.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property wheel_disabled {
|
2014-03-23 07:45:00 -07:00
|
|
|
set {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[Enable or disable mouse wheel to be used to zoom in / out the
|
|
|
|
map.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
Wheel is enabled by default.
|
|
|
|
]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[Get a value whether mouse wheel is enabled or not.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
Mouse wheel can be used for the user to zoom in or zoom out
|
|
|
|
the map.
|
|
|
|
]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-12 09:12:16 -07:00
|
|
|
disabled: bool; [[Use $true to disable mouse wheel or $false
|
|
|
|
to enable it.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property zoom_min {
|
2014-03-23 07:45:00 -07:00
|
|
|
set {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[Set the minimum zoom of the source.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[Get the minimum zoom of the source.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-12 09:12:16 -07:00
|
|
|
zoom: int(-1); [[Minimum zoom value to be used.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property rotate {
|
2014-03-23 07:45:00 -07:00
|
|
|
set {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[Rotate the map.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[Get the rotate degree of the map.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-12 09:12:16 -07:00
|
|
|
degree: double; [[Angle from 0.0 to 360.0 to rotate around Z axis.]]
|
|
|
|
cx: Evas.Coord; [[Rotation's center horizontal position.]]
|
|
|
|
cy: Evas.Coord; [[Rotation's center vertical position.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property user_agent {
|
2014-03-23 07:45:00 -07:00
|
|
|
set {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[Set the user agent used by the map object to access routing
|
|
|
|
services.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
User agent is a client application implementing a network
|
|
|
|
protocol used in communications within a clientserver
|
|
|
|
distributed computing system
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
The $user_agent identification string will transmitted in
|
|
|
|
a header field $User-Agent.
|
|
|
|
]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[Get the user agent used by the map object.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-12 09:12:16 -07:00
|
|
|
user_agent: const(char)*; [[The user agent to be used by the map.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property zoom_max {
|
2014-03-23 07:45:00 -07:00
|
|
|
set {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[Set the maximum zoom of the source.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[Get the maximum zoom of the source.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-12 09:12:16 -07:00
|
|
|
zoom: int(-1); [[Maximum zoom value to be used.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property zoom_mode {
|
2014-03-23 07:45:00 -07:00
|
|
|
set {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[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 @.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.
|
|
|
|
]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[Get the zoom mode used by the map object.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
This function returns the current zoom mode used by the ma
|
|
|
|
object.
|
|
|
|
]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-12 09:12:16 -07:00
|
|
|
mode: Elm_Map_Zoom_Mode; [[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.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property region {
|
2014-03-23 07:45:00 -07:00
|
|
|
get {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[Get the current geographic coordinates of the map.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
This gets the current center coordinates of the map object.
|
|
|
|
It can be set by @.region_bring_in and @.region_show.
|
|
|
|
]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-12 09:12:16 -07:00
|
|
|
lon: double; [[Pointer to store longitude.]]
|
|
|
|
lat: double; [[Pointer to store latitude.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property overlays {
|
2014-03-23 07:45:00 -07:00
|
|
|
get {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[Return all overlays in the map object.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
This list includes group overlays also.
|
|
|
|
So this can be changed dynamically while zooming and panning.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
@since 1.7
|
|
|
|
]]
|
|
|
|
return: list<Elm_Map_Overlay *> *; [[The list of all overlays or $null upon failure.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property tile_load_status {
|
2014-03-23 07:45:00 -07:00
|
|
|
get {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[Get the information of tile load status.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
This gets the current tile loaded status for the map object.
|
|
|
|
]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-12 09:12:16 -07:00
|
|
|
try_num: int; [[Pointer to store number of tiles download requested.]]
|
|
|
|
finish_num: int; [[Pointer to store number of tiles successfully downloaded.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
source_set {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[Set the current source of the map for a specific type.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
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.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
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.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
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.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
The $source_name need to match one of the names provided by
|
|
|
|
@.sources_get.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
The current source can be get using @.source_get.
|
|
|
|
]]
|
2014-03-23 07:45:00 -07:00
|
|
|
params {
|
2015-08-12 09:12:16 -07:00
|
|
|
@in type: Elm_Map_Source_Type; [[Source type.]]
|
|
|
|
@in source_name: const(char)*; [[The source to be used.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
}
|
2014-07-22 09:13:52 -07:00
|
|
|
source_get @const {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[Get the name of currently used source for a specific type.]]
|
|
|
|
return: const(char)*; [[The name of the source in use.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
params {
|
2015-08-12 09:12:16 -07:00
|
|
|
@in type: Elm_Map_Source_Type; [[Source type.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
route_add {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[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 @.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
|
|
|
|
\@ref elm_map_route_del and distance can be get with
|
|
|
|
\@ref elm_map_route_distance_get.
|
|
|
|
]]
|
|
|
|
return: Elm_Map_Route *; [[The created route or $null upon failure.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
params {
|
2015-08-12 09:12:16 -07:00
|
|
|
@in type: Elm_Map_Route_Type; [[The type of transport to be considered when tracing a route.]]
|
|
|
|
@in method: Elm_Map_Route_Method; [[The routing method, what should be prioritized.]]
|
|
|
|
@in flon: double; [[The start longitude.]]
|
|
|
|
@in flat: double; [[The start latitude.]]
|
|
|
|
@in tlon: double; [[The destination longitude.]]
|
|
|
|
@in tlat: double; [[The destination latitude.]]
|
|
|
|
@in route_cb: Elm_Map_Route_Cb @optional; [[The route to be traced.]]
|
|
|
|
@in data: void * @optional; [[A pointer of user data.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
track_add {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[Add a track on the map.]]
|
|
|
|
return: Evas.Object *; [[The route object. This is an elm object of type Route.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
params {
|
2015-08-12 09:12:16 -07:00
|
|
|
@in emap: void *; [[The emap route object.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
}
|
2014-07-22 09:13:52 -07:00
|
|
|
region_to_canvas_convert @const {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[Convert geographic coordinates (longitude, latitude)
|
|
|
|
into canvas coordinates.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
This gets canvas x, y coordinates from longitude and latitude.
|
|
|
|
The canvas coordinates mean x, y coordinate from current viewport.
|
|
|
|
]]
|
2014-03-23 07:45:00 -07:00
|
|
|
params {
|
2015-08-12 09:12:16 -07:00
|
|
|
@in lon: double; [[The longitude to convert.]]
|
|
|
|
@in lat: double; [[The latitude to convert.]]
|
|
|
|
@out x: Evas.Coord; [[A pointer to horizontal coordinate.]]
|
|
|
|
@out y: Evas.Coord; [[A pointer to vertical coordinate.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
overlay_circle_add {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[Add a new circle overlay to the map object.
|
|
|
|
This overlay has a circle type.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
Overlay created with this method can be deleted with
|
|
|
|
\@ref elm_map_overlay_del.
|
|
|
|
]]
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
return: Elm_Map_Overlay *; [[The created overlay or $null upon failure.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
params {
|
2015-08-12 09:12:16 -07:00
|
|
|
@in lon: double; [[The center longitude.]]
|
|
|
|
@in lat: double; [[The center latitude.]]
|
|
|
|
@in radius: double; [[The pixel length of radius.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
overlay_class_add {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[Add a new class overlay to the map object.
|
|
|
|
This overlay has a class type.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
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.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
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 itself.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
Also these changes have a influence on the overlays in the
|
|
|
|
same class even if each overlay is alone and is not grouped.
|
|
|
|
]]
|
|
|
|
return: Elm_Map_Overlay *; [[The created overlay or $null upon failure.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
overlay_bubble_add {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[Add a new bubble overlay to the map object.
|
|
|
|
This overlay has a bubble type.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
A bubble will not be displayed before geographic coordinates
|
|
|
|
are set or any other overlays are followed.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
This overlay has a bubble style layout and icon or content can
|
|
|
|
not be set.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
Overlay created with this method can be deleted with
|
|
|
|
\@ref elm_map_overlay_del.
|
|
|
|
]]
|
|
|
|
return: Elm_Map_Overlay *; [[The created overlay or $null upon failure.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
2014-07-22 09:13:52 -07:00
|
|
|
sources_get @const {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[Get the names of available sources for a specific type.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
It will provide a list with all available sources.
|
|
|
|
Current source can be set by @.source_set, or get with
|
|
|
|
@.source_get.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
At least available sources of tile type are "Mapnik", "Osmarender",
|
|
|
|
"CycleMap" and "Maplint".
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
At least available sources of route type are "Yours".
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
At least available sources of name type are "Nominatim".
|
|
|
|
]]
|
|
|
|
return: const(char)**; [[The char pointer array of source names.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
params {
|
2015-08-12 09:12:16 -07:00
|
|
|
@in type: Elm_Map_Source_Type; [[Source type.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
overlay_polygon_add {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[Add a new polygon overlay to the map object.
|
|
|
|
This overlay has a polygon type.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
At least 3 regions should be added to show the polygon overlay.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
Overlay created with this method can be deleted with
|
|
|
|
\@ref elm_map_overlay_del.
|
|
|
|
]]
|
|
|
|
return: Elm_Map_Overlay *; [[The created overlay or $null upon failure.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
overlay_line_add {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[Add a new line overlay to the map object.
|
|
|
|
This overlay has a line type.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
Overlay created with this method can be deleted with
|
|
|
|
\@ref elm_map_overlay_del.
|
|
|
|
]]
|
|
|
|
return: Elm_Map_Overlay *; [[The created overlay or $null upon failure.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
params {
|
2015-08-12 09:12:16 -07:00
|
|
|
@in flon: double; [[The start longitude.]]
|
|
|
|
@in flat: double; [[The start latitude.]]
|
|
|
|
@in tlon: double; [[The destination longitude.]]
|
|
|
|
@in tlat: double; [[The destination latitude.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
region_show {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[Show the given coordinates at the center of the map, immediately.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
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.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
See @.region_bring_in for a function to move with animation.
|
|
|
|
]]
|
2014-03-23 07:45:00 -07:00
|
|
|
params {
|
2015-08-12 09:12:16 -07:00
|
|
|
@in lon: double; [[Longitude to center at.]]
|
|
|
|
@in lat: double; [[Latitude to center at.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
}
|
2014-07-22 09:13:52 -07:00
|
|
|
name_add @const {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[Request a address or geographic coordinates(longitude, latitude)
|
|
|
|
from a given address or geographic coordinate(longitude, latitude).
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
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.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
To get the string for this address, \@ref elm_map_name_address_get
|
|
|
|
should be used after callback or "name,loaded" signal is called.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
To get the longitude and latitude, \@ref elm_map_region_get
|
|
|
|
should be used.
|
|
|
|
]]
|
|
|
|
return: Elm_Map_Name *; [[A #Elm_Map_Name handle for this coordinate.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
params {
|
2015-08-12 09:12:16 -07:00
|
|
|
@in address: const(char)* @optional; [[The address.]]
|
|
|
|
@in lon: double; [[The longitude.]]
|
|
|
|
@in lat: double; [[The latitude.]]
|
|
|
|
@in name_cb: Elm_Map_Name_Cb @optional; [[The callback function.]]
|
|
|
|
@in data: void * @optional; [[The user callback data.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
}
|
2014-07-22 09:13:52 -07:00
|
|
|
name_search @const {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[Requests a list of addresses corresponding to a given name.
|
2014-07-22 03:59:41 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
\@internal
|
2014-07-22 03:59:41 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
@since 1.8
|
|
|
|
]]
|
2014-07-22 03:59:41 -07:00
|
|
|
params {
|
2015-08-12 09:12:16 -07:00
|
|
|
@in address: const(char)*; [[The address.]]
|
|
|
|
@in name_cb: Elm_Map_Name_List_Cb @optional; [[The callback function.]]
|
|
|
|
@in data: void * @optional; [[The user callback data.]]
|
2014-07-22 03:59:41 -07:00
|
|
|
}
|
|
|
|
}
|
2014-03-23 07:45:00 -07:00
|
|
|
region_bring_in {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[Animatedly bring in given coordinates to the center of the map.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
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.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
See @.region_show for a function to avoid animation.
|
|
|
|
]]
|
2014-03-23 07:45:00 -07:00
|
|
|
params {
|
2015-08-12 09:12:16 -07:00
|
|
|
@in lon: double; [[Longitude to center at.]]
|
|
|
|
@in lat: double; [[Latitude to center at.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
}
|
2014-05-28 01:08:00 -07:00
|
|
|
region_zoom_bring_in {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[Animatedly set the zoom level of the map and bring in given
|
|
|
|
coordinates to the center of the map.
|
2014-05-28 01:08:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
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.
|
2014-05-28 01:08:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
See also @.region_bring_in.
|
2014-05-28 01:08:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
@since 1.11
|
|
|
|
]]
|
2014-05-28 01:08:00 -07:00
|
|
|
params {
|
2015-08-12 09:12:16 -07:00
|
|
|
@in zoom: int; [[The zoom level to set.]]
|
|
|
|
@in lon: double; [[Longitude to center at.]]
|
|
|
|
@in lat: double; [[Latitude to center at.]]
|
2014-05-28 01:08:00 -07:00
|
|
|
}
|
|
|
|
}
|
2014-03-23 07:45:00 -07:00
|
|
|
track_remove {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[Remove a track from the map.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
params {
|
2015-08-12 09:12:16 -07:00
|
|
|
@in route: Evas.Object *; [[The track to remove.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
overlay_route_add {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[Add a new route overlay to the map object.
|
|
|
|
This overlay has a route type.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
This overlay has a route style layout and icon or content can
|
|
|
|
not be set.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
The color scheme can be changed by
|
|
|
|
\@ref elm_map_overlay_content_set.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
Overlay created with this method can be deleted with
|
|
|
|
\@ref elm_map_overlay_del.
|
|
|
|
]]
|
|
|
|
return: Elm_Map_Overlay *; [[The created overlay or $null upon failure.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
params {
|
2015-08-12 09:12:16 -07:00
|
|
|
@in route: const(Elm_Map_Route)*; [[The route object to make a overlay.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
overlay_scale_add {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[Add a new scale overlay to the map object. This overlay has a
|
|
|
|
scale type.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
The scale overlay shows the ratio of a distance on the map to
|
|
|
|
the corresponding distance.
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
Overlay created with this method can be deleted with
|
|
|
|
\@ref elm_map_overlay_del.
|
|
|
|
]]
|
|
|
|
return: Elm_Map_Overlay *; [[The created overlay or $null upon failure.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
params {
|
2015-08-12 09:12:16 -07:00
|
|
|
@in x: Evas.Coord; [[horizontal pixel coordinate.]]
|
|
|
|
@in y: Evas.Coord; [[vertical pixel coordinate.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
overlay_add {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[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 \@ref elm_map_overlay_content_set or
|
|
|
|
\@ref elm_map_overlay_icon_set. If $null is set, default style
|
|
|
|
is shown again.
|
|
|
|
|
|
|
|
Overlay created with this method can be deleted by
|
|
|
|
\@ref elm_map_overlay_del.
|
|
|
|
]]
|
|
|
|
return: Elm_Map_Overlay *; [[The created overlay or $null upon failure.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
params {
|
2015-08-12 09:12:16 -07:00
|
|
|
@in lon: double; [[The longitude of the overlay.]]
|
|
|
|
@in lat: double; [[The latitude of the overlay.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
}
|
2014-07-22 09:13:52 -07:00
|
|
|
canvas_to_region_convert @const {
|
2015-08-12 09:12:16 -07:00
|
|
|
[[Convert canvas coordinates into geographic coordinates
|
|
|
|
(longitude, latitude).
|
2014-03-23 07:45:00 -07:00
|
|
|
|
2015-08-12 09:12:16 -07:00
|
|
|
This gets longitude and latitude from canvas x, y coordinates.
|
|
|
|
The canvas coordinates mean x, y coordinate from current viewport.
|
|
|
|
]]
|
2014-03-23 07:45:00 -07:00
|
|
|
params {
|
2015-08-12 09:12:16 -07:00
|
|
|
@in x: Evas.Coord; [[Horizontal coordinate of the point to convert.]]
|
|
|
|
@in y: Evas.Coord; [[Vertical coordinate of the point to convert.]]
|
|
|
|
@out lon: double; [[A pointer to the longitude.]]
|
|
|
|
@out lat: double; [[A pointer to the latitude.]]
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
2014-06-20 02:47:39 -07:00
|
|
|
class.constructor;
|
2014-06-27 15:36:05 -07:00
|
|
|
Eo.Base.constructor;
|
|
|
|
Evas.Object_Smart.move;
|
|
|
|
Evas.Object_Smart.add;
|
|
|
|
Evas.Object_Smart.del;
|
|
|
|
Evas.Object_Smart.member_add;
|
|
|
|
Evas.Object_Smart.resize;
|
2015-04-22 04:33:10 -07:00
|
|
|
Elm.Widget.theme_apply;
|
|
|
|
Elm.Widget.on_focus;
|
|
|
|
Elm.Widget.event;
|
2016-01-11 02:38:57 -08:00
|
|
|
Elm.Interface_Atspi_Widget_Action.elm_actions.get;
|
2014-03-23 07:45:00 -07:00
|
|
|
}
|
|
|
|
events {
|
|
|
|
press;
|
|
|
|
zoom,change;
|
|
|
|
loaded;
|
|
|
|
tile,load;
|
|
|
|
tile,loaded;
|
|
|
|
tile,loaded,fail;
|
|
|
|
route,load;
|
|
|
|
route,loaded;
|
|
|
|
route,loaded,fail;
|
|
|
|
name,load;
|
|
|
|
name,loaded;
|
|
|
|
name,loaded,fail;
|
|
|
|
overlay,clicked;
|
|
|
|
overlay,del;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|