[英]Google Map api V3 storing inputs
I'm trying to make a site in which you can right click on the map and it will add marker in which you can add some information. 我正在尝试建立一个站点,您可以在其中右键单击地图,它将添加标记,您可以在其中添加一些信息。 Then that information will be stored in a *.php (so it will have cords and the information linked to the marker in that php).
然后,该信息将存储在* .php中(因此它将具有连接线和链接到该php中标记的信息)。 Every time you reload the page it will load the map + the markers from the php.
每次您重新加载页面时,它将从php加载地图+标记。
My question is : How to do that...? 我的问题是:该怎么做...? I'm really new to this.
我真的是新来的。 So if anyone can help it would be awesome.
因此,如果有人可以帮助,那就太好了。 This is my basic code I have (only the scrip aka I know I have to input javascripts etc)
这是我的基本代码(只有脚本,我知道我必须输入javascripts等)
function initialize() {
var myLatlng = new google.maps.LatLng(53.4860277885627, -2.2480342915039273);
//^ don't mind this
var myOptions = {
zoom: 15,
minZoom: 12,
center: myLatlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
Google提供了使用PHP保存到MySQL数据库的教程 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.