简体   繁体   English

用两个按钮在Google Map上弹出菜单

[英]Pop-Up a menu on Google Map with two buttons

i want to pop up a menu on touching the map, the menu should have two buttons 1. SetAs-Source 2. SetAsDestination. 我想在触摸地图时弹出一个菜单,该菜单应具有两个按钮1. SetAs-Source 2. SetAsDestination。 ! on clicking the source the point should be stored in a GeoPoint Variable and the button should then we disabled after setting as source, also i would like to add a image at that point. 在单击源时,该点应存储在GeoPoint变量中,然后应将按钮设置为源后将其禁用,我也想在该点添加图像。

I am able to add a Item in The Itemizedoverlay and show a pushpin over there, but before doing this all i want to popup a menu pointing over the touched(like traditionaly google pop-up ) and on setting as source, it should add the item . 我能够在Itemizedoverlay中添加一个项目,并在那儿显示图钉,但是在执行此操作之前,我想弹出一个菜单,指向被触摸的菜单(例如,传统的google pop-up),并将其设置为源时,应该添加项目。

The popup should be like as you see in the image but, instead of plain text i want to add buttons 弹出窗口应该像您在图像中看到的一样,但是我想添加按钮而不是纯文本

Thanks In Advance ! 提前致谢 ! 在此处输入图片说明

Are you looking for like this ?? 您是否正在寻找这样的商品?

在此处输入图片说明

Then use Android MapView Balloons. 然后使用Android MapView Balloons。 Its pretty easy to use. 它非常易于使用。 Just find out more Here 只是在这里找到更多

Hope this helps ! 希望这可以帮助 !

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM