언어 설정

Menu
Sites
Language
api description or sample code regarding "overlay,clicked" smart callback

Hi,

I have a map widget with many overlays added. I want to register a callback on the overlays, that means this callback will be call if I click/press on an overlay of the map.

From the IDE help doc, I don't find such api details description or any sample code. Is any one ever do such case? Sample code is prefered, many thanks!!!

답변 바로가기

Responses

3 댓글
Mark as answer
Alex Dem

Hi,
Try to use for overlay: elm_map_overlay_get_cb_set(overlay,on_clicked_overlay,NULL);
Your cb syntax should be:

static void on_clicked_overlay(void *data, Evas_Object *map, Elm_Map_Overlay *overlay)
{
}

On 2.4b emulator it works.
Alexey.

Palitsyna

Hello,

Here you can find API Refference for elm_map_overlay_get_cb_set() method, suggested by AlexDemhttps://developer.tizen.org/dev-guide/2.3.0/org.tizen.native.mobile.apireference/group__Map.html#gaa1d4e6d31405ae72e34481c99b0b3f9d

colin Rao

Hi,

Thanks for all of you. Actually I find the api same as AlexDem comments. Now it's solved my issue.