谷歌地图 - 通过使用php检索纬度和纵向来显示地图和标记


Google maps - Display a map and a marker by retrieving latitude and longitube with php

我有一个纬度和经度格式的点数据库(例如 32.3185414、-86.954298),我想在自己的网页上显示每个点的地图。

我想在地图上显示该点的标记,并带有显示自定义文本的工具提示(如果可能)。我使用php。可能吗?

我认为你必须使用谷歌地图javascrip Api在网页上显示你的纬度长点。

查看此链接

https://developers.google.com/maps/documentation/javascript/examples/marker-simple

对于工具提示,您可以使用

 var marker = new google.maps.Marker({
    position: point,
    title:"Hello World!"
});

代码领主