summaryrefslogtreecommitdiff
path: root/bing_aerial.c
blob: 0061b3e720125f05fd11297cb5fdab3b836c22e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#include "Elementary.h"
#include <Eina.h>
#include "util.h"

#define __UNUSED__  __attribute__((unused))

EAPI char *
map_module_source_name_get(void)
{
   return strdup("bing_aerial");
}

EAPI int
map_module_tile_zoom_min_get(void)
{
   return 1;
}

EAPI int
map_module_tile_zoom_max_get(void)
{
   return 21;
}

EAPI char *
map_module_tile_url_get(Evas_Object *obj __UNUSED__, int x, int y, int zoom)
{
   char buf[PATH_MAX];
   snprintf(buf, sizeof(buf), "http://ecn.t3.tiles.virtualearth.net/tiles/a%s.png?g=471",
            get_url(zoom, x, y));
   return strdup(buf);
}

EAPI char *
map_module_route_source_get(void)
{
   return NULL;
}

EAPI Eina_Bool
map_module_tile_geo_to_coord(const Evas_Object *obj __UNUSED__, int zoom __UNUSED__, double lon __UNUSED__, double lat __UNUSED__, int size __UNUSED__, int *x __UNUSED__, int *y __UNUSED__)
{
   return EINA_FALSE;
}

EAPI Eina_Bool
map_module_tile_coord_to_geo(const Evas_Object *obj __UNUSED__, int zoom __UNUSED__, int x __UNUSED__, int y __UNUSED__, int size __UNUSED__, double *lon __UNUSED__, double *lat __UNUSED__)
{
   return EINA_FALSE;
}

EAPI double
map_module_tile_scale_get(const Evas_Object *obj __UNUSED__, double lon __UNUSED__, double lat __UNUSED__, int zoom __UNUSED__)
{
	return 0;
}

static Eina_Bool
_module_init(void)
{
   return EINA_TRUE;
}

static void
_module_shutdown(void)
{
}

EINA_MODULE_INIT(_module_init);
EINA_MODULE_SHUTDOWN(_module_shutdown);