让用户拖动 Google 地图标记并输入表单字段的 UX
我想允许用户通过将标记拖动到地图上来指定某物的位置。我还想让他们输入有关该地点的一些信息。
问题是这会产生非常复杂的形式。这可以一步完成吗?或者我是否必须让他们首先选择位置,然后在第二种表单中输入表单字段?
你们打算怎么做呢?对于此类事情有什么好的教程吗?
谢谢, 亚历克斯
I want to allow the user to specify the location of something by dragging a marker onto the map. And I also want to let them enter some information about that spot.
The problem is that this makes a very complex form. Can this be done in one step? Or do I have to make them choose location first, and then in a second form take the form-field input?
How would you guys go about doing this? Are there any good tutorials for this sort of thing out there?
Thanks,
Alex
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一步是什么意思?我通过在地图一侧添加一个浮动表单并添加两个隐藏(或不?)字段来填充可拖动标记的坐标来实现这一点。我真的没有看到任何其他字段方式,除非您将表单嵌入可拖动标记的信息窗口
中
What do you mean in one step?I implemented this by adding a floating form in the side of a map and adding two hidden(or not?) fields that populated with the coords of the draggable marker.I really don't see any other way except maybe if you embed the form in the info window of the draggable marker
Cheers