允许用户在Google地图上放置标记 [英] Allow user to place marker on a google map
本文介绍了允许用户在Google地图上放置标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在寻找一种方法,允许用户在Google地图上放置标记,然后获得坐标,以便我可以通过电子邮件将它们发送给用户。
I'm looking for a way to allow a user to place a marker on a Google map and then get the co-ordinates so I can email them to a user.
是否有可能允许用户在飞行中执行此操作?我在此处看过并了解我可以使用经度和纬度来做到这一点。因此,使用上述方法可以从用户点击获得经度和纬度?
Is it possible to allow users to do this on the fly? I've seen here and understand I can do this using longitude and Latitude. So using the above method can I get a Longitude and Latitude from a users click?
推荐答案
这篇旧的文章是你在找的我认为的。加入一个ajax调用lat / long,你应该很好去。
This older post is what you're looking for I think. Add in an ajax call with the lat/long and you should be good to go.
这篇关于允许用户在Google地图上放置标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文