允许用户使用 Google 地图添加图钉并存储位置

发布于 2024-10-18 04:16:29 字数 147 浏览 9 评论 0原文

我正在使用 jQuery 插件将 Google 地图嵌入到网页上。我希望允许访问者能够在地图上添加自己的标记/图钉(标记将识别其待售房屋的位置),然后保存该位置以供以后使用(通过 AJAX 发送到服务器的数据和存储在数据库中)。

有人知道如何创建个性化标记功能吗?

I'm using a jQuery plugin to embed a Google map onto a webpage. I'd like to allow the visitor to be able to add their own marker/pin on the map (the marker would identify the location of their home for sale), then save that location for later use (data sent via AJAX to server and stored in database).

Does anyone know how to create the personalised marker functionality please?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

失退 2024-10-25 04:16:29

我围绕 google 地图 v3 API 编写了一个 jquery 包装器。这是一个演示页面,可以完成您正在处理的工作:

http://bobcravens.com/demos/GoogleMaps3/< /a>

该页面上有一个博客文章的链接,其中包含附加信息。希望有帮助。

鲍勃

I wrote a jquery wrapper around the google maps v3 API. Here is a demo page that does what you are workin on:

http://bobcravens.com/demos/GoogleMaps3/

There is a link to a blog post on that page with additional info. Hope that helps.

Bob

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文