Languages

Menu
Sites
Language
Map Component privileges

Hello to all,

i a trying to show a map in my app, but dont show nothing, I have this code:

ad->map = elm_map_add(ad->conform);
    elm_map_zoom_mode_set(ad->map, ELM_MAP_ZOOM_MODE_MANUAL);
    elm_map_zoom_set(ad->map, 12);
    elm_map_region_show(ad->map, 2.2, 48.8);
    evas_object_size_hint_max_set(ad->map, max, max);
    evas_object_size_hint_min_set(ad->map, max, max);
    evas_object_size_hint_weight_set(ad->map, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
    evas_object_size_hint_align_set(ad->map, EVAS_HINT_FILL, 0.5);
    elm_table_pack(table, ad->map, 0,0,4,4);
    evas_object_show(ad->map);

 

Do I need any kind of privilege, I setted up mapservice but still dont show nothing

Thanks!!!!

View Selected Answer

Responses

4 Replies
Mango Bar

Add both mapservice and internet privileges in Manifest file.

Carlos Dominguez

Thanks Mango!

   But still not showing nothing... Maybe something wrong in the code? Any other sugestion???

Cheers

Mark as answer
Mango Bar

If you run your app in Emulator use network.get privilege also. 

You can also check "Maps" sample app for reference. You will find this sample app under Locations section.

Carlos Dominguez

Network.get was!

Thanks!