简体   繁体   English

是否可以操作不在您网站上的 Google 地图?

[英]Is It Possible To Manipulate a Google Map that is NOT on your site?

I'm reading the google maps documentation here and all of the code examples involve creating a new map on your page.我正在阅读谷歌地图文档here ,所有代码示例都涉及在您的页面上创建地图。

Can I not create a saved google map, and push data to this programmatically?我不能创建一个保存的谷歌地图,并以编程方式将数据推送到这个吗?

The use case is data being automatically added upon a form submission, and that map being linked to publically用例是在提交表单时自动添加数据,并且该地图被公开链接

You can't save Google Maps.您无法保存 Google 地图。 You can however create you own map via the api and then add data via javascript so it will only show the data you enter.但是,您可以通过 api 创建自己的地图,然后通过 javascript 添加数据,这样它只会显示您输入的数据。

I would:我会:

Use the Google Maps Api in a Frame.在框架中使用 Google Maps Api。 Then add a Markers to the DB.然后向数据库添加一个标记。 On Page reload or AJAX you can add a new Marker.在页面重新加载或 AJAX 上,您可以添加新的标记。

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

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