Hello there i currently started with new project in which i have to allow user to drop the pin on the Map
i am not getting how to retrieve the Lat Long by the click of Map
here is my code to create basic map :
ad->map = elm_map_add(ad->conform); 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, EVAS_HINT_FILL); elm_map_zoom_mode_set(ad->map, ELM_MAP_ZOOM_MODE_MANUAL); elm_map_zoom_set(ad->map, 14); evas_object_show(ad->map); elm_map_region_show(ad->map, 72.866041, 21.229097); elm_object_content_set(ad->conform, ad->map); Elm_Map_Overlay *ovl = elm_map_overlay_add(ad->map, 72.866041, 21.229097); elm_map_overlay_displayed_zoom_min_set(ovl, 8); Evas_Object *icon = elm_icon_add(ad->map); elm_icon_standard_set(icon, "home"); elm_map_overlay_icon_set(ovl, icon); evas_object_smart_callback_add(ad->map, "clicked", _map_clicked_cb, ad);
here i had added the static Lat Long i.e. :
elm_map_region_show(ad->map, 72.866041, 21.229097);
i need Current location first and then alow user to drop pin on map and then get those Lat Long from map
i am not exatly getting how should i get those the Lat Long
Please Help , Thanks
Dinal Jivani