地图标注问题
我正在尝试创建一个地图应用程序,用户可以在其中使用照片、评论或视频标记地图,但在地图上添加注释时遇到问题。
我的场景是这样的:
在第一页上,用户可以看到带有地图的三个按钮(1.照片、2.评论和3.视频)。当他想通过单击照片按钮来标记地图时。我使用cammerView类,它提供了另外三个按钮(1.拍照,2.选择照片和3.使用照片);拍完照片后,他可以选择是否使用照片。如果他想使用这张照片,屏幕必须移动到地图页面,并且注释必须删除。
我遇到问题了。我不知道如何将注释放在用户地图上的当前位置。单击照片类上的使用按钮后,必须删除此注释。
我还尝试了 这个示例应用程序,但就我而言,我需要通过同一页面上的按钮将注释拖放到地图上。我怎样才能做到这一点?
I am trying to create a map app where the user can tag a map with a photo, comment or video, but I am having a problem putting an annotation on the map.
My scenario is like this:
On the 1st page, the user can see three button with the map (1.photo, 2.comment and 3.video). When he wants to tag the map by clicking on the photo button. I use cammerView class, which gives three more buttons (1.take photo, 2.choose photo and 3.use photo); after taking a photo he has a choice of using photo or not. If he wants use this photo the screen must move to the map page, and the annotation must drop.
I am getting problem. I cannot figure out how to drop the annotation on user's map at the current location. This annotation must drop after the clicking the use button which on the photo class.
I also tried this sample application, but in my case I need to have the annotation drop on the map from a button that is on the same page. How can I make this work?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
来自 Class1.m 的代码(触摸按钮的位置):
#Class1.m
#Class2.m
最后一个支持类:
.h
.m:
Code from Class1.m (Where Your button is touched):
#Class1.m
#Class2.m
And here last Supportive Class:
.h
.m: