【问题标题】:Google maps - Display a map and a marker by retrieving latitude and longitube with php谷歌地图 - 通过使用 php 检索纬度和经度来显示地图和标记
【发布时间】:2015-03-12 11:31:12
【问题描述】:

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

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

【问题讨论】:

  • 工具提示是InfoWindow。更多关于查询数据库的信息here

标签: javascript php google-maps google-maps-api-3 google-maps-markers


【解决方案1】:

我认为您必须使用 Google map javascrip Api 在网页上显示您的经纬度点。

查看此链接

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

你可以使用工具提示

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

代码领主

【讨论】:

    猜你喜欢
    • 2014-10-04
    • 2014-04-30
    • 2018-02-21
    • 2014-04-13
    • 2012-11-29
    • 1970-01-01
    • 1970-01-01
    • 2016-12-15
    • 2013-02-23
    相关资源
    最近更新 更多